RFC V2 [1/2] test-in-container

DJ Delorie dj@redhat.com
Wed Feb 28 12:49:00 GMT 2018


Andreas Schwab <schwab@linux-m68k.org> writes:
>> +      printf ("unable to open %s for reading\n", sname);
>> +      perror ("the error was");
>
> That doesn't work, the printf call can clobber errno.  Use error instead.

Weird, I've been using that idiom for decades and never had that happen.
But, I'll put it on the list of things to change for V3.

Thanks!



More information about the Libc-alpha mailing list