Skip Menu |

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

Report information
The Basics
Id: 54104
Status: new
Priority: 0/
Queue: Working-Daemon

People
Owner: Nobody in particular
Requestors: pjs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.31
Fixed in: (no value)



Subject: ruid and euid set in wrong order
I believe that these lines in drop_privs(): $< = $self->uid; $> = $self->uid; are in the wrong order. When done this way around, the result is that the taint flag (${^TAINT}) gets set, which if intentional, should at least be documented here. Setting the ruid and euid the other way around avoids turning on taint mode. Alternatively, use POSIX::setuid as perlvar suggests.