Skip Menu |

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

Report information
The Basics
Id: 73881
Status: resolved
Priority: 0/
Queue: File-Copy-Recursive

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

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



Subject: Improper failure when creating symlinks with an existing destination entity
During a copy operation attempts to create a symbolic link with the name of an already existing entity in the destination directory will fail. I think that this is incorrect behavior as other copy operations successfully handle the same situation. The root cause of this in File::Copy::Recursive is the use of the Perl symlink function, which will fail if an attempt is made to use it on an existing entity. To be symmetric with the other copy operations, the existing entity must first be deleted, and then the symlink should be created. Thanks, Diab
Subject: Re: [rt.cpan.org #73881] Improper failure when creating symlinks with an existing destination entity
Date: Tue, 10 Jan 2012 10:36:13 -0600
To: bug-File-Copy-Recursive [...] rt.cpan.org
From: Dan Muey <webmaster [...] simplemood.com>
Thanks, this will be addressed with an upcoming modernization of FCR. On Jan 10, 2012, at 10:19 AM, Diab Jerius via RT wrote: Show quoted text
> Tue Jan 10 11:19:56 2012: Request 73881 was acted upon. > Transaction: Ticket created by DJERIUS > Queue: File-Copy-Recursive > Subject: Improper failure when creating symlinks with an existing > destination entity > Broken in: (no value) > Severity: Critical > Owner: Nobody > Requestors: djerius@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=73881 > > > > During a copy operation attempts to create a symbolic link with the name > of an already existing entity in the destination directory will fail. I > think that this is incorrect behavior as other copy operations > successfully handle the same situation. > > The root cause of this in File::Copy::Recursive is the use of the Perl > symlink function, which will fail if an attempt is made to use it on an > existing entity. To be symmetric with the other copy operations, the > existing entity must first be deleted, and then the symlink should be > created. > > Thanks, > > Diab > > > > >