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>
This commit is contained in:
Bill Meier 2014-06-04 15:18:16 -04:00
parent dc02627adf
commit 68a1b552f7
1 changed files with 1 additions and 0 deletions

View File

@ -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