blob: 7739c676d40b2474d97573b18d9daa008969c292 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
#
# Test entries with no trailing newline.
#
: ${TESTSUDOERS=testsudoers}
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
|