[PATCH] Write errors to stdout and not stderr in nptl/tst-setuid3.c

Florian Weimer fweimer@redhat.com
Fri Sep 19 04:49:00 GMT 2014


On 09/18/2014 11:16 PM, Arjun Shankar wrote:
> +      printf ("FAIL: " fmt ": %s\n", __VA_ARGS__, strerror (errno)); \

Use “%m” because it is thread-safe.

Alternatively, you could just use dup2 to alias the file descriptors.  I 
wonder why we don't do this in general.

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list