Treat "-" as "standard input" in the CLI, not in libwiretap.
authorGuy Harris <guy@alum.mit.edu>
Tue, 10 Nov 2015 01:21:46 +0000 (17:21 -0800)
committerGuy Harris <guy@alum.mit.edu>
Tue, 10 Nov 2015 01:23:22 +0000 (01:23 +0000)
commit6c3c6de340ff2016b06c0081c6c822c723d40f80
tree8948698b6ec024cc6fa1382c14bdcba0396a602a
parent411112a1ff172a6ef7530c06a8887de1973a1205
Treat "-" as "standard input" in the CLI, not in libwiretap.

That's a UI convention, and the GUI shouldn't honor that convention - a
user might get confused if they try to save to "-" and end up with
nothing (and with a ton of crap in a log file if programs launched from
the GUI end up with their standard output and error logged).

While we're at it, make randcap report write and close errors.

Change-Id: I9c450f0ca0320ce4c36d13d209b56d72edb43012
Reviewed-on: https://code.wireshark.org/review/11666
Reviewed-by: Guy Harris <guy@alum.mit.edu>
editcap.c
randpkt.c
reordercap.c
tshark.c
wiretap/file_access.c