Skip to content

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

Closed

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------

Activity

  1. tommady commented on Sep 27, 2023

    @tommady
    Contributor

    Ya sure, let me finish this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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