From 44233300342496770635f594af478414a30d6942 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 30 Sep 1999 07:19:35 +0000 Subject: 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 --- gtk/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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); -- cgit v1.2.3