Skip Menu |

This queue is for tickets about the Tk-RemoteFileSelect CPAN distribution.

Report information
The Basics
Id: 12209
Status: resolved
Priority: 0/
Queue: Tk-RemoteFileSelect

People
Owner: rkies [...] cpan.org
Requestors: DOUGW [...] cpan.org
Cc:
AdminCc:

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



Subject: Handle symbolic links to directories
All symbolic links are currently treated as files. This patch will correctly handle a symbolic link to a directory.
--- RemoteFileSelect.pm.old2 Fri Apr 08 14:43:03 2005 +++ RemoteFileSelect.pm Fri Apr 08 15:00:24 2005 @@ -705,6 +705,12 @@ $name = $f; if ( $f =~ /^l/ ) { $name =~ s/.* (.*) \-\> .*/\1/; + if ( $ftp -> cwd($name) ) { + substr($f, 0, 1) = "d"; + if( ! $ftp -> cwd( $dir ) ) { + $w -> Error( "Cannot cwd to $dir." ); + } + } } else { $name =~ s/.* //; }
[DOUGW - Fri Apr 8 18:08:36 2005]: Show quoted text
> All symbolic links are currently treated as files. This patch will > correctly handle a symbolic link to a directory.
Patch applied. Older versions of Net::FTP.pm can cause the dialog to freeze.