summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/fileutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 8e7313e8f..98544b60c 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -2196,7 +2196,7 @@ bool DropPrivs()
_error->Warning("PR_SET_NO_NEW_PRIVS failed with %i", ret);
#endif
- if (setgroups(1, &pw->pw_gid) != 1)
+ if (setgroups(1, &pw->pw_gid))
return _error->Errno("setgroups", "Failed to setgroups");
if (setegid(pw->pw_gid) != 0)