mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
If a host is specified for the input file, cvtsudoers will bind global Defaults to that host and change host "ALL" in a userspec to the host name. However, if all the input files have matching hosts we can simplify the merged file by converting back to ALL after resolving conflicts.
9 lines
182 B
Bash
9 lines
182 B
Bash
#!/bin/sh
|
|
#
|
|
# Test cvtsudoers merge
|
|
#
|
|
|
|
: ${CVTSUDOERS=cvtsudoers}
|
|
|
|
$CVTSUDOERS -f sudoers -l /dev/null xerxes:${TESTDIR}/sudoers1 xyzzy:${TESTDIR}/sudoers2 plugh:${TESTDIR}/sudoers2
|