mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 21:38:05 +00:00
An empty group or netgroup should be a syntax error.
This commit is contained in:
parent
5438a0be6a
commit
c5cc89da15
7
plugins/sudoers/regress/sudoers/test7.in
Normal file
7
plugins/sudoers/regress/sudoers/test7.in
Normal file
@ -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 = +
|
4
plugins/sudoers/regress/sudoers/test7.out.ok
Normal file
4
plugins/sudoers/regress/sudoers/test7.out.ok
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Does not parse.
|
||||||
|
|
||||||
|
|
||||||
|
|
7
plugins/sudoers/regress/sudoers/test7.toke.ok
Normal file
7
plugins/sudoers/regress/sudoers/test7.toke.ok
Normal file
@ -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 <*>
|
Loading…
x
Reference in New Issue
Block a user