From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [Ronan.Keryell@enstb.org: tramp sudo:: and version control on RCS root controlled files] Date: Mon, 21 Nov 2005 10:53:00 +0100 Message-ID: References: <1132399024.3050.90.camel@localhost> <87psov6yo6.fsf-monnier+emacs@gnu.org> <1132508810.3050.102.camel@localhost> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1132581054 10427 80.91.229.2 (21 Nov 2005 13:50:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2005 13:50:54 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 21 14:50:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EeC3b-0002FM-1a for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2005 14:50:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EeBuc-0003Tz-0g for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2005 08:40:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EeAs3-0007D0-Ul for emacs-devel@gnu.org; Mon, 21 Nov 2005 07:34:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EeAlF-0005cT-Cl for emacs-devel@gnu.org; Mon, 21 Nov 2005 07:27:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ee8MH-0001zq-BE for emacs-devel@gnu.org; Mon, 21 Nov 2005 04:53:11 -0500 Original-Received: from [194.113.59.96] (helo=mailrelay2.alcatel.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Ee8ME-00012D-C3; Mon, 21 Nov 2005 04:53:06 -0500 Original-Received: from slbwba.alcatel.de (slbwba.bln.sel.alcatel.de [149.204.93.70]) by mailrelay2.alcatel.de (8.12.10/8.12.10/ICT TSC MAIL 2005) with ESMTP id jAL9r0mE019457; Mon, 21 Nov 2005 10:53:00 +0100 Original-To: Andre Spiegel In-Reply-To: <1132508810.3050.102.camel@localhost> (Andre Spiegel's message of "Sun, 20 Nov 2005 18:46:50 +0100") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux) X-Scanned-By: MIMEDefang 2.49 on 149.204.45.73 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:46399 Archived-At: Andre Spiegel writes: > A related operation, also used in VC, is to find a user's login name, > given the uid of that user. In the local case, Emacs does it via > (user-login-name UID), which is implemented as getpwuid(). How would > you do that for a remote file? I'm currently baffled as to how I could > get that information at the shell level, sans grepping /etc/passwd of > course. # touch /tmp/foo; chown UID /tmp/foo Then you can retrieve the user name via file-attributes, with ID-FORMAT 'string. Best regards, Michael.