Skip Menu |

This queue is for tickets about the App-Daemon CPAN distribution.

Report information
The Basics
Id: 50326
Status: resolved
Priority: 0/
Queue: App-Daemon

People
Owner: Nobody in particular
Requestors: christian.kuelker [...] cipworx.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)



./app_daemon.pl -X start Daemon.pm-92: Running in foreground Daemon.pm-147: Process ID is 27140 Insecure dependency in unlink while running with -T switch at /usr/local/share/perl/5.8.8/App/Daemon.pm line 143.
Subject: app_daemon.pl
#!/usr/bin/perl -w -T use warnings; use strict; use App::Daemon qw(daemonize); use re 'taint'; # Keep data captured by parens tainted delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; # Make %ENV safer print "start\n"; daemonize(); sleep 10; print "stop\n";
If no -p option is given, the script uses a pid file with a generated name: '/tmp/' . basename($0) . ".pid" which, in tained mode, perl still considers to be tainted. I've added a fix for 0.07: http://github.com/mschilli/app-daemon/commit/ffdd75d70f8b6f0c580dd0c6262203af8abedfc1 Thanks for your report.