From 1127c8a009a28e04dd6a883e1ff59bbf02591583 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 29 Jul 2013 09:51:52 +0100 Subject: 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 --- doc/coreutils.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') 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}. -- cgit v1.2.3-70-g09d2