1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures

This commit is contained in:
Florian Weimer
2012-09-04 09:25:18 +02:00
parent 60160d83a0
commit 292378045c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-09-04 Florian Weimer <fweimer@redhat.com>
* stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
failures.
2012-09-04 Joseph Myers <joseph@codesourcery.com> 2012-09-04 Joseph Myers <joseph@codesourcery.com>
[BZ #9914] [BZ #9914]

View File

@ -228,9 +228,10 @@ alternative_main (int argc, char **argv)
{ {
if (getgid () == getegid ()) 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 ()); (intmax_t) getgid ());
exit (2); exit (MAGIC_STATUS);
} }
if (getenv ("PATH") == NULL) if (getenv ("PATH") == NULL)
{ {