Ethereal-dev: [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.

Date: Thu, 23 Mar 2000 11:27:47 +0100
Hi

If you capture some traffic without supplying a filename and tried to save 
that capture later (after filtering it or something) on WIN32 you will receive
an error indicating that the file cannot be moved. Ethereal is trying to 
move the file, while it should copy it.

Attached is a patch that solves this problem, but it uncovers another bug. 
It seems that there's something not quite right with the file that is the 
result of the copy operation. I have attached the source and 
destination files because I can't seem to find anything wrong with 
the current code and I'm not knowledgeable enough concerning the 
file formats used.


-- 
Andreas Sikkema
andreas.sikkema@xxxxxxxxxxx
"Standing barefoot in a river of clues, most people would 
         not get their toes wet." - Brian Kantor in a.s.r.

Attachment: file.c.patch
Description: Binary data

Attachment: original.pcap
Description: Binary data

Attachment: corrupt.pcap
Description: Binary data