emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14972: closed (cp docs should mention permissions


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14972: closed (cp docs should mention permissions result when destination already exists)
Date: Sun, 28 Jul 2013 09:51:02 +0000

Your message dated Sun, 28 Jul 2013 10:50:31 +0100
with message-id <address@hidden>
and subject line Re: bug#14972: cp docs should mention permissions result when 
destination already exists
has caused the debbugs.gnu.org bug report #14972,
regarding cp docs should mention permissions result when destination already 
exists
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14972
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: cp docs should mention permissions result when destination already exists Date: Sun, 28 Jul 2013 11:31:12 +0800
Fellows, I don't think
(info "(coreutils) cp invocation")
mentions how
$ touch m
$ cp m n
$ chmod 444 m
$ cp m n #THESE LINES
$ cp m p #MAKE DIFFERENT THINGS
$ ls -l
-r--r--r-- 1 jidanni jidanni 0 07-28 11:20 m
-rw-r--r-- 1 jidanni jidanni 0 07-28 11:21 n
-r--r--r-- 1 jidanni jidanni 0 07-28 11:21 p
All we read is

     In the absence of this option, each destination 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.  *Note File permissions::.

So it says 'created', but doesn't mention what happens if the destination
already exists.

Yes I am deliberately not using -p here.

(This would also explain the mystery of how openssh-client: /usr/bin/scp works.)

$ cp --version
cp (GNU coreutils) 8.21



--- End Message ---
--- Begin Message --- Subject: Re: bug#14972: cp docs should mention permissions result when destination already exists Date: Sun, 28 Jul 2013 10:50:31 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
Better to be explicit I suppose.
How about:

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

thanks,
Pádraig.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]