#2472: getpids() bug in lfs/init.d/functions, as of lfs-bootscripts-20090523
--------------------------+-------------------------------------------------
 Reporter:  jeremy_henty  |       Owner:  lfs-b...@…                   
     Type:  defect        |      Status:  new                          
 Priority:  normal        |   Milestone:  6.5                          
Component:  Book          |     Version:  unspecified                  
 Severity:  normal        |    Keywords:                               
--------------------------+-------------------------------------------------
 The definition of getpids() is:

 getpids()
 {
         if [ -z "${PIDFILE}" ]; then
                 pidofproc -s -p "${PIDFILE}" $@
         else
                 pidofproc -s $@
         fi
         base="${1##*/}"
 }

 This is plainly wrong: the two clauses of the if statement should be
 swapped.
 NB: all the other uses of pidofproc() in this file are correct: the then
 clause
 of the 'if -z "$..>"' statement calls pidofproc() without the -p flag and
 the
 else clause calls it with the -p flag.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2472>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to