Bugzilla – Bug 410
visudo infinite recursion bug
Last modified: 2010-04-29 18:51:48 MDT
Created attachment 271 [details] visudo.c patch % cat /tmp/sudoers User_Alias FOO=joeuser Cmnd_Alias BAD=/usr/bin/ls BAR=ABC,DEF,GHI,BAD FOO +all-hosts=(sybase) BAD % visudo -cf /tmp/sudoers zsh: segmentation fault (core dumped) visudo -cf /tmp/sudoers (runs out of stack space) After applying the attached patch: % ./visudo -cf /tmp/sudoers visudo: Warning: Cmnd_Alias `BAD' references self /tmp/sudoers: parsed OK
I just committed a modified version of your fix, thanks!