Change-Id: Ic76eee870aff69b9daaf80d99fa619bf762258a1
Reviewed-on: https://code.wireshark.org/review/25058
Reviewed-by: Guy Harris <guy@alum.mit.edu>
/* If this was a temporary file, and we didn't do the save by doing
a move, so the tempoary file is still around under its old name,
remove it. */
- if (cf->is_tempfile) {
+ if (cf->is_tempfile && how_to_save != SAVE_WITH_MOVE) {
/* If this fails, there's not much we can do, so just ignore errors. */
ws_unlink(cf->filename);
}