URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13381>

                 Summary: infinite loop with -follow.
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Son 12.06.2005 um 17:17
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

Hello,

this was found by Zhangrong Huang in http://bugs.debian.org/313081

mkdir testingfindagain
ln -s . testingfindagain/symlink

now 
find testingfindagain -follow
will generate an endless loop. (For testing I suggest piping into head -c 200,
otherwise you might trigger OOM)

This was introduced between 4.2.18 and 4.2.19 (when changing find.c from r1.72
 to r1.73). 4.2.x up to 4.2.18 will output this and exit:

find: Symbolic link `testingfindagain/symlink' is
 part of a loop in the directory hierarchy; we have already visited the
directory to which it points.
testingfindagain
testingfindagain/symlink

              cu andreas



    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
[EMAIL PROTECTED]    | original bugsubmitter




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13381>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to