Imported Upstream version 1.8.1p2
[debian/sudo] / plugins / sudoers / regress / testsudoers / test1.sh
diff --git a/plugins/sudoers/regress/testsudoers/test1.sh b/plugins/sudoers/regress/testsudoers/test1.sh
new file mode 100755 (executable)
index 0000000..a6358b3
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Test for NULL dereference with "sudo -g group" when the sudoers rule
+# has no runas user or group listed.
+# This is RedHat bug Bug 667103.
+#
+
+./testsudoers -g bin root id <<EOF
+root ALL = ALL
+EOF