Subject: bug#9002: closed (Re: bug#9002: file-error Doing chown operation not permitted)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 16 Jul 2011 22:00:05 +0000

Your bug report

#9002: file-error Doing chown operation not permitted

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
9002: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9002
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#9002: file-error Doing chown operation not permitted
From: Paul Eggert <[email-masked]>
To: Glenn Morris <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked]
Date: Sat, 16 Jul 2011 14:59:10 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

On 07/16/11 14:27, Glenn Morris wrote:
> Emacs 23.3 does not give this error, but the trunk does. This seems to
> be a result of the changes in
> 
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8306

Right you are, and thanks for reporting it.  I fixed it in
bzr 105261 on the trunk.  copy-file's help string says "try to
transfer the uid and gid", with the implication that it's OK
if the attempt fails and no diagnosis should be made.

The doc uses stronger language for file modes ("This function always
sets the file modes") so a diagnostic is more appropriate there
and I left that one alone.

Subject: file-error Doing chown operation not permitted
From: [email-masked]
To: [email-masked]
Date: Tue, 05 Jul 2011 20:55:51 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

R runs the command dired-do-rename.

Try this:

Have two directories, both owned by you, but on separate disks.

Try to move a file that is NOT owned by you from one to the other.

Move `/cf/updates/df.j3d' to `/home/jidanni/df.j3d' failed:
(file-error Doing chown operation not permitted /home/jidanni/df.j3d)

That is because emacs is not using the mv(1) command like it should, but
instead resorting to a different error prone half home baked method or
something.

Tested on Debian.

P.S.,
file-error: Doing chown #looks better than
file-error Doing chown