Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 17878
Status: rejected
Priority: 0/
Queue: PathTools

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

Bug Information
Severity: Critical
Broken in: 3.16
Fixed in: (no value)



Subject: ".." in absolute path from rel2abs
Download (untitled) / with headers
text/plain 248b
rel2abs returns files with ".." in them. I have a spec that requires paths not to have ".." in them. I am unable to use File::Spec to generate absolute paths. rel2abs("../bar/file","/foo") returns "/foo/../bar/file" rather than "/bar/file".
Download (untitled) / with headers
text/plain 211b
This is by design. See the note in the docs for canonpath(). If you need to resolve /x/.. sections in paths, have a look at Cwd::abspath(), which will consult the filesystem so it can do it correctly. -Ken


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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