GNU bug report logs - #78638
30.1; When editing a remote file owned by another user, Tramp signals an error because it cannot change the file mode

Previous Next

Package: emacs;

Reported by: Michael McClennen <mmcclenn <at> geology.wisc.edu>

Date: Thu, 29 May 2025 21:10:02 UTC

Severity: normal

Found in version 30.1

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Richard Stallman <rms <at> gnu.org>
Cc: mmcclenn <at> geology.wisc.edu, eliz <at> gnu.org, eggert <at> cs.ucla.edu, 78638 <at> debbugs.gnu.org
Subject: bug#78638: 30.1; When editing a remote file owned by another user, Tramp signals an error because it cannot change the file mode
Date: Tue, 24 Jun 2025 08:55:18 +0200
Richard Stallman <rms <at> gnu.org> writes:

Hi Richard,

> When Emacs saves a file directly, its preferred method is to write the
> file under another name and then ewnames it into the desired name.
> That is to avoid problems like this.
>
> Should Tramp do it that way too?

This is what Tramp does. It writes the file to a local temporary name,
and copies it then to the remote side. The error happened when calling
"chmod ..."  afterwards.

Best regards, Michael.




This bug report was last modified 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.