Skip to content

bug: find panic when a file owner or uid invalid with -ls #692

@HackingRepo

Description

@HackingRepo

Hi, findutils mainteners

we reproduced that via

$ touch /tmp/panic_file
$ sudo chown 9999:9999 /tmp/panic_file

as i see a panic

relunsec@relunsec:~/software/findutils$ ./target/release/find /tmp/panic_file -ls

thread 'main' (154111) panicked at src/find/matchers/ls.rs:155:48:
called `Result::unwrap()` on an `Err` value: ENOENT
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

but the gnu version it fully works

relunsec@relunsec:~/software/findutils$ /bin/find /tmp/panic_file -ls
    13327      0 -rw-rw-r--   1 9999     9999            0 Jun  4 12:34 /tmp/panic_file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions