Add regress test for bugzilla 519
This commit is contained in:
1
plugins/sudoers/regress/visudo/test1.out.ok
Normal file
1
plugins/sudoers/regress/visudo/test1.out.ok
Normal file
@@ -0,0 +1 @@
|
||||
stdin: parsed OK
|
10
plugins/sudoers/regress/visudo/test1.sh
Executable file
10
plugins/sudoers/regress/visudo/test1.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Sudo Bug 519:
|
||||
# Visudo in strict mode reports "parse error" even if there is no error
|
||||
#
|
||||
|
||||
./visudo -csf - <<EOF
|
||||
User_Alias FOO = nobody
|
||||
FOO ALL=(ALL) NOPASSWD: ALL
|
||||
EOF
|
Reference in New Issue
Block a user