]> granicus.if.org Git - sudo/commitdiff
When looking for chown, check in /sbin too
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jun 2000 16:25:26 +0000 (16:25 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jun 2000 16:25:26 +0000 (16:25 +0000)
install-sh

index efc0f8bba285e1d030b5fda43b0e01511d1532c5..6c70986de6195b1e34790bcb9bf36e6196f3f602 100755 (executable)
@@ -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