diff options
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 4 | ||||
-rw-r--r-- | usr.sbin/sysupgrade/sysupgrade.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 1ef419037b1..bf8151ffcbe 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.152 2019/10/19 13:14:23 tb Exp $ +# $OpenBSD: syspatch.sh,v 1.153 2019/10/20 09:10:43 ajacoutot Exp $ # # Copyright (c) 2016, 2017 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -255,7 +255,7 @@ unpriv() fi (($# >= 1)) - # propagate error code to the caller instead of failing hard + # XXX ksh(1) bug; send error code to the caller instead of failing hard set +e eval su -s /bin/sh ${_user} -c "'$@'" || _rc=$? set -e diff --git a/usr.sbin/sysupgrade/sysupgrade.sh b/usr.sbin/sysupgrade/sysupgrade.sh index 1b228259ecd..96526ac8788 100644 --- a/usr.sbin/sysupgrade/sysupgrade.sh +++ b/usr.sbin/sysupgrade/sysupgrade.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: sysupgrade.sh,v 1.27 2019/10/19 13:14:23 tb Exp $ +# $OpenBSD: sysupgrade.sh,v 1.28 2019/10/20 09:10:43 ajacoutot Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015 Robert Peichaer <rpe@openbsd.org> @@ -51,7 +51,7 @@ unpriv() fi (($# >= 1)) - # propagate error code to the caller instead of failing hard + # XXX ksh(1) bug; send error code to the caller instead of failing hard set +e eval su -s /bin/sh ${_user} -c "'$@'" || _rc=$? set -e |