mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
If the Defaults name matched but the binding does not, we can simply leave it be. Fixes a problem where given two sudoers sources that have a host specified, if they contain conflicting Defaults entries we would drop one of the Defaults instead of keeping both after making them host-specific.
11 lines
255 B
Bash
Executable File
11 lines
255 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Test cvtsudoers merge:
|
|
# * two files, each bound to a host
|
|
# * only difference is a conflicting secure_path definition
|
|
#
|
|
|
|
: ${CVTSUDOERS=cvtsudoers}
|
|
|
|
$CVTSUDOERS -f sudoers -l /dev/null xerxes:${TESTDIR}/sudoers3 xyzzy:${TESTDIR}/sudoers4
|