summaryrefslogtreecommitdiffstats
path: root/src/vnet/unix/pcap2pg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/unix/pcap2pg.c')
-rw-r--r--src/vnet/unix/pcap2pg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/unix/pcap2pg.c b/src/vnet/unix/pcap2pg.c
index 46d6bfcd0c7..712907a5bac 100644
--- a/src/vnet/unix/pcap2pg.c
+++ b/src/vnet/unix/pcap2pg.c
@@ -164,7 +164,7 @@ main (int argc, char **argv)
if (output_file)
{
- ofp = fopen ((char *) output_file, "rw");
+ ofp = fopen ((char *) output_file, "w+");
if (ofp == NULL)
clib_unix_warning ("Couldn't create '%s'", output_file);
exit (1);