summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/visudo/test1.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xplugins/sudoers/regress/visudo/test1.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/sudoers/regress/visudo/test1.sh b/plugins/sudoers/regress/visudo/test1.sh
new file mode 100755
index 0000000..c922e35
--- /dev/null
+++ b/plugins/sudoers/regress/visudo/test1.sh
@@ -0,0 +1,12 @@
+#!/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
+
+exit 0