Files
sudo/plugins/sudoers/regress/visudo/test9.sh
Todd C. Miller 90e1f4ec3e Fix crash in visudo introduced in sudo 1.8.9 when an IP address or
network is used in a host-based Defaults entry.  Bug #766
2017-01-07 19:50:05 -07:00

13 lines
202 B
Bash
Executable File

#!/bin/sh
#
# Test IP and network address in host-based Defaults statements
# Bugzilla #766
#
./visudo -cf - <<-EOF
Defaults@127.0.0.1 !authenticate
Defaults@10.0.0.0/8 !always_set_home
EOF
exit 0