summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-06-04 15:18:16 -0400
committerBill Meier <wmeier@newsguy.com>2014-06-04 19:31:08 +0000
commit68a1b552f74152a4da39097e8ae5e463518bbb28 (patch)
treeca72d321a68c9fa134ad3ac8dcb9d5fbb356e01e /tshark.c
parentdc02627adf92ad98bdc6dbeded2f9092b06af7e5 (diff)
downloadwireshark-68a1b552f74152a4da39097e8ae5e463518bbb28.tar.gz
tshark.c: 'tshark -F pcap -w ...' should create a pcap (not pcapng) file; fixes Bug #9991.
Change-Id: I182357fc57d6e57033319afc762549d805c2c10c Reviewed-on: https://code.wireshark.org/review/1954 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 32291949f1..539792cd74 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1866,6 +1866,7 @@ main(int argc, char *argv[])
cmdarg_err("Display filters aren't supported when capturing and saving the captured packets.");
return 1;
}
+ global_capture_opts.use_pcapng = (out_file_type == WTAP_FILE_TYPE_SUBTYPE_PCAPNG) ? TRUE : FALSE;
} else {
/* They didn't specify a "-w" flag, so we won't be saving to a
capture file. Check for options that only make sense if