Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 12357
Status: resolved
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: Loading Cwd taints $^O.
$ perl -MScalar::Util=tainted -Twle 'print tainted $^O; require Cwd; print tainted $^O' 0 1 Cwd 3.04 and 3.06 on OS X (perl 5.8.1RC3) causes $^O to become tainted. It happens somewhere in the logic for figuring out if _backtick_cwd should be used (lines 331-336). On OS X _backtick_cwd() is chosen and that is the point where $^O becomes tainted. This causes problems with anything that assumes $^O is safe and loads Cwd such as URI::file->cwd. It appears to be a 5.8.1 bug. 5.8.6 does not have this problem.
Yeah, probably because it uses -x in the same breath as using $^O. I'll make the fix, thanks for the catch. -Ken