all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: Preserve permissions after backup?
Date: Mon, 27 Jan 2003 08:22:14 +0200 (IST)	[thread overview]
Message-ID: <Pine.SUN.3.91.1030127081943.11790D-100000@is> (raw)
In-Reply-To: <84fzrfej2c.fsf@lucy.is.informatik.uni-duisburg.de>


On Sun, 26 Jan 2003, Kai =?iso-8859-1?q?Gro=DFjohann?= wrote:

> A Tramp user is reporting that the permissions of a root-owned file
> change after he edits it with Tramp (the su method).  I'm guessing
> that's because Tramp does backup by renaming and creates a new file
> with default permissions.
> 
> Is there some machinery in Emacs which is designed to prevent things
> like this from happening?

I think that machinery is in this line of files.el:basic-save-buffer:

   (set-file-modes buffer-file-name setmodes)

[and similar lines elsewhere in basic-save-buffer's subroutines].

Perhaps Tramp sabotaged some of the code that tells Emacs there's a need 
to set file's permissions, or maybe set-file-modes itself fails under 
Tramp?

  reply	other threads:[~2003-01-27  6:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-26 20:45 Preserve permissions after backup? Kai Großjohann
2003-01-27  6:22 ` Eli Zaretskii [this message]
2003-01-27 17:41 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.3.91.1030127081943.11790D-100000@is \
    --to=eliz@is.elta.co.il \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.