X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Funix%2Fpcap2pg.c;h=712907a5bac42eee94beae9ce6bb7c5d4f0adde7;hb=5100aa9;hp=46d6bfcd0c7904b3577380533eb449973418d0b9;hpb=1b0c983726d4a6abe5b86b1cfad1d3280285748f;p=vpp.git 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);