Menu

#11 sfind doesn't follow symlinks with -L and without -dostat

1.0
closed
nobody
None
2019-10-04
2019-05-22
No

For example:

$ mkdir -p foo/bar/baz
$ ln -s bar foo/link
$ ./sfind/OBJ/x86_64-linux-gcc/sfind -L foo
foo
foo/bar
foo/bar/baz
foo/link
$ ./sfind/OBJ/x86_64-linux-gcc/sfind -L foo -dostat
foo
foo/bar
foo/bar/baz
foo/link
foo/link/baz

I observe this on Linux on both btrfs and tmpfs. I suspect it's trusting d_type.

Discussion

  • Jörg Schilling

    Jörg Schilling - 2019-10-04

    Fixed in schily-2019-09-22

     
  • Jörg Schilling

    Jörg Schilling - 2019-10-04
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB