Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Core CPAN distribution.

Report information
The Basics
Id: 119181
Status: new
Priority: 0/
Queue: Perl-Core

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

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



Subject: File::Copy copy function should use sysopen instead of open
On Windows, there are reserved filenames, e.g. "aux.txt" that are prefixed by device names. It is possible to create files/directories, as long as they are escaped, e.g. \\.\C:\some\dirs\aux.txt But Perl''s open() function cannot open these files. They can be opened using sysopen.
Arguably, File::Spec->rel2abs should perhaps escape these as well. Or perhaps there should be an option to do that. On Thu Dec 08 08:07:21 2016, RRWO wrote: Show quoted text
> On Windows, there are reserved filenames, e.g. "aux.txt" that are > prefixed by device names. > > It is possible to create files/directories, as long as they are > escaped, e.g. \\.\C:\some\dirs\aux.txt > > But Perl''s open() function cannot open these files. They can be > opened using sysopen.