diff --git a/MANIFEST b/MANIFEST index 2d5109246..18c35dc7e 100644 --- a/MANIFEST +++ b/MANIFEST @@ -315,18 +315,18 @@ plugins/python/example_policy_plugin.py plugins/python/pyhelpers.c plugins/python/pyhelpers.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_convmessage.c plugins/python/python_importblocker.c -plugins/python/python_plugin_audit.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.h plugins/python/python_plugin_group.c plugins/python/python_plugin_io.c +plugins/python/python_plugin_io_multi.inc plugins/python/python_plugin_policy.c plugins/python/regress/check_python_examples.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/test7.out.ok 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.sh plugins/sudoers/regress/visudo/test10.out.ok diff --git a/plugins/sudoers/regress/testsudoers/test8.out.ok b/plugins/sudoers/regress/testsudoers/test8.out.ok new file mode 100644 index 000000000..eabeb20e7 --- /dev/null +++ b/plugins/sudoers/regress/testsudoers/test8.out.ok @@ -0,0 +1,10 @@ +Parses OK. + +Entries for user root: + +ALL = ALL + host matched + runas matched + cmnd allowed + +Command allowed diff --git a/plugins/sudoers/regress/testsudoers/test8.sh b/plugins/sudoers/regress/testsudoers/test8.sh new file mode 100755 index 000000000..75d2f0192 --- /dev/null +++ b/plugins/sudoers/regress/testsudoers/test8.sh @@ -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