From bd21ea93e49c2fc251df3819acad1f1d962e3a1a Mon Sep 17 00:00:00 2001 From: anton Date: Thu, 29 Jul 2021 15:34:09 +0000 Subject: [PATCH] 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@ --- regress/usr.bin/ssh/agent-getpeereid.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/ssh/agent-getpeereid.sh b/regress/usr.bin/ssh/agent-getpeereid.sh index 147fd90882d..4afe7f5277b 100644 --- a/regress/usr.bin/ssh/agent-getpeereid.sh +++ b/regress/usr.bin/ssh/agent-getpeereid.sh @@ -1,4 +1,4 @@ -# $OpenBSD: agent-getpeereid.sh,v 1.11 2019/11/26 23:43:10 djm Exp $ +# $OpenBSD: agent-getpeereid.sh,v 1.12 2021/07/29 15:34:09 anton Exp $ # Placed in the Public Domain. tid="disallow agent attach from other uid" @@ -9,7 +9,7 @@ SSH_AUTH_SOCK=/nonexistent case "x$SUDO" in xsudo) sudo=1;; - xdoas) ;; + xdoas|xdoas\ *) ;; x) if [ -x /usr/local/bin/sudo -a -f /etc/sudoers ]; then sudo=1 -- 2.20.1