From: Florian Weimer Date: Tue, 4 Sep 2012 07:25:18 +0000 (+0200) Subject: stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures X-Git-Tag: glibc-2.17~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=292378045ce335a3aabfc2724dbc499f026995f3;p=thirdparty%2Fglibc.git stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures --- diff --git a/ChangeLog b/ChangeLog index 9a041eb8072..9606f3c2cfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-09-04 Florian Weimer + + * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID + failures. + 2012-09-04 Joseph Myers [BZ #9914] diff --git a/stdlib/tst-secure-getenv.c b/stdlib/tst-secure-getenv.c index 276b0aff7b8..b52aaf0b19f 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) {