summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/testsudoers/test4.sh
blob: 2ec47cead8d03cad8c549bfa284c6c9c363b8394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Test sudoers owner check
#

: ${TESTSUDOERS=testsudoers}

# Avoid warnings about memory leaks when there is a syntax error
ASAN_OPTIONS=detect_leaks=0; export ASAN_OPTIONS

exec 2>&1
$TESTSUDOERS -U 1 root id <<EOF
@include $TESTDIR/test2.inc
EOF

exit 0