Hi,
I found a bug in ascend-grammer.y; Ascend/Lucnet debug output can't be
read under Win32 environment. This is because it opens "/dev/null" but
such a file doesn't exist under Win32, ending up with writing to NULL
file pointer. Here's a patch to fix this problem. I think "NUL:"
special file exists in all Win32 environments Ethereal is supporting
(i.e.Win95, Win98, WinMe, WinNT, Win2K), but not sure about WinXP.
Cany anyone confirm?
Regards,
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
+----+----+
|.. .| | Motonori Shindo
|_~__| |
| .. |~~_~| Sr. Systems Engineer
| . | | CoSine Communications Inc.
+----+----+
C o S i n e e-mail: mshindo@xxxxxxxxxxxxx
Communications
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
Index: wiretap/ascend-grammar.y
===================================================================
RCS file: /cvsroot/ethereal/wiretap/ascend-grammar.y,v
retrieving revision 1.22
diff -u -r1.22 ascend-grammar.y
--- ascend-grammar.y 2001/12/04 10:07:30 1.22
+++ ascend-grammar.y 2001/12/05 23:41:31
@@ -115,7 +115,11 @@
#include "ascend.h"
#include "ascend-int.h"
+#ifdef WIN32
+#define NFH_PATH "NUL:"
+#else
#define NFH_PATH "/dev/null"
+#endif
#define NO_USER "<none>"
extern int at_eof;
This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.
Sanitizer (start="1007604773"):
Replaced MIME boundary: >>--Next_Part--<<
with: >>MIMEStream=_0+276787_2619818115411_36247362755<<
Writer (pos="1070"):
Total modifications so far: 1
Part (pos="1116"):
SanitizeFile (filename="unnamed.txt", mimetype="Text/Plain"):
Match (rule="2"):
Enforced policy: accept
Part (pos="2023"):
SanitizeFile (filename="dev-null.patch", mimetype="Text/Plain"):
Match (rule="2"):
Enforced policy: accept
Anomy 0.0.0 : Sanitizer.pm
$Id: Sanitizer.pm,v 1.32 2001/10/11 19:27:15 bre Exp $