Comments (5)
Thanks for creating an issue. This sounds like a bug in Reiser FS, but it's likely that other filesystems are broken in this way. I don't have an system on which to try and reproduce, so I'll need your help confirming the fix. I'm pretty busy, but I should have something for you to try out within the next week.
from the_silver_searcher.
Happy to help.
I've ended up with some code like this in search.c when looping through the results of scandir:
if(dir->d_type == DT_UNKNOWN) {
if(-1!=lstat(dir_full_path, &stDirInfo))
{
if(S_ISDIR(stDirInfo.st_mode)) {
dir->d_type=DT_DIR;
}
else if (S_ISLNK(stDirInfo.st_mode)) {
dir->d_type=DT_LNK;
}
}
if (!opts.follow_symlinks && dir->d_type == DT_LNK) {
log_debug("File %s ignored becaused it's a symlink", dir->d_name);
goto cleanup;
}
}
I looked at having a variation of this code in filename_filter but as I understand it we don't have the full path there so calling lstat will be problematic. NOTE: Haven't tested the symlink check is working as expected.
from the_silver_searcher.
You have code? This pleases me greatly. I'd love it if you could submit a pull request to get credit for your work (and show up in the git blame
output).
from the_silver_searcher.
Will do - once I work out how to drive git.
from the_silver_searcher.
from the_silver_searcher.
Related Issues (20)
- Anyone want to help with a friendly fork of this project? HOT 6
- --make file type...
- Travis CI badge is broken
- Compilation stoped on qualifier from pointer target type [-Wcast-qual] HOT 1
- "bus error" on Mac OS with specific test file and regex HOT 1
- ag not finding accent letters in case insensitive search explicitly with -i option
- If the file doesn't exist, skip search instead of throwing errors
- wrong output on osx default terminal
- Confused about flag `--print-long-lines`: long lines seem to be printed by default? But can't turn that behavior *off* or modify it? (like `--print-long-lines=false` or `--print-long-lines=200` or something?)
- 2.2.0: test suite uses cram which is no longer maintained
- Add per-directory .gitignore support
- ignore patterns should not directory below their source file
- ag incorrectly parses [.][^.]*$
- feat: include OSC8 escape codes in output
- memory leak in function 'parse_options' HOT 1
- ag does not work on tmpfs/cgroup filesystem
- Entries in .gitignore are applied to the wrong base directory
- Bash completion script is broken with bash-completion v2.12.0 HOT 1
- Missing `S_ISSOCK` for stdin check HOT 1
- Depends on deprecated pcre library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from the_silver_searcher.