Fix typo in preserve groups case
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 22 Mar 2010 23:39:02 +0000 (19:39 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 22 Mar 2010 23:39:02 +0000 (19:39 -0400)
plugins/sudoers/sudoers.c

index a41d9d801bad25349cd1cf05361d1902f3e17fbf..e957f8aba23225b9fcb4bf37ae52a8cebeebe101 100644 (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