[sudo-users] visudo: internal error, tried to emalloc2(0)
Michael W. Lucas
mwlucas at michaelwlucas.com
Sun Aug 11 17:47:34 MDT 2013
Awesome, thank you!
On Sun, Aug 11, 2013 at 10:12:30AM -0600, Todd C. Miller wrote:
> 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");
--
Michael W. Lucas - mwlucas at michaelwlucas.com, Twitter @mwlauthor
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e
coupon code "ILUVMICHAEL" gets you 30% off & helps me.
More information about the sudo-users
mailing list