This upstream bug looks related
https://github.com/uutils/coreutils/pull/10904

** Description changed:

- r@r:~/coreutils-test$ echo hello > file1                                      
                  
- r@r:~/coreutils-test$ ll              
- total 12                                
- drwxrwxr-x 2 r r 4096 Aug 21 18:15 ./   
- drwxr-x--- 6 r r 4096 Aug 21 18:06 ../  
+ r@r:~/coreutils-test$ echo hello > file1
+ r@r:~/coreutils-test$ ll
+ total 12
+ drwxrwxr-x 2 r r 4096 Aug 21 18:15 ./
+ drwxr-x--- 6 r r 4096 Aug 21 18:06 ../
  -rw-rw-r-- 1 r r    6 Aug 21 18:15 file1
  r@r:~/coreutils-test$ ( umask 333 && coreutils cp file1 file2 )
  cp: cannot create regular file 'file2': Permission denied
- r@r:~/coreutils-test$ echo $?                   
+ r@r:~/coreutils-test$ echo $?
  1
- r@r:~/coreutils-test$ ll                        
+ r@r:~/coreutils-test$ ll
  total 12
  drwxrwxr-x 2 r r 4096 Aug 21 18:15 ./
  drwxr-x--- 6 r r 4096 Aug 21 18:06 ../
  -rw-rw-r-- 1 r r    6 Aug 21 18:15 file1
  -r-------- 1 r r    0 Aug 21 18:15 file2
- r@r:~/coreutils-test$ coreutils --version                                     
                  
+ r@r:~/coreutils-test$ coreutils --version
  coreutils 0.10.0 (multi-call binary)
- r@r:~/coreutils-test$ ( umask 333 && gnucp file1 file3 )r@r:~/coreutils-test$ 
ll                        
+ r@r:~/coreutils-test$ ( umask 333 && gnucp file1 file3 )
+ r@r:~/coreutils-test$ ll
  total 16
  drwxrwxr-x 2 r r 4096 Aug 21 18:16 ./
  drwxr-x--- 6 r r 4096 Aug 21 18:06 ../
  -rw-rw-r-- 1 r r    6 Aug 21 18:15 file1
  -r-------- 1 r r    0 Aug 21 18:15 file2
  -r--r--r-- 1 r r    6 Aug 21 18:16 file3

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

Reply via email to