all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andre Spiegel <spiegel@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Ronan.Keryell@enstb.org: tramp sudo:: and version control on RCS root controlled files]
Date: Sat, 19 Nov 2005 12:17:04 +0100	[thread overview]
Message-ID: <1132399024.3050.90.camel@localhost> (raw)
In-Reply-To: <E1EYXgy-0001gS-J5@fencepost.gnu.org>

On Sat, 2005-11-05 at 18:43 -0500, Richard Stallman wrote:

> [I sent this message three times but my system did not see
> a response.  Did you deal with this?]

Sorry for the delayed response.  This is actually a more fundamental
issue and I'm not sure how to proceed with this.

Here is the problem statement:

> When I want to modify a file owned by root and RCS controlled through the
> tramp sudo:: method, Emacs think it does not have to do the check out and
> triggers a steal-the-lock procedure.

The problem is that VC needs to compare the name of the user holding the
lock on a file to the name of the user that is running Emacs.  (The RCS
master file only contains the name of the locking user, no UID.)  VC
normally compares the name to user-login-name, but this is not correct
when Tramp is involved, because the account at the end of the Tramp
connection might be a different one (not just under the sudo:: method,
other methods can also exhibit this behaviour).

The only solution I can think of would be to have a new
file-handler-sensitive operation (file-login-name FILE) which returns
the name of the user under which Emacs accesses the given FILE.  For
local files, that would be equivalent to user-login-name, for remote
files it would be the name of the remote user, or "root" if Tramp sudo::
is involved.

What do you think?

       reply	other threads:[~2005-11-19 11:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EYXgy-0001gS-J5@fencepost.gnu.org>
2005-11-19 11:17 ` Andre Spiegel [this message]
2005-11-20 17:02   ` [Ronan.Keryell@enstb.org: tramp sudo:: and version control on RCS root controlled files] Stefan Monnier
2005-11-20 17:46     ` Andre Spiegel
2005-11-20 19:03       ` Andreas Schwab
2005-11-20 22:49       ` Stefan Monnier
2005-11-21 10:11         ` Andre Spiegel
2005-11-21  9:53       ` Michael Albinus
2005-11-20 19:28     ` Eli Zaretskii
2005-11-20 22:50       ` Stefan Monnier
2005-11-20 23:23   ` Richard M. 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=1132399024.3050.90.camel@localhost \
    --to=spiegel@gnu.org \
    --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.