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

Arjun Shankar arjun.is@lostca.se
Fri Sep 19 10:05:00 GMT 2014


nptl/tst-setuid3.c was using the `err' and `errx' functions to write
error messages. This wrote to stderr instead of the preferred stdout.

This patch should fix that.

ChangeLog:

2014-09-19  Arjun Shankar  <arjun.is@lostca.se>

	* nptl/tst-setuid3.c: Write errors to stdout.
---
 nptl/tst-setuid3.c | 36 +++++++++++++++++++++---------------
 1 file changed, 21 insertions(+), 15 deletions(-)

Changes in v2:
 - incorporate Florian's review comment: use %m to write errno string;
   Note: Seems there are many tests that write to stderr. I will look
   at them during the coming week(s) when I find a good chunk of time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-nptl-tst-setuid3.c-Write-to-stdout-not-stderr.patch
Type: text/x-patch
Size: 3454 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140919/605bb866/attachment.bin>


More information about the Libc-alpha mailing list