aboutsummaryrefslogtreecommitdiff
path: root/tools/test/stress2/misc/mlockall7.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/stress2/misc/mlockall7.sh')
-rwxr-xr-xtools/test/stress2/misc/mlockall7.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/stress2/misc/mlockall7.sh b/tools/test/stress2/misc/mlockall7.sh
index 987e312f19e7..5a927043cb56 100755
--- a/tools/test/stress2/misc/mlockall7.sh
+++ b/tools/test/stress2/misc/mlockall7.sh
@@ -179,7 +179,7 @@ testing(unsigned long maxl)
maxlock = maxl;
if ((pw = getpwnam("nobody")) == NULL)
err(1, "failed to resolve nobody");
- if (setgroups(1, &pw->pw_gid) ||
+ if (setgroups(0, NULL) ||
setegid(pw->pw_gid) || setgid(pw->pw_gid) ||
seteuid(pw->pw_uid) || setuid(pw->pw_uid))
err(1, "Can't drop privileges to \"nobody\"");