From 292378045ce335a3aabfc2724dbc499f026995f3 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 4 Sep 2012 09:25:18 +0200 Subject: stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures --- stdlib/tst-secure-getenv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdlib') diff --git a/stdlib/tst-secure-getenv.c b/stdlib/tst-secure-getenv.c index 276b0aff7b..b52aaf0b19 100644 --- a/stdlib/tst-secure-getenv.c +++ b/stdlib/tst-secure-getenv.c @@ -228,9 +228,10 @@ alternative_main (int argc, char **argv) { if (getgid () == getegid ()) { - printf ("SGID failed: GID and EGID match (%jd)\n", + /* This can happen if the file system is mounted nosuid. */ + fprintf (stderr, "SGID failed: GID and EGID match (%jd)\n", (intmax_t) getgid ()); - exit (2); + exit (MAGIC_STATUS); } if (getenv ("PATH") == NULL) { -- cgit v1.2.3