aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-06-07 07:47:58 +0000
committerGuy Harris <guy@alum.mit.edu>2002-06-07 07:47:58 +0000
commit1b72ef68e6acc8800a2c0a5a719e48aaf5d54c79 (patch)
tree68df58860828572a89856bd914f93204c8265d47 /file.c
parent2aad75bb826b45ee1a78be2bbe2687e488748f8b (diff)
downloadwireshark-1b72ef68e6acc8800a2c0a5a719e48aaf5d54c79.tar.gz
wireshark-1b72ef68e6acc8800a2c0a5a719e48aaf5d54c79.tar.bz2
wireshark-1b72ef68e6acc8800a2c0a5a719e48aaf5d54c79.zip
Add a new error for attempts to open a pipe or FIFO for random access.
Have "wtap_open_offline()", if asked to open a FIFO, return that error if it was asked to open the file for random access. svn path=/trunk/; revision=5643
Diffstat (limited to 'file.c')
-rw-r--r--file.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/file.c b/file.c
index 1a9a658b57..92084bf3f2 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.276 2002/06/04 07:03:44 guy Exp $
+ * $Id: file.c,v 1.277 2002/06/07 07:47:56 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1909,6 +1909,11 @@ file_open_error_message(int err, gboolean for_writing)
errmsg = "The file \"%s\" is a \"special file\" or socket or other non-regular file.";
break;
+ case WTAP_ERR_RANDOM_OPEN_PIPE:
+ /* Seen only when opening a capture file for reading. */
+ errmsg = "The file \"%s\" is a pipe or FIFO; Ethereal cannot read pipe or FIFO files.";
+ break;
+
case WTAP_ERR_FILE_UNKNOWN_FORMAT:
case WTAP_ERR_UNSUPPORTED:
/* Seen only when opening a capture file for reading. */