Kaynağa Gözat

speclint police

Ralf S. Engelschall 23 yıl önce
ebeveyn
işleme
0b367262aa
2 değiştirilmiş dosya ile 7 ekleme ve 7 silme
  1. 2 2
      openpkg/openpkg.spec
  2. 5 5
      openpkg/rc

+ 2 - 2
openpkg/openpkg.spec

@@ -39,8 +39,8 @@
 #   o any cc(1)
 
 #   the package version and release
-%define       V_openpkg 20030223
-%define       R_openpkg 20030223
+%define       V_openpkg 20030301
+%define       R_openpkg 20030301
 
 #   the used software versions
 %define       V_rpm     4.0.2

+ 5 - 5
openpkg/rc

@@ -97,7 +97,7 @@ TEMPDIR="$tmpdir"; export TEMPDIR
 #   handle --query option
 if [ ".$query" = .1 ]; then
     var="$1"
-    scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
+    scripts=`/bin/ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
     rm -f $tmpfile
     touch $tmpfile
     for s_name in $scripts; do
@@ -112,7 +112,7 @@ fi
 
 #   handle --config option
 if [ ".$config" = .1 ]; then
-    scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
+    scripts=`/bin/ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
     rm -f $tmpfile
     touch $tmpfile
     for s_name in $scripts; do
@@ -168,7 +168,7 @@ if [ ".$scripts" = ".all" ]; then
     case "$openpkg_runall" in
         [Nn][Oo] | [Ff][Aa][Ll][Ss][Ee] | [Oo][Ff][Ff] | 0 ) exit 0 ;;
     esac
-    scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
+    scripts=`/bin/ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
 else
     if [ ! -f "$rcdir/rc.$scripts" ]; then
         echo "$0:ERROR: script \`$rcdir/rc.$scripts' not found" 1>&2
@@ -292,7 +292,7 @@ for cmd in $cmds; do
         fi
         if [ ".$print" = .1 -o ".$eval" = .1 ]; then
             echo ". $rcfunc" >>$tmpfile
-            l_scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
+            l_scripts=`/bin/ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
             for l_name in $l_scripts; do
                 sed <$rcdir/rc.$l_name >>$tmpfile -e "1,/^%config/d" -e '/^%.*/,$d'
             done
@@ -307,7 +307,7 @@ for cmd in $cmds; do
             echo "set -x" >>$tmpfile
         fi
         echo ". $rcfunc" >>$tmpfile
-        l_scripts=`ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
+        l_scripts=`/bin/ls $rcdir/rc.* | sed -e "s;^$rcdir/rc\.;;"`
         for l_name in $l_scripts; do
             sed <$rcdir/rc.$l_name >>$tmpfile -e "1,/^%config/d" -e '/^%.*/,$d'
         done