summaryrefslogtreecommitdiff
path: root/usr.sbin/syspatch
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-07-30 08:30:47 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-07-30 08:30:47 +0000
commit37b42569ed885321ce58ffc1df3778aceb23ad5a (patch)
tree1e5a72ca73c4e52b7e3a494ebcfca434af7e118d /usr.sbin/syspatch
parentcdf0c6f4c0e7655bb5664c98a1236695b943833d (diff)
`-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)