Skip Menu |

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

Report information
The Basics
Id: 41493
Status: new
Priority: 0/
Queue: File-List

People
Owner: Nobody in particular
Requestors: E.W.Iparraguirre [...] inter.nl.net
Cc:
AdminCc:

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



CC: "E.W.Iparraguirre" <E.W.Iparraguirre [...] inter.nl.net>
Subject: File-List looping on forward links
Date: Sat, 06 Dec 2008 22:27:42 +0100
To: bug-File-List [...] rt.cpan.org
From: "E.W.Iparraguirre" <E.W.Iparraguirre [...] inter.nl.net>
LS, There seems to be an issue when File-List is searching for directories and find a symbolic link which is pointing to the directory in which itself is located, as then File-List goes in a (non-)permanent loop expanding the symbolic link. Better explained, say there is a link like (created by means of ln -s /test/bin /test/bin/X11) lrwxrwxrwx /test/bin/X11 -> /test/bin then File-List start to loop and showing results like: /test/bin/X11/bash **/test/bin/X11/X11/bash **/test/bin/X11/X11/X11/bash **/test/bin/X11/X11/X11/X11/bash **/test/bin/X11/X11/X11/X11/X11/bash **/test/bin/X11/X11/X11/X11/X11/X11/bash **/test/bin/X11/X11/X11/X11/X11/X11/X11/bash **/test/bin/X11/X11/X11/X11/X11/X11/X11/X11/bash **/test/bin/X11/X11/X11/X11/X11/X11/X11/X11/X11/bash ......................... The issue disappears if the line 73 in List.pm if (-d "$base/$entry") { is replaced by if (-d "$base/$entry" and not -l "$base/$entry") { The environment where the issue appears is: File-List-0.3.1 perl v5.8.8 built for i486-linux-thread-multi Linux slackware 2.6.24.5-smp FYI, these kind of (forward ?) links can be found e.g. under Slackware 12.1 or Ubuntu 8.04.1, e.g. /bin/ls -l /usr/bin/X11 gives lrwxrwxrwx 1 root root 1 2008-11-26 22:11 /usr/bin/X11 -> ./ /Thanks for taking a look at it! / -- ------------------------------------- Edgar W. Iparraguirre R.H. Fledderusstraat 13 3071 MH ROTTERDAM Nederland Tel. : +31 (0)10 423 1818 E-mail: E.W.Iparraguirre@inter.nl.net