From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Ronan.Keryell@enstb.org: tramp sudo:: and version control on RCS root controlled files] Date: Sun, 20 Nov 2005 21:28:39 +0200 Message-ID: References: <1132399024.3050.90.camel@localhost> <87psov6yo6.fsf-monnier+emacs@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1132514987 5194 80.91.229.2 (20 Nov 2005 19:29:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 19:29:47 +0000 (UTC) Cc: spiegel@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 20 20:29:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Edurx-0000Bm-7G for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2005 20:28:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Edurw-0002B5-ON for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2005 14:28:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Edurm-0002AU-9f for emacs-devel@gnu.org; Sun, 20 Nov 2005 14:28:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Edurk-0002AG-QG for emacs-devel@gnu.org; Sun, 20 Nov 2005 14:28:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Edurk-0002A8-LY for emacs-devel@gnu.org; Sun, 20 Nov 2005 14:28:44 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Edurj-0005Ib-F7; Sun, 20 Nov 2005 14:28:43 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-33-37.inter.net.il [80.230.33.37]) by nitzan.inter.net.il (MOS 3.6.5-GR) with ESMTP id BZH23959 (AUTH halo1); Sun, 20 Nov 2005 21:28:32 +0200 (IST) Original-To: Stefan Monnier In-reply-to: <87psov6yo6.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 20 Nov 2005 12:02:59 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46352 Archived-At: > From: Stefan Monnier > Date: Sun, 20 Nov 2005 12:02:59 -0500 > Cc: rms@gnu.org, emacs-devel@gnu.org > > > 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. > > We could try and use (process-file "whoami") or (process-file "id"). Can we assume that these commands are always available on all supported systems?