mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Add test for #include directive without a trailing newline.
This commit is contained in:
parent
d2314acae8
commit
e7bd19bd1e
10
MANIFEST
10
MANIFEST
@ -315,18 +315,18 @@ plugins/python/example_policy_plugin.py
|
|||||||
plugins/python/pyhelpers.c
|
plugins/python/pyhelpers.c
|
||||||
plugins/python/pyhelpers.h
|
plugins/python/pyhelpers.h
|
||||||
plugins/python/pyhelpers_cpychecker.h
|
plugins/python/pyhelpers_cpychecker.h
|
||||||
plugins/python/python_plugin_io_multi.inc
|
|
||||||
plugins/python/python_plugin_audit_multi.inc
|
|
||||||
plugins/python/python_plugin_approval_multi.inc
|
|
||||||
plugins/python/python_baseplugin.c
|
plugins/python/python_baseplugin.c
|
||||||
plugins/python/python_convmessage.c
|
plugins/python/python_convmessage.c
|
||||||
plugins/python/python_importblocker.c
|
plugins/python/python_importblocker.c
|
||||||
plugins/python/python_plugin_audit.c
|
|
||||||
plugins/python/python_plugin_approval.c
|
plugins/python/python_plugin_approval.c
|
||||||
|
plugins/python/python_plugin_approval_multi.inc
|
||||||
|
plugins/python/python_plugin_audit.c
|
||||||
|
plugins/python/python_plugin_audit_multi.inc
|
||||||
plugins/python/python_plugin_common.c
|
plugins/python/python_plugin_common.c
|
||||||
plugins/python/python_plugin_common.h
|
plugins/python/python_plugin_common.h
|
||||||
plugins/python/python_plugin_group.c
|
plugins/python/python_plugin_group.c
|
||||||
plugins/python/python_plugin_io.c
|
plugins/python/python_plugin_io.c
|
||||||
|
plugins/python/python_plugin_io_multi.inc
|
||||||
plugins/python/python_plugin_policy.c
|
plugins/python/python_plugin_policy.c
|
||||||
plugins/python/regress/check_python_examples.c
|
plugins/python/regress/check_python_examples.c
|
||||||
plugins/python/regress/iohelpers.c
|
plugins/python/regress/iohelpers.c
|
||||||
@ -736,6 +736,8 @@ plugins/sudoers/regress/testsudoers/test6.out.ok
|
|||||||
plugins/sudoers/regress/testsudoers/test6.sh
|
plugins/sudoers/regress/testsudoers/test6.sh
|
||||||
plugins/sudoers/regress/testsudoers/test7.out.ok
|
plugins/sudoers/regress/testsudoers/test7.out.ok
|
||||||
plugins/sudoers/regress/testsudoers/test7.sh
|
plugins/sudoers/regress/testsudoers/test7.sh
|
||||||
|
plugins/sudoers/regress/testsudoers/test8.out.ok
|
||||||
|
plugins/sudoers/regress/testsudoers/test8.sh
|
||||||
plugins/sudoers/regress/visudo/test1.out.ok
|
plugins/sudoers/regress/visudo/test1.out.ok
|
||||||
plugins/sudoers/regress/visudo/test1.sh
|
plugins/sudoers/regress/visudo/test1.sh
|
||||||
plugins/sudoers/regress/visudo/test10.out.ok
|
plugins/sudoers/regress/visudo/test10.out.ok
|
||||||
|
10
plugins/sudoers/regress/testsudoers/test8.out.ok
Normal file
10
plugins/sudoers/regress/testsudoers/test8.out.ok
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Parses OK.
|
||||||
|
|
||||||
|
Entries for user root:
|
||||||
|
|
||||||
|
ALL = ALL
|
||||||
|
host matched
|
||||||
|
runas matched
|
||||||
|
cmnd allowed
|
||||||
|
|
||||||
|
Command allowed
|
13
plugins/sudoers/regress/testsudoers/test8.sh
Executable file
13
plugins/sudoers/regress/testsudoers/test8.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Test #include facility w/o a final newline.
|
||||||
|
# Same as test2.sh but missing the final newline.
|
||||||
|
#
|
||||||
|
|
||||||
|
MYUID=`\ls -ln $TESTDIR/test2.inc | awk '{print $3}'`
|
||||||
|
MYGID=`\ls -ln $TESTDIR/test2.inc | awk '{print $4}'`
|
||||||
|
exec 2>&1
|
||||||
|
printf "#include $TESTDIR/test2.inc" | \
|
||||||
|
./testsudoers -U $MYUID -G $MYGID root id
|
||||||
|
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user