Blame SOURCES/wireshark-1.10.14-read-from-stdin.patch

affdba
diff --git a/tshark.c b/tshark.c
affdba
index 8c8de07..8cc4fae 100644
affdba
--- a/tshark.c
affdba
+++ b/tshark.c
affdba
@@ -286,7 +286,7 @@ print_usage(gboolean print_ver)
affdba
 #endif
affdba
   /*fprintf(output, "\n");*/
affdba
   fprintf(output, "Input file:\n");
affdba
-  fprintf(output, "  -r <infile>              set the filename to read from (no pipes or stdin!)\n");
affdba
+  fprintf(output, "  -r <infile>              set the filename to read from (no stdin!)\n");
affdba
 
affdba
   fprintf(output, "\n");
affdba
   fprintf(output, "Processing:\n");
affdba
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c
affdba
index c670c6e..e359cd7 100644
affdba
--- a/wiretap/file_wrappers.c
affdba
+++ b/wiretap/file_wrappers.c
affdba
@@ -1046,7 +1046,8 @@ file_seek(FILE_T file, gint64 offset, int whence, int *err)
affdba
 
affdba
 	/* if within raw area while reading, just go there */
affdba
 	if (file->compression == UNCOMPRESSED && file->pos + offset >= file->raw
affdba
-			&& (offset < 0 || offset >= file->have) /* seek only when we don't have that offset in buffer */)
affdba
+			&& (offset < 0 || offset >= file->have) /* seek only when we don't have that offset in buffer */
affdba
+			&& (file->fast_seek) /* seek only when random access is supported */)
affdba
 	{
affdba
 		if (ws_lseek64(file->fd, offset - file->have, SEEK_CUR) == -1) {
affdba
 			*err = errno;