Fix typos in doas config and --sudo opt definition

This commit is contained in:
heat-wave 2021-04-07 19:11:04 +01:00 committed by Denis Roio
parent 61386ca646
commit 3860487a0b
3 changed files with 5 additions and 4 deletions

View File

@ -56,7 +56,7 @@ if test_have_prereq DOAS; then
test_export "doas_test" # Using already generated tomb
test_expect_success 'Testing open with good password (using doas instead of sudo)' '
tt_open --sudo doas --tomb-pwd $DUMMYPASS &&
tt_close
tt_close --sudo doas
'
fi

View File

@ -12,8 +12,9 @@ permit nopass root cmd mount
permit nopass root cmd rmdir
permit nopass root cmd chown
permit nopass root cmd umount
permit nopass root cmd findmnd
permit nopass root cmd findmnt
permit nopass root cmd e2fsck
permit nopass root cmd resize2fs
permit nopass root cmd lsof
permit nopass root cmd kill
permit nopass root cmd cryptsetup

2
tomb
View File

@ -3132,7 +3132,7 @@ main() {
# can only use the non-abbreviated long-option version like:
# -force and NOT -f
#
main_opts=(q -quiet=q D -debug=D h -help=h v -version=v f -force=f -tmp: U: G: T: -no-color -unsafe g -gpgkey=g -sudo)
main_opts=(q -quiet=q D -debug=D h -help=h v -version=v f -force=f -tmp: U: G: T: -no-color -unsafe g -gpgkey=g -sudo:)
subcommands_opts[__default]=""
# -o in open and mount is used to pass alternate mount options
subcommands_opts[open]="n -nohook=n k: -kdf: o: -ignore-swap -tomb-pwd: r: R: -sphx-host: -sphx-user: p -preserve-ownership=p"