Shouldn't /etc/rc check for executable bits in these two cases?

Index: etc/rc
===================================================================
RCS file: /var/cvsync/src/etc/rc,v
retrieving revision 1.437
diff -u -p -r1.437 rc
--- etc/rc      19 Jul 2014 21:27:16 -0000      1.437
+++ etc/rc      21 Jul 2014 15:59:29 -0000
@@ -322,7 +322,7 @@ rm -f /fastboot             # XXX (root now writeab
 echo 'setting tty flags'
 ttyflags -a
 
-if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then
+if [ -x /sbin/kbd -a -f /etc/kbdtype ]; then
        kbd `cat /etc/kbdtype`
 fi
 
@@ -485,7 +485,7 @@ if [ X"${accounting}" = X"YES" ]; then
        echo 'turning on accounting';   accton /var/account/acct
 fi
 
-if [ -f /sbin/ldconfig ]; then
+if [ -x /sbin/ldconfig ]; then
        echo 'creating runtime link editor directory cache.'
        if [ -d /usr/local/lib ]; then
                shlib_dirs="/usr/local/lib $shlib_dirs"

Reply via email to