This queue is for tickets about the File-Path CPAN distribution.

Report information
The Basics
Id:
73840
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
RICHE [...] cpan.org
Requestors:
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
2.08
Fixed in:
2.10_001



Subject: Minor bug in rmtree with newlines in CWD
It looks like the untaint line in sub rmtree needs a /s flag adding, ie for ($arg->{cwd}) { /\A(.*)\Z/; $_ = $1 } # untaint should be changed to for ($arg->{cwd}) { /\A(.*)\Z/s; $_ = $1 } # untaint Else weird things happen if the CWD has a newline in it ($arg->{cwd} will be set to $1, which will be set from any previous regex match, since the /\A(.*)\Z/ match will fail). This usually results in rmtree incorrectly failing with a weird "cannot stat" error message. David
This issue has been resolved in dev release http://search.cpan.org/~riche/File-Path/Path.pm version 2.10_001.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.