import: report error before losing errno
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:09 +0000 (13:44 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:09 +0000 (13:44 +0100)
commit5cfab271fe5f60ce211e8755eedb7789a6e150d7
tree309ceaff8e311b825e36d98932f5d145c98ab36f
parent4546c34193064a1536d551facdcb398c0b765175
import: report error before losing errno

unlink() may change errno, so report the error from rename() first, then
unlink.
src/import/pull-raw.c