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: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Tue, 28 Mar 2000 01:12:55 -0800
> Note that, after we save a complete capture file (rather than saving
> only the packets that match the current display filter), we open and
> read the file we saved to - which means closing the old capture file.
> 
> "close_cap_file()" should, I think, remove the file if it's a temporary
> file - which is why it gets cleaned up if we do a copy rather than a
> rename on UNIX (e.g., if the source file and directory for the
> destination file aren't on the same file system).
> 
> I'll check your version of the patch in, and try it on my NT partition.

It seemed to work - I started a capture, stopped it, and then exited
Ethereal, and the temporary capture file was removed by Ethereal.