From: Todd C. Miller Date: Fri, 9 Jun 2000 16:25:26 +0000 (+0000) Subject: When looking for chown, check in /sbin too X-Git-Tag: SUDO_1_6_4~267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f9dfff262032acc437bee3d81e219e102e5b876;p=sudo When looking for chown, check in /sbin too --- diff --git a/install-sh b/install-sh index efc0f8bba..6c70986de 100755 --- a/install-sh +++ b/install-sh @@ -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