diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2020-07-04 18:30:47 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2020-07-04 18:30:47 +0000 |
commit | 70cb33e5b0a824f476f48d429fef96d071cfb121 (patch) | |
tree | 76094cc5c495b69f27d3a22c4183ae395ee95303 /usr.sbin/syspatch | |
parent | 1ca16e1285d2086f7ba37789e97e12f4a0596162 (diff) |
Our old ksh(1) bug where eval()uating a || compound list would terminate the
shell has been fixed by benno@; remove workaround.
ok naddy@
Diffstat (limited to 'usr.sbin/syspatch')
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 7e044a885ca..8a609cd7f99 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.162 2020/07/04 14:08:27 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.163 2020/07/04 18:30:46 ajacoutot Exp $ # # Copyright (c) 2016, 2017 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -257,10 +257,7 @@ unpriv() fi (($# >= 1)) - # 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 [[ -n ${_file} ]] && chown root "${_file}" |