URL:
  <http://savannah.gnu.org/bugs/?19605>

                 Summary: find does not report symlink loop when trying to
follow symlinks
                 Project: findutils
            Submitted by: geoffclare
            Submitted on: Monday 16/04/07 at 10:25
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Geoff Clare
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.3.3
           Fixed Release: None

    _______________________________________________________

Details:

This is effectively the same problem as bug 11148 (fixed long ago) but now in
the fts version of the code.

$ ln -s a b
$ ln -s b a
$ find --version
GNU find version 4.3.3
Built using GNU gnulib version 2007-04-14
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD)
CBO(level=0) 
$ find -L a
a

It should report an error when it gets ELOOP, as with the non-fts version of
find:

$ find-4.2.28 -L a     
find-4.2.28: a: Too many levels of symbolic links

The original fts code also did not have the problem.  It has come in since
the last time I tried the fts version (from CVS in August 2005).





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19605>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to