Skip to content

cp: -s and -l together should be rejected #15987

Open

Description

@sylvestre
$ echo a > a.txt
$ cp -s -l a.txt b; echo $?

GNU:

cp: cannot make both hard and symbolic links
Try 'cp --help' for more information.
1

uutils exits 0 and creates b.

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