From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.tramp,gmane.emacs.devel Subject: Re: ls-lisp and remote files Date: Sun, 09 Nov 2003 22:29:49 +0100 Sender: tramp-devel-bounces+tramp=quimby.gnus.org@nongnu.org Message-ID: <3FAEB1CD.8010100@math.ku.dk> References: <3FA16F54.80201@math.ku.dk> <873cd2h4vc.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1886004094==" X-Trace: sea.gmane.org 1068413622 1090 80.91.224.253 (9 Nov 2003 21:33:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2003 21:33:42 +0000 (UTC) Cc: tramp-devel@nongnu.org, Kai Grossjohann , emacs-devel@gnu.org Original-X-From: tramp-devel-bounces+tramp=quimby.gnus.org@nongnu.org Sun Nov 09 22:33:40 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AIxBk-00085I-00 for ; Sun, 09 Nov 2003 22:33:40 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AIxBj-0004Ck-00 for ; Sun, 09 Nov 2003 22:33:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AIy8l-0006aR-Gc for tramp@quimby.gnus.org; Sun, 09 Nov 2003 17:34:39 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AIy8b-0006aD-LP for tramp-devel@nongnu.org; Sun, 09 Nov 2003 17:34:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AIy85-0006Vh-Pe for tramp-devel@nongnu.org; Sun, 09 Nov 2003 17:34:28 -0500 Original-Received: from [62.84.220.10] (helo=post.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AIy5b-0005qh-2E for tramp-devel@nongnu.org; Sun, 09 Nov 2003 17:31:23 -0500 Original-Received: from math.ku.dk [62.84.220.219] by post.kabelnettet.dk with ESMTP (SMTPD32-8.03) id A1EA18D0134; Sun, 09 Nov 2003 22:30:18 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en Original-To: Stefan Monnier X-BeenThere: tramp-devel@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tramp-devel-bounces+tramp=quimby.gnus.org@nongnu.org Xref: main.gmane.org gmane.emacs.tramp:1406 gmane.emacs.devel:17736 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17736 --===============1886004094== Content-Type: multipart/alternative; boundary="------------070108050105090408020209" --------------070108050105090408020209 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > > >>I also remember that I looked in the whole Emacs source tree (Lisp >>part only, though) to see if the numerical id is ever actually used. >>It turned out that what the code really wants is the user name. >> >> > >That's what I remember as well. >I think we should simply switch to user-names, but if compatibility >is a problem, we can just provide an additional argument to select >between the two behaviors. > > I have done some searching in the source tree myself now. There are no problems in the C code, but in the lisp code I have found more that 10 files that expects UID to be numeric. It may be true that all of them can be changed to use names rather than ids, but it requires more work than I can handle myself. Therefore I suggest we introduce an additional argument to file-attributes and directory-files-and-attributes. --------------070108050105090408020209 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
I also remember that I looked in the whole Emacs source tree (Lisp
part only, though) to see if the numerical id is ever actually used.
It turned out that what the code really wants is the user name.
    

That's what I remember as well.
I think we should simply switch to user-names, but if compatibility
is a problem, we can just provide an additional argument to select
between the two behaviors.
  
I have done some searching in the source tree myself now. There are no problems in the C code, but in the lisp code I have found more that 10 files that expects UID to be numeric. It may be true that all of them can be changed to use names rather than ids, but it requires more work than I can handle myself. Therefore I suggest we introduce an additional argument to file-attributes and directory-files-and-attributes.
--------------070108050105090408020209-- --===============1886004094== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Tramp-devel mailing list Tramp-devel@nongnu.org http://mail.nongnu.org/mailman/listinfo/tramp-devel --===============1886004094==--