Andreas Schwab <schwab@linux-m68k.org> writes:
>>> + /* Make sure we copied it all. */
>>> + if (sz < st.st_size)
>>> + {
>>> + unlink (dest);
>>> + close (dest_fd);
>>> + error (EXIT_FAILURE, errno, _("Unable to copy file %s to %s"),
>>> + source, dest);
>
> If r == 0 then errno isn't set at all.
So just pass 0 instead of errno here?