aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-03-31 12:27:24 -0700
committerGuy Harris <guy@alum.mit.edu>2019-03-31 19:28:23 +0000
commit666d77db4540a2520608a2a410532c57b6efab85 (patch)
treebc132255ccbb8786f6e81ed9a11e7927654a622b
parent426a4b811d8c3130a0b87a7dac6f08d88695ad86 (diff)
Fix -z hosts output if it's from a live capture.
Giving the pathname of a temporary file that will be deleted once TShark exits isn't useful; just refer to "the temporary capture file". Change-Id: I7333ac3cef4e4ae1076a5b0e3c46a04e0328d505 Reviewed-on: https://code.wireshark.org/review/32645 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--ui/cli/tap-hosts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/cli/tap-hosts.c b/ui/cli/tap-hosts.c
index 00c45ab8da..d6e01b4c36 100644
--- a/ui/cli/tap-hosts.c
+++ b/ui/cli/tap-hosts.c
@@ -63,7 +63,8 @@ hosts_draw(void *dummy _U_)
printf("# TShark hosts output\n");
printf("#\n");
- printf("# Host data gathered from %s\n", cfile.filename);
+ printf("# Host data gathered from %s\n",
+ cfile.is_tempfile ? "the temporary capture file" : cfile.filename);
printf("\n");
if (dump_v4) {