aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-secure-getenv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/tst-secure-getenv.c b/stdlib/tst-secure-getenv.c
index 276b0af..b52aaf0 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)
{