aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/file.c b/file.c
index 2de1f3d7ab..84b946cbf8 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.2 1998/09/16 03:21:57 gerald Exp $
+ * $Id: file.c,v 1.3 1998/09/17 03:12:24 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -83,6 +83,9 @@ open_cap_file(char *fname, capture_file *cf) {
fclose(cf->fh);
cf->fh = NULL;
+ /* set the file name beacuse we need it to set the follow stream filter */
+ cf->filename = strdup( fname );
+
/* Next, find out what type of file we're dealing with */
cf->cd_t = CD_UNKNOWN;