Annotation of embedaddon/sudo/plugins/sudoers/regress/visudo/test2.sh, revision 1.1
1.1 ! misho 1: #!/bin/sh
! 2: #
! 3: # Test cycle detection
! 4: # Prior to sudo 1.8.6p5 this resulted in a core dump (stack smash)
! 5: # The names of the aliases (or rather their lexical order) is important.
! 6: #
! 7:
! 8: ./visudo -csf - <<EOF
! 9: User_Alias YYY = FOO
! 10: User_Alias XXX = nobody
! 11: User_Alias FOO = XXX, YYY
! 12: FOO ALL = ALL
! 13: EOF
! 14:
! 15: exit 0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>