Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#261 Regression - version 15.7a does not follow symbolic links

closed
nobody
None
5
2011-07-03
2010-08-27
No

In an empty dir:

touch a.c
ln -s a.c b.c
echo b.c >cscope.files
cscope -b

This works with 15.5; reports error "cannot find file b.c" with 15.7a.

Discussion



  • 2010-08-27

    2006-10-15 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
    * src/dir.c (accessible_file): New function to test for file readability more strictly than just access().
    (inviewpath): Use it to avoid unreadable files (directories, in particular) getting into the srcfilelist, and thus hopefully fix SF bug #1173768.

    This is the source of the bug. The fix is to replace lstat by stat in accessible_file().

    You're welcome ;-)

     
  • That's not a regression --- not by quite a wide margin.

    No version of cscope in this branch of its history tree has accepted symlinks for almost a decade. The only thing version 15.7 changed that we now forbid them in file lists, too, not just while having cscope (-R) looking for files by itself.

     


  • 2010-08-28

    Your last sentence contradicts what precedes it. I dont wish to get into a debate - you can close the bug if you wish. As I rely on cscope following symlinks and see absolutely no reason it shouldnt, I will continue to use a copy with my fix.

     
    • status: open --> closed