Item10139: Startup warning for uninitialized value $pidfile in foswiki.fcgi
Priority: Low
Current State: No Action Required
Released In: n/a
Target Release: n/a
There are now two issues with proposed patches for this problem (see
Tasks.Item9957). Any chance someone can test and commit something?
--
AaronFuleki - 26 Aug 2011
Due the usage of an uninitialized value of $pidfile during startup of the FCGI service
the following warning shows up in the logs:
==> /var/log/apache2/error.log <==
Use of uninitialized value $pidfile in pattern match (m//) at
foswiki.fcgi line 62.
The fix is trivial:
--- foswiki.fcgi.org 2010-12-07 16:30:50.000000000 +0900
+++ foswiki.fcgi-fix 2010-12-07 17:00:17.000000000 +0900
@@ -59,7 +59,8 @@
pod2usage(1) if $help;
# untaint
-$pidfile =~ /^(.*)$/ and $pidfile = $1;
+$pidfile =~ /^(.*)$/ and $pidfile = $1
+ if $pidfile;
@ARGV = @argv;
undef @argv;
there's been a fix for this commited since 2010
so i've uploaded a version - looks like too many people run from svn.
--
SvenDowideit - 08 Sep 2011