upstream: Treat doas with arguments as a valid SUDO variable.

Allows one to specify SUDO="doas -n" which I do while running make regress.

ok dtucker@

OpenBSD-Regress-ID: 4fe5814b5010dbf0885500d703bea06048d11005
This commit is contained in:
anton@openbsd.org 2021-07-29 15:34:09 +00:00 committed by Damien Miller
parent 197e29f1cc
commit e4673b7f67
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ else
fi fi
case "x$SUDO" in case "x$SUDO" in
xsudo) sudo=1;; xsudo) sudo=1;;
xdoas) ;; xdoas|xdoas\ *) ;;
x) x)
echo "need SUDO to switch to uid $UNPRIV" echo "need SUDO to switch to uid $UNPRIV"
echo SKIPPED echo SKIPPED