Files
sudo/plugins/sudoers/regress/visudo/test2.sh
2013-03-18 16:11:24 -04:00

16 lines
297 B
Bash
Executable File

#!/bin/sh
#
# Test cycle detection
# Prior to sudo 1.8.6p5 this resulted in a core dump (stack smash)
# The names of the aliases (or rather their lexical order) is important.
#
./visudo -csf - <<EOF
User_Alias YYY = FOO
User_Alias XXX = nobody
User_Alias FOO = XXX, YYY
FOO ALL = ALL
EOF
exit 0