Skip to content

mkdir: -m 1,2 should be rejected as an invalid mode #16001

Open

Description

@sylvestre
$ mkdir -m 1,2 d; echo $?; stat -c %a d

GNU:

mkdir: invalid mode '1,2'
1

uutils exits 0 and creates d with mode 0002. mkfifo --mode=1,2 behaves the same.

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