[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #19605] find does not report symlink loop when trying to follow sym

From: Geoff Clare
Subject: [bug #19605] find does not report symlink loop when trying to follow symlinks
Date: Tue, 17 Apr 2007 08:39:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv: Gecko/20070312 Firefox/

Follow-up Comment #3, bug #19605 (project findutils):

You are confusing directory loops and symlink loops, which are completely
different things.  In a directory loop, a symlink points up to a parent
directory of the symlink.  A stat() of the symlink succeeds.  In a symlink
loop the symlink ends up (possibly through other symlinks) pointing to
itself.  A stat() of the symlink fails with ELOOP.  The POSIX requirements
relating to detection of directory loops have no bearing on this problem,
which is about symlink loops.

It's interesting that adding -size produces the desired result, but it
shouldn't make any difference.  With -L (or -H), find needs to stat() each
path operand in order to tell whether it resolves to a directory that it
should descend into.

You had your doubts about bug 11148 as well, but in the end you decided to
make the change I requested.

The current versions of AIX, HP-UX and Solaris all report the expected error,
the same as findutils 4.2.28 does.  I can see no justification for making
4.3.3 behave differently.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]