Use wireshark (instead of ether) for temp file name prefix.
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 8 Apr 2009 12:22:12 +0000 (12:22 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 8 Apr 2009 12:22:12 +0000 (12:22 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27992 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c
tempfile.c

index 5ff346fa8af52b60d52dc68919bc7bed1d8d26a2..7820cb736761fa8c42889704cff0db791f469136 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1747,7 +1747,7 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd,
     is_tempfile = FALSE;
   } else {
     /* Choose a random name for the temporary capture buffer */
-    *save_file_fd = create_tempfile(tmpname, sizeof tmpname, "ether");
+    *save_file_fd = create_tempfile(tmpname, sizeof tmpname, "wireshark");
     capfile_name = g_strdup(tmpname);
     is_tempfile = TRUE;
   }
index e545b3b43abb7f2dc10a8d17f27f31042eda2729..0ad2fcff01640589fcf415b67c1d552b5192d003 100644 (file)
@@ -100,7 +100,7 @@ static const char *E_tmpdir;
 #define P_tmpdir "/var/tmp"
 #endif
 
-/* create a tempfile with the given prefix (e.g. "ether")
+/* create a tempfile with the given prefix (e.g. "wireshark")
  * namebuf (and namebuflen) should be 128+1 bytes long (BTW: why?)
  * returns the file descriptor of the new tempfile and
  * the name of the new file in namebuf