Skip to content

mkdir: --context without a value should be accepted #16002

Open

Description

@sylvestre

In GNU, -Z/--context[=CTX] takes an optional value. uutils requires one, so the next word is taken as the context.

$ mkdir --context newdir; echo $?

GNU: creates newdir, exits 0.
uutils:

error: the following required arguments were not provided:
  <dirs>...

install --context a.txt newfile has the same problem: uutils reports missing destination file operand after 'newfile'.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions