Fix typo in preserve groups case

This commit is contained in:
Todd C. Miller
2010-03-22 19:39:02 -04:00
parent fc63d106f8
commit e12858ee90

View File

@@ -538,7 +538,7 @@ sudoers_policy_main(int argc, char * const argv[], char *env_add[],
easprintf(&command_info[info_len++], "runas_gid=%u", runas_pw->pw_gid);
}
if (def_preserve_groups) {
command_info[info_len++], "preserve_groups=true";
command_info[info_len++] = "preserve_groups=true";
} else {
/* XXX - what about when runas user has no passwd entry? */
#ifdef HAVE_GETGRSET