Changeset 7962

Show
Ignore:
Timestamp:
03/13/07 22:13:58 (1 year ago)
Author:
dnicholson
Message:

Fix pidofproc -p invalid integer expression

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bootscripts/ChangeLog

    r7931 r7962  
     12007-03-13      Dan Nicholson   <dnicholson@linuxfromscratch.org> 
     2        * lfs/init.d/functions: If pidofproc() is passed the -p argument 
     3          it can bomb testing a null variable with an integer expression. 
     4 
    152007-02-22      Dan Nicholson   <dnicholson@linuxfromscratch.org> 
    26        * lfs/init.d/mountfs, lfs/init.d/console, lfs/init.d/setclock, 
  • trunk/bootscripts/lfs/init.d/functions

    r7929 r7962  
    378378                        fi 
    379379                         
    380                         if [ "${silent}" -ne "1" ]; then 
     380                        if [ "${silent}" != "1" ]; then 
    381381                                echo "${pidlist}" 
    382382                        fi 
     
    391391        else 
    392392                pidlist=`pidof -o $$ -o $PPID -x "$1"` 
    393                 if [ "x${silent}" != "x1" ]; then 
     393                if [ "${silent}" != "1" ]; then 
    394394                        echo "${pidlist}" 
    395395                fi