Menu

#11 cindex does not follow and index symlinked paths

New
nobody
None
Medium
Defect
2014-03-28
2012-02-07
Anonymous
No

Originally created by: manpreet...@gmail.com

What steps will reproduce the problem?
1. Create some symlinks to some source code in a directory.
2. Index that directory.
3. Search for symbols which are only in symlinked source files.

What is the expected output? What do you see instead?

I expect to see symlinked files listed by csearch.
csearch only indexed regular files.

What version of the product are you using? On what operating system?

0.1 on Mac OS X 10.6

Please provide any additional information below.

Maybe additionally provide an option to restrict or follow symlinks to certain filesystems for better control.

Discussion

  • Anonymous

    Anonymous - 2012-02-08

    Originally posted by: dgryski

    Avoiding symlinks was specifically disabled with revision [rf9a003c603e3e456bed3ff2fb738bb63d53a6388]

    A '-follow-symlinks' option would be easy to add to toggle this behaviour.

     
  • Anonymous

    Anonymous - 2014-03-28

    Originally posted by: manpreet...@gmail.com

    Just noting that this is implemented in my fork at

    https://github.com/junkblocker/codesearch

    if anybody is interested.

     

Log in to post a comment.

MongoDB Logo MongoDB