[sudo-users] visudo: internal error, tried to emalloc2(0)
Todd C. Miller
Todd.Miller at courtesan.com
Sun Aug 11 10:12:30 MDT 2013
This was a bug introduced in sudo 1.8.7. The following will avoid
the error.
- todd
diff -r da3b2b06605c plugins/sudoers/visudo.c
--- a/plugins/sudoers/visudo.c Thu Aug 08 11:40:36 2013 -0600
+++ b/plugins/sudoers/visudo.c Sun Aug 11 10:11:38 2013 -0600
@@ -221,6 +221,7 @@
sudo_setgrent();
/* Mock up a fake sudo_user struct. */
+ sudo_user.max_groups = -1;
user_cmnd = "";
if ((sudo_user.pw = sudo_getpwuid(getuid())) == NULL)
fatalx(_("you do not exist in the %s database"), "passwd");
More information about the sudo-users
mailing list