diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-07-29 09:51:52 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-08-01 13:56:38 +0100 |
commit | 1127c8a009a28e04dd6a883e1ff59bbf02591583 (patch) | |
tree | 0519816d5c99d6a205d4a99bab02ede4cfa57b75 /doc | |
parent | eea81b46cd1dc06c964adfc9a2ee15de6a2ddeee (diff) | |
download | coreutils-1127c8a009a28e04dd6a883e1ff59bbf02591583.tar.xz |
doc: clarify that cp by default doesn't adjust existing file perms
* doc/coreutils.texi (cp invocation): Mention explicitly what
happens to permissions of existing files when -p is not specified.
Fixes http://bugs.gnu.org/14972
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index fb3686640..81bc97f09 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8261,7 +8261,8 @@ all but @samp{Operation not supported} warnings are output. Using @option{--preserve} with no @var{attribute_list} is equivalent to @option{--preserve=mode,ownership,timestamps}. -In the absence of this option, each destination file is created with the +In the absence of this option, the permissions of existing destination +files are unchanged, while each new file is created with the mode bits of the corresponding source file, minus the bits set in the umask and minus the set-user-ID and set-group-ID bits. @xref{File permissions}. |