[PATCH v6 1/1] ldconfig: add --install option

DJ Delorie dj@redhat.com
Tue Jun 23 21:25:24 GMT 2026


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?



More information about the Libc-alpha mailing list