summaryrefslogtreecommitdiff
path: root/summary.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-05-24 02:16:53 +0000
committerGuy Harris <guy@alum.mit.edu>2012-05-24 02:16:53 +0000
commitb655197a9dbfc5ea973ffa37b9642de0c1baeec1 (patch)
treee326402cc6f277500eb2b23fed4fa9269376c5ed /summary.c
parent25e70c04d7a4ed27472948d5e0c7dd2e403adc97 (diff)
downloadwireshark-b655197a9dbfc5ea973ffa37b9642de0c1baeec1.tar.gz
In the "Save As" and "Export Specified Packets" code path, do a "safe
save" if the destination file exists. Don't forbid overwriting an existing file in either of those cases (we still forbid overwriting the current capture file) - the GUI asks the user whether they want to do the overwrite, and allows them to cancel out of it - and don't remove the file before writing to it (doing so makes the save *un*safe). Attempt to do a save of an unedited temporary file by just moving the file on Windows as well as on UN*X - ws_rename() will remove the target if necessary on Windows (and won't do it as a separate operation before attempting the rename), so it behaves like ws_rename() on UN*X (which is just a wrapper around rename()). svn path=/trunk/; revision=42816
Diffstat (limited to 'summary.c')
0 files changed, 0 insertions, 0 deletions