Add sudo_strtoid() tests for -1 and range errors.

Also adjust testsudoers/test5 which relied upon gid -1 parsing.
This commit is contained in:
Todd C. Miller
2019-10-10 10:04:13 -06:00
parent f752ae5cee
commit 396bc57fef
3 changed files with 30 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ Parse error in sudoers near line 1.
Entries for user root:
Command unmatched
testsudoers: test5.inc should be owned by gid 4294967295
testsudoers: test5.inc should be owned by gid 4294967294
Parse error in sudoers near line 1.
Entries for user root:

View File

@@ -24,7 +24,7 @@ EOF
# Test group writable
chmod 664 $TESTFILE
./testsudoers -U $MYUID -G -1 root id <<EOF
./testsudoers -U $MYUID -G -2 root id <<EOF
#include $TESTFILE
EOF