delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/28/16:05:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Lasse <lasse AT yrk DOT dk>
Subject: Re: ls when acl() is busy [was: ls slow on top-level directory]
Date: Tue, 28 Jun 2005 22:03:25 +0200
Lines: 28
Message-ID: <d9sa0v$va3$1@sea.gmane.org>
References: <062820050324 DOT 16993 DOT 42C0C2EB00001A5B0000426122007610640A050E040D0C079D0A AT comcast DOT net> <20050628083433 DOT GC5174 AT calimero DOT vinschen DOT de> <42C14C94 DOT 2040809 AT byu DOT net>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <42C14C94.2040809@byu.net>
Cc: bug-coreutils AT gnu DOT org
X-IsSubscribed: yes

Eric Blake wrote:
> According to Corinna Vinschen on 6/28/2005 2:34 AM:
> 
>>However, IMHO, ls should be changed to just print no error message,
>>if file_has_acl() returns -1 and errno is set to EBUSY, and the file
>>should simply be treated as a file with no ACL.  That's the least
>>intrusive way, IMHO.
> 
> Certainly less intrusive, but also potentially misleading.  The point of a
> new character is to make it obvious that ls was unable to determine if
> there are ACLs, rather than that the file has no alternate access.

IMO, it should be the other way around, i.e. no error but a '+' to
signify an ACL, for two reasons:

1. Transperency. Since the UNIX permissions are emulated, one could
argue that all files should have the '+' displayed...

2. Probability. If the file is busy there's good chance that the file
has an ACL.

I view the '+' as a reminder that "there's more to it than what is
shown" and I think that would be right thing to convey for busy files.

I think this behaviour would be the least surprising...

-- 
/Lasse


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019