Skip to content

Panic in multiple programs when redirecting stdout to /dev/full #2925

Description

@jfinkels

uutils programs panic when attempting to redirect stdout to /dev/full with a "could not flush stdout" error.

For example, GNU seq:

$ seq inf > /dev/full
seq: write error: No space left on device

uutils seq:

$ ./target/debug/seq inf > /dev/full
./target/debug/seq: write error: No space left on device
thread 'main' panicked at 'could not flush stdout: Os { code: 28, kind: StorageFull, message: "No space left on device" }', src/uu/seq/src/main.rs:1:1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Similar results can be seen for other programs as well; I tried echo and printf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions