Skip to content

cp -a --no-preserve=mode doesn't keep fully the mode #5327

@sylvestre

Description

@sylvestre

tested here: https://github.com/coreutils/coreutils/blob/master/tests/cp/link-preserve.sh#L82-L87 and following
#5308

rm -rf a b
touch a; chmod 731 a
umask 077
./target/debug/coreutils cp -a --no-preserve=mode a b
ls -l b|cut -b-10

With GNU:
-rw-------

with our:
-rwx------

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