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


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.


  • - 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 ;-)

  • Hans-Bernhard Broeker

    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.

  • Hans-Bernhard Broeker

    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks