projects
/
sudo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f282b
)
Set user_ngroups to 0 if getgroups() returns an error.
author
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 17 Nov 2004 00:00:48 +0000
(
00:00
+0000)
committer
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 17 Nov 2004 00:00:48 +0000
(
00:00
+0000)
sudo.c
patch
|
blob
|
history
diff --git
a/sudo.c
b/sudo.c
index 94027508136bc465effe805119cd891f4d4f639c..2d3f89b60f766adeddeaa1792e59c6848d1504a8 100644
(file)
--- a/
sudo.c
+++ b/
sudo.c
@@
-558,7
+558,8
@@
init_vars(sudo_mode)
user_groups = emalloc2(user_ngroups, sizeof(gid_t));
if (getgroups(user_ngroups, user_groups) < 0)
log_error(USE_ERRNO|MSG_ONLY, "can't get group vector");
- }
+ } else
+ user_ngroups = 0;
#endif
if (def_fqdn)