In an empty dir:
ln -s a.c b.c
echo b.c >cscope.files
This works with 15.5; reports error "cannot find file b.c" with 15.7a.
2006-10-15 Hans-Bernhard Broeker <email@example.com>
* 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.
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.