aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-30 07:19:35 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-30 07:19:35 +0000
commit44233300342496770635f594af478414a30d6942 (patch)
treec26343efcd7f98d5f0816493ae9176f57819bf62
parent58609193d0564e77209384425da0b8066f1f0bfd (diff)
If we specify a save file name with "-w", mark it as "user saved", so
that we don't delete it if we later start a new capture. svn path=/trunk/; revision=742
-rw-r--r--gtk/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 15c86ebff4..f7d9400855 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.11 1999/09/30 06:50:01 guy Exp $
+ * $Id: main.c,v 1.12 1999/09/30 07:19:35 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -647,6 +647,7 @@ main(int argc, char *argv[])
#ifdef HAVE_LIBPCAP
case 'w': /* Write to capture file xxx */
cf.save_file = g_strdup(optarg);
+ cf.user_saved = TRUE; /* it's not a temporary file */
break;
case 'W': /* Write to capture file FD xxx */
cf.save_file_fd = atoi(optarg);