Coder Social home page Coder Social logo

Comments (5)

ggreer avatar ggreer commented on May 10, 2024

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.

IanMReed avatar IanMReed commented on May 10, 2024

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.

ggreer avatar ggreer commented on May 10, 2024

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.

IanMReed avatar IanMReed commented on May 10, 2024

Will do - once I work out how to drive git.

from the_silver_searcher.

ggreer avatar ggreer commented on May 10, 2024

Fixed by @IanMReed in #37.

from the_silver_searcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.