copy_file(): remove incomplete file on error (bug 2890715)
authorLaurent Monin <geeqie@norz.org>
Sun, 10 Jan 2010 14:23:29 +0000 (14:23 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 10 Jan 2010 14:23:29 +0000 (14:23 +0000)
commit36ee9c9dcd360e1d6847f4fd9b899c70875cc23f
treee0bcb9dd6af8e148cdc82c0495064586cbe130ad
parent8ce20c203c0b7e91eed065d5163bd2ad8e183eb3
copy_file(): remove incomplete file on error (bug 2890715)

The behavior changed, data is first written to a temporary file,
which is unlinked in case of error, then the tempfile is renamed
to the final name.
Size of buffer was increased from 4k to 16k.
src/ui_fileops.c