summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/install-sh
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-06-09 16:26:00 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-06-09 16:26:00 +0000
commit35abe9a53cf6ed748ead5fcca7758417cabc17b3 (patch)
treebf113de8f2e6e5bc16de9942c692b1ee0d8babba /usr.bin/sudo/install-sh
parent99ce614ba9488ff7dcd7c678eec00e6d721d9c86 (diff)
When looking for chown, check in /sbin too.
Diffstat (limited to 'usr.bin/sudo/install-sh')
-rw-r--r--usr.bin/sudo/install-sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/sudo/install-sh b/usr.bin/sudo/install-sh
index 9f53f8bbded..577779b17da 100644
--- a/usr.bin/sudo/install-sh
+++ b/usr.bin/sudo/install-sh
@@ -1,7 +1,7 @@
#! /bin/sh
## (From INN-1.4, written by Rich Salz)
-## $Revision: 1.2 $
+## $Revision: 1.3 $
## A script to install files and directories.
PROGNAME=`basename $0`
@@ -20,12 +20,14 @@ WHOAMI=whoami
## Some systems don't support -x, so we have to use -f.
if [ ${CHOWN} = chown ] ; then
- if [ -f /etc/chown ] ; then
+ if [ -f /sbin/chown ] ; then
+ CHOWN=/sbin/chown
+ elif [ -f /etc/chown ] ; then
CHOWN=/etc/chown
- elif [ -f /usr/etc/chown ] ; then
- CHOWN=/usr/etc/chown
elif [ -f /usr/sbin/chown ] ; then
CHOWN=/usr/sbin/chown
+ elif [ -f /usr/etc/chown ] ; then
+ CHOWN=/usr/etc/chown
fi
fi