Skip to content

bug: -fprintf with /dev/full find causes a panic #697

@HackingRepo

Description

@HackingRepo

Hi, uutils findutils mainteners

i want inform you about another panic using /dev/full

relunsec@relunsec:~/software/findutils/target/release$ ./find -fprintf /dev/full /dev/full

thread 'main' (168163) panicked at src/find/matchers/printf.rs:589:79:
called `Result::unwrap()` on an `Err` value: Os { code: 28, kind: StorageFull, message: "No space left on device" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The GNU behavior is a clear error

relunsec@relunsec:~/software/findutils/target/release$ /bin/find -fprintf /dev/full /dev/full
/bin/find: ‘/dev/full’: No space left on device
/bin/find: ‘/dev/full’: No space left on device
relunsec@relunsec:~/software/findutils/target/release$ 

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