summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syspatch
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2017-07-30 08:30:46 +0000
committerajacoutot <ajacoutot@openbsd.org>2017-07-30 08:30:46 +0000
commitf7d005e753309df988786b9a65962f26d55c95f3 (patch)
tree758523d2714721220bcdcf389c30eb85f3c5c580 /usr.sbin/syspatch
parentleftovers from newd (diff)
downloadwireguard-openbsd-f7d005e753309df988786b9a65962f26d55c95f3.tar.xz
wireguard-openbsd-f7d005e753309df988786b9a65962f26d55c95f3.zip
`-R' requires root privileges.
Diffstat (limited to 'usr.sbin/syspatch')
-rw-r--r--usr.sbin/syspatch/syspatch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index 9ecc19f2e23..2a44d3da125 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.116 2017/07/22 09:59:08 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.117 2017/07/30 08:30:46 ajacoutot Exp $
#
# Copyright (c) 2016, 2017 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -279,7 +279,7 @@ unpriv()
eval su -s /bin/sh ${_user} -c "'$@'"
}
-[[ $@ == @(|-[[:alpha:]]) ]] || usage; [[ $@ == @(|-(c|r)) ]] &&
+[[ $@ == @(|-[[:alpha:]]) ]] || usage; [[ $@ == @(|-(c|R|r)) ]] &&
(($(id -u) != 0)) && sp_err "${0##*/}: need root privileges"
# only run on release (not -current nor -stable)