Skip to content

bug(find): when -mindepth greater than -maxdepth it outputs files, even if must not #778

Description

@HackingRepo

Hi, findutils mainteners

that was a logic issue with find. as we confirmed

relunsec@relunsec:~/software/findutils/target/debug$ /bin/find -mindepth 2 -maxdepth 1 
relunsec@relunsec:~/software/findutils/target/debug$ ./find -mindepth 2 -maxdepth 1 
./.cargo-lock
./build
./incremental
./xargs.d
./--help
./testing-commandline
./xargs
./-lah .
./-lah
./libfindutils.d
./find
./a.bin
./testing-commandline.d
./-quit
./.cargo-artifact-lock
./deps
./locate
./updatedb
./
./locate.d
./.cargo-build-lock
./.fingerprint
./libfindutils.rlib
./updatedb.d
./--helpg
./examples
./find.d
./z
relunsec@relunsec:~/software/findutils/target/debug$ 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions