mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Add regress test for bug #623
This commit is contained in:
parent
a3aa40b0fe
commit
69f7ed79c2
2
MANIFEST
2
MANIFEST
@ -357,6 +357,8 @@ plugins/sudoers/regress/visudo/test3.out.ok
|
||||
plugins/sudoers/regress/visudo/test3.sh
|
||||
plugins/sudoers/regress/visudo/test4.out.ok
|
||||
plugins/sudoers/regress/visudo/test4.sh
|
||||
plugins/sudoers/regress/visudo/test5.out.ok
|
||||
plugins/sudoers/regress/visudo/test5.sh
|
||||
plugins/sudoers/set_perms.c
|
||||
plugins/sudoers/sha2.c
|
||||
plugins/sudoers/sha2.h
|
||||
|
1
plugins/sudoers/regress/visudo/test5.out.ok
Normal file
1
plugins/sudoers/regress/visudo/test5.out.ok
Normal file
@ -0,0 +1 @@
|
||||
stdin: parsed OK
|
8
plugins/sudoers/regress/visudo/test5.sh
Executable file
8
plugins/sudoers/regress/visudo/test5.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Test comment on the last line with no newline
|
||||
#
|
||||
|
||||
printf "# one comment\n#two comments" | ./visudo -csf -
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user