diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-06-07 07:47:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-06-07 07:47:58 +0000 |
commit | 1b72ef68e6acc8800a2c0a5a719e48aaf5d54c79 (patch) | |
tree | 68df58860828572a89856bd914f93204c8265d47 /wiretap/wtap.c | |
parent | 2aad75bb826b45ee1a78be2bbe2687e488748f8b (diff) | |
download | wireshark-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 'wiretap/wtap.c')
-rw-r--r-- | wiretap/wtap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index ec71287323..c0cc35c003 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1,6 +1,6 @@ /* wtap.c * - * $Id: wtap.c,v 1.65 2002/04/08 09:44:42 guy Exp $ + * $Id: wtap.c,v 1.66 2002/06/07 07:47:57 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -180,6 +180,7 @@ wtap_short_string_to_encap(const char *short_name) static const char *wtap_errlist[] = { "The file isn't a plain file", + "The file is being opened for random access but is a pipe", "The file isn't a capture file in a known format", "File contains record data we don't support", NULL, |