aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-03-06 16:17:03 +0000
committerBill Nottingham <notting@redhat.com>2003-03-06 16:17:03 +0000
commit0b0e541591d87cd10674873deccf311bab52573d (patch)
treee355740f30f004c932061ce2be7f7d2db9f62d1f
parentaac707b24ff964ab16c886a760adf63af3ff71b2 (diff)
downloadinitscripts-0b0e541591d87cd10674873deccf311bab52573d.tar
initscripts-0b0e541591d87cd10674873deccf311bab52573d.tar.gz
initscripts-0b0e541591d87cd10674873deccf311bab52573d.tar.bz2
initscripts-0b0e541591d87cd10674873deccf311bab52573d.tar.xz
initscripts-0b0e541591d87cd10674873deccf311bab52573d.zip
use -x, not -f (#85704)
-rwxr-xr-xlang.csh2
-rwxr-xr-xlang.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/lang.csh b/lang.csh
index 1097168b..b119ca51 100755
--- a/lang.csh
+++ b/lang.csh
@@ -74,7 +74,7 @@ if ($sourced == 1) then
if ( $?TERM ) then
if ( "$TERM" == "linux" ) then
if ( `/sbin/consoletype` == "vt" ) then
- if ( -f /bin/unicode_start ) then
+ if ( -x /bin/unicode_start ) then
if ( $?SYSFONTACM ) then
unicode_start $SYSFONT $SYSFONTACM
else
diff --git a/lang.sh b/lang.sh
index 8cbeb0fd..dd16e59d 100755
--- a/lang.sh
+++ b/lang.sh
@@ -70,7 +70,7 @@ if [ "$sourced" = 1 ]; then
case $LANG in
*.utf8*|*.UTF-8*)
if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then
- [ -f /bin/unicode_start ] && unicode_start $SYSFONT $SYSFONTACM
+ [ -x /bin/unicode_start ] && unicode_start $SYSFONT $SYSFONTACM
fi
;;
esac