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