summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-10-20 21:16:10 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2010-10-20 21:16:10 -0400
commitdd49cf696c14c1189efa9eca5318b856a804c985 (patch)
tree6d7912e0d882234a9aff811265961f65da5b8a38 /make/template
parent6cb19cfffdd2b7ceb981d194920c02c363c48ace (diff)
Fix taint mode execution
Diffstat (limited to 'make/template')
-rw-r--r--make/template/inspircd8
1 files changed, 4 insertions, 4 deletions
diff --git a/make/template/inspircd b/make/template/inspircd
index ed98a186b..1b9f25a86 100644
--- a/make/template/inspircd
+++ b/make/template/inspircd
@@ -380,16 +380,16 @@ sub getpidfile
sub getstatus {
my $pid = getprocessid();
return 0 if $pid == 0;
- return kill 0, $pid;
+ return kill 0, $1;
}
sub getprocessid {
- my $pid;
- open PIDFILE, "< $pidfile" or return 0;
+ my $pid = 0;
+ open PIDFILE, '<', $pidfile or return 0;
while(<PIDFILE>)
{
- $pid = $_;
+ /(\d+)/ and $pid = $1;
}
close PIDFILE;
return $pid;