Skip to content

cksum: explicit - operand is not printed as file name #15984

Closed

Description

@sylvestre

When stdin is given explicitly as -, GNU prints - as the file name. uutils prints nothing.

$ cksum - < /dev/null

GNU: 4294967295 0 -
uutils: 4294967295 0

With no operand at all, both print 4294967295 0.

Reported in #15254 (found by a differential fuzzer; reproduced against GNU coreutils 9.12).

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