2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

24 lines
400 B
Bash
Raw Normal View History

#!/bin/sh
#
# Test entries with no trailing newline.
#
exec 2>&1
echo ""
echo "Testing user privilege without a newline"
echo ""
printf "millert ALL = ALL" | ./testsudoers -d
echo ""
echo "Testing alias without a newline"
echo ""
printf "Cmnd_Alias FOO=/bin/bar" | ./testsudoers -d
echo ""
echo "Testing Defaults without a newline"
echo ""
printf "Defaults log_output" | ./testsudoers -d
exit 0