GNU bug report logs - #31675
Existing directories and files permissions are not being kept intact

Previous Next

Package: coreutils;

Reported by: Gunjan Gupta <viraniac <at> gmail.com>

Date: Fri, 1 Jun 2018 07:41:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gunjan Gupta <viraniac <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Existing directories and files permissions are not being kept intact
Date: Fri, 1 Jun 2018 09:20:42 +0530
[Message part 1 (text/plain, inline)]
Hi,

Suppose I have the following directory structure

/
| - destination (mode=0755)
     | - dir (mode=0755)
          | - file.txt (mode=0644)
| - source
     | - dir (mode=0755)
          | - file.txt (mode=0644)

My user has a umask of 0077. Now if I run the following cp command

cp -aR --no-preserve=mode /source/* /destination

I think the mode of destination/dir should stay as 0755 but it changes to
0700. Is this expected?

I am using coreutils 8.26-3 on Debian Stretch

Thanks & Regards
Gunjan Gupta
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 44 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.