Skip Menu |

This queue is for tickets about the Net-FTP-Recursive CPAN distribution.

Report information
The Basics
Id: 3140
Status: resolved
Priority: 0/
Queue: Net-FTP-Recursive

People
Owner: texasjdl [...] yahoo.com
Requestors: nwourms [...] netscape.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.6
Fixed in: 1.7



Subject: rdir sample falls into infinite loop with circular symlinks
Net-FTP-Recursive-1.6 v5.8.0 i686-pc-cygwin Basically, the rdir script gets stuck in a infinite loop when attempting to recurse a directory with a symlink to another dir which had already been recursed previously. This is easy to reproduce by running rdir on the ftp site "people.redhat.com". Here's a brief excerpt of what is happening (the troubled dir is indeed /mharris): /mharris/testing: /mharris/testing/2.1AS: /mharris/testing/2.1AS/XFree86: /mharris/testing/7.2: lrwxrwxrwx 1 5040 5040 16 Dec 20 2002 XFree86 -> ../2.1AS/XFree86 /mharris/testing/7.3: /mharris/testing/8.0: /mharris/testing/8.0/XFree86: /mharris/testing/9: /mharris/testing/9/XFree86: /mharris/testing: /mharris/testing/2.1AS: /mharris/testing/2.1AS/XFree86: /mharris/testing/7.2: lrwxrwxrwx 1 5040 5040 16 Dec 20 2002 XFree86 -> ../2.1AS/XFree86 . . . . This just keeps looping and looping ad-infinitum. I looked at the rdir script, but I believe this happens because of some missing logic in the module itself? I don't think that this is releated to my operating system. Thanks
I released a new version in which the rdir method has the cycle-checking code that is in the recursive get method. I tested it on people.redhat.com/mharris and it worked there, as well as on my local machine. Feel free to email me with any further problems.