Menu

#118 unix file finder doesn't collect/follow symlinks to director

Version 5.10
closed-fixed
7
2014-07-21
2010-03-18
No

In FileFinder::GetPathsForPattern(), lstat() is used to check file type, and
only collects a path if its type is directory. This means symlinks to
directories are ignored.

Discussion

  • Jonathan Baker

    Jonathan Baker - 2010-03-19
    • priority: 5 --> 7
     
  • Michael Chisholm

    For now, we've decided to always treat symlinks as links, in the first phase of file searching (before behaviors), which is where FileFinder::GetPathsForPattern() is used.

    In the unix filefinder, in the second phase, which would use behaviors, the "recurse" behavior is ignored. So I'm going to change this bug's focus to FileFinder::GetChildDirectories(), which is the relevant part of the implementation of the downward recursion behavior. It needs to respect the default recurse behavior, "symlinks and directories", which means traversing symlinks to directories. Values other than default aren't yet supported.

     

    Last edit: Michael Chisholm 2014-07-21
  • Michael Chisholm

    • Group: --> Version 5.10
     
  • Michael Chisholm

    • status: open --> closed-fixed
     
  • Michael Chisholm

    Fixed in [r1800].

     

    Related

    Commit: [r1800]


Log in to post a comment.