bug-findutils
[Top][All Lists]
Advanced

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

[bug #51926] -xtype l fails on symbolic links that have a loop


From: James Youngman
Subject: [bug #51926] -xtype l fails on symbolic links that have a loop
Date: Sun, 3 Sep 2017 17:15:15 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Follow-up Comment #1, bug #51926 (project findutils):

I think it's OK to issue a diagnostic (with -L) but the rest of the directory
should be searched: 

$ ./find/find  /tmp/test/ -ls
  3932161      4 drwxr-xr-x   2 james    james        4096 Sep  3 13:15
/tmp/test/
  3932162      0 lrwxrwxrwx   1 james    james           1 Sep  3 13:14
/tmp/test/a -> a
  3932164      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/c
  3932166      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/e
  3932163      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/b
  3932165      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/d
  3932167      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/f

$ ./find/find -L  /tmp/test/ -ls
  3932161      4 drwxr-xr-x   2 james    james        4096 Sep  3 13:15
/tmp/test/
./find/find: ‘/tmp/test/a’: Too many levels of symbolic links
  3932164      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/c
  3932166      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/e
  3932163      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/b
  3932165      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/d
  3932167      0 -rw-r--r--   1 james    james           0 Sep  3 13:15
/tmp/test/f


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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