Public bug reported:

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 $?
1
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
coreutils 0.10.0 (multi-call binary)
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

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- cp: fails with "Permission denied" when umask strips owner-write 
+ rust-coreutils cp: fails with "Permission denied" when umask strips 
owner-write

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