]> granicus.if.org Git - sudo/commitdiff
An empty group or netgroup should be a syntax error.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 24 Mar 2011 15:00:05 +0000 (11:00 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 24 Mar 2011 15:00:05 +0000 (11:00 -0400)
plugins/sudoers/regress/sudoers/test7.in [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test7.out.ok [new file with mode: 0644]
plugins/sudoers/regress/sudoers/test7.toke.ok [new file with mode: 0644]

diff --git a/plugins/sudoers/regress/sudoers/test7.in b/plugins/sudoers/regress/sudoers/test7.in
new file mode 100644 (file)
index 0000000..7b241d0
--- /dev/null
@@ -0,0 +1,7 @@
+# These should all be syntax errors
+User_Alias FOO1 = "%"
+User_Alias FOO2 = "%:"
+User_Alias FOO3 = "+"
+User_Alias FOO4 = %
+User_Alias FOO5 = %:
+User_Alias FOO6 = +
diff --git a/plugins/sudoers/regress/sudoers/test7.out.ok b/plugins/sudoers/regress/sudoers/test7.out.ok
new file mode 100644 (file)
index 0000000..6b6f261
--- /dev/null
@@ -0,0 +1,4 @@
+Does not parse.
+
+
+
diff --git a/plugins/sudoers/regress/sudoers/test7.toke.ok b/plugins/sudoers/regress/sudoers/test7.toke.ok
new file mode 100644 (file)
index 0000000..a5bf018
--- /dev/null
@@ -0,0 +1,7 @@
+#
+USERALIAS ALIAS = BEGINSTR STRBODY ENDSTR ERROR <*> 
+USERALIAS ALIAS = BEGINSTR STRBODY ENDSTR ERROR <*> 
+USERALIAS ALIAS = BEGINSTR STRBODY ENDSTR ERROR <*> 
+USERALIAS ALIAS = ERROR <*> 
+USERALIAS ALIAS = ERROR <*> 
+USERALIAS ALIAS = ERROR <*>