[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:48:31 UTC 2020


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

            Bug ID: 248096
           Summary: find can't traverse symbolic link to path properly?
           Product: Base System
           Version: 12.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: dmilith at me.com

One example > 1000 words:

cd /tmp
mkdir -p a_dir1/{inner1,inner2}
ln -s a_dir1 a_symlink1

find a_dir1 -type d # all good, shows directories inside

find a_symlink1 -type d # shows nothing

find a_symlink1/ -type d # shows directories inside


If find expects a path as first argument, why it can't traverse symlinks to
path without explicitly specified / at end of dir name?

Unsure it's a bug, but it caused a bug in my scripts, so reporting.

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


More information about the freebsd-bugs mailing list