Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dd: should error on reading stdin when iflag=directory option is given #5900

@jfinkels

Description

@jfinkels

GNU coreutils dd 9.4.113-c01ee

$ : | dd iflag=directory
dd: setting flags for 'standard input': Not a directory

uutils dd:

$ : | ./target/debug/dd iflag=directory
0+0 records in
0+0 records out
0 bytes copied, 2.37402e-04 s, 0.0 B/s

Test case found in GNU test suite tests/dd/misc.sh.

Edit: tested on Ubuntu 20.04, where the iflag=directory option is allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions