1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-27 09:35:58 +02:00

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
This commit is contained in:
Pádraig Brady
2013-07-29 09:51:52 +01:00
parent eea81b46cd
commit 1127c8a009

View File

@@ -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}.