[Windump] a bug in '-F' option
blop
blop.blopy at gmail.com
Tue Feb 20 09:58:41 PST 2007
hello,
I've been using windump for a long time and this program is great.
I especially like the use of the '-F' option.
unfortunately i discovered that it only works with files that are using the
UNIX line endings and not the windows file endings.
the error occurs because there is a check in line 495 in the util.c.
there is a difference between the bytes actually read and the bytes returned
by fstat, this triggers the an unnecessary error and stops the program.
i think that what happens is that for some reason the O_BINARY is not
defined on the compiling system and the file is read using text mode.
IMHO, the file should be read using text mode, and the read bytes test
against fstat bytes removed or revised.
thanks,
nadav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/windump/attachments/20070220/615e978e/attachment.htm
More information about the Windump
mailing list