[Bug 248096] find can't traverse symbolic link to path properly?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 19 11:58:28 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248096

andrew at tao11.riddles.org.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew at tao11.riddles.org.uk

--- Comment #1 from andrew at tao11.riddles.org.uk ---
Working as designed, and as documented, and as required by specification.

The relevant part of the spec says:

   If neither the -H nor the -L option is specified, then the file information
and type for symbolic links encountered as a path operand on the command line
or encountered during the traversal of a file hierarchy shall be that of the
link itself.

That is to say,  `find somelink -type d`   sees "somelink" as being of type "l"
(symlink) and not "d" (directory), since the -H option was not used.
Accordingly the link is not matched.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list