Ethereal-dev: Re: [ethereal-dev] [PATCH] Saving a temporary file on WIN32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Thu, 23 Mar 2000 08:32:02 -0600
On Thu, Mar 23, 2000 at 08:04:47AM -0600, Gilbert Ramirez wrote:
> 
> 
> Thanks. The corrupt file has 0d:0a where the original had 0a. I see
> the first occurence at byte 0x481 in those files.
> 
> It's the CRLF/LF difference again.
> 
> When copying the file, we *are* opening the from-file with the O_BINARY
> flag, but the creat() call that we use to create the to-file doesn't
> have such a flag.
> 
> (in file.c, the open() is on line 1446, the creat() is on line 1454)
> 
> I'll investigate what to do on Win32, but if someone else knows
> offhand, plese tell us!
> 
> --gilbert

And I see that Guy ruminated about such an occurence...

http://ethereal.zing.org/lists/ethereal-cvs/200002/msg00009.html

--gilbert