I can verify that using the patch provided by
https://github.com/uutils/coreutils/pull/14136.patch solves the issue:
~/temp/coreutils-test
❯ apt policy rust-coreutils
rust-coreutils:
Installed: 0.10.0-1ubuntu2
Candidate: 0.10.0-1ubuntu2
Version table:
*** 0.10.0-1ubuntu2 100
100 /var/lib/dpkg/status
0.10.0-1ubuntu1 500
500 http://archive.ubuntu.com/ubuntu stonking/main amd64 Packages
~/temp/coreutils-test
❯ cp --version
cp (uutils coreutils) 0.10.0
~/temp/coreutils-test
❯ echo hello > file1
~/temp/coreutils-test
❯ ll
total 4
-rw-rw-r-- 1 bamf0 bamf0 6 Aug 26 18:26 file1
~/temp/coreutils-test
❯ ( umask 333 && coreutils cp file1 file2 )
~/temp/coreutils-test
❯ ll
total 8
-rw-rw-r-- 1 bamf0 bamf0 6 Aug 26 18:26 file1
-r--r--r-- 1 bamf0 bamf0 6 Aug 26 18:27 file2
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2164777
Title:
rust-coreutils cp: fails with "Permission denied" when umask strips
owner-write
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2164777/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs