Author: dnicholson
Date: 2007-03-13 22:13:58 -0600 (Tue, 13 Mar 2007)
New Revision: 7962
Modified:
trunk/bootscripts/ChangeLog
trunk/bootscripts/lfs/init.d/functions
Log:
Fix pidofproc -p invalid integer expression
Modified: trunk/bootscripts/ChangeLog
===================================================================
--- trunk/bootscripts/ChangeLog 2007-03-04 21:39:57 UTC (rev 7961)
+++ trunk/bootscripts/ChangeLog 2007-03-14 04:13:58 UTC (rev 7962)
@@ -1,3 +1,7 @@
+2007-03-13 Dan Nicholson <[EMAIL PROTECTED]>
+ * lfs/init.d/functions: If pidofproc() is passed the -p argument
+ it can bomb testing a null variable with an integer expression.
+
2007-02-22 Dan Nicholson <[EMAIL PROTECTED]>
* lfs/init.d/mountfs, lfs/init.d/console, lfs/init.d/setclock,
lfs/init.d/mountkernfs: &> redirection is not supported in POSIX.
Modified: trunk/bootscripts/lfs/init.d/functions
===================================================================
--- trunk/bootscripts/lfs/init.d/functions 2007-03-04 21:39:57 UTC (rev
7961)
+++ trunk/bootscripts/lfs/init.d/functions 2007-03-14 04:13:58 UTC (rev
7962)
@@ -377,7 +377,7 @@
pidlist="${pidlist} ${pid}"
fi
- if [ "${silent}" -ne "1" ]; then
+ if [ "${silent}" != "1" ]; then
echo "${pidlist}"
fi
@@ -390,7 +390,7 @@
else
pidlist=`pidof -o $$ -o $PPID -x "$1"`
- if [ "x${silent}" != "x1" ]; then
+ if [ "${silent}" != "1" ]; then
echo "${pidlist}"
fi
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page