This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: [ANNOUNCEMENT] Updated [experimental]: findutils-4.3.0-1
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: The Cygwin-Talk Maiming List <cygwin-talk at cygwin dot com>
- Date: Wed, 18 Jan 2006 09:45:39 -0500 (EST)
- Subject: Re: [ANNOUNCEMENT] Updated [experimental]: findutils-4.3.0-1
- References: <announce.43CE3E6D.6050603@byu.net> <Pine.GSO.4.63.0601180915200.20867@access1.cims.nyu.edu> <43CE5088.4070806@byu.net>
- Reply-to: The Cygwin-Talk Malingering List <cygwin-talk at cygwin dot com>
- Reply-to: The Cygwin-Talk Malingering List <cygwin-talk at cygwin dot com>
On Wed, 18 Jan 2006, Eric Blake wrote:
> According to Igor Peshansky on 1/18/2006 7:17 AM:
> > I fully expect a couple of hippos in this thread as well, but
> > nonetheless...
>
> What's that noise behind me? And why are there footprints in my butter?
Heh, I thought hippos only sat on spammers...
> >>** Functional Changes
> >>New tests, -readable, -writable, -executable. These check that a file
> >>can be read, written or executed respectively.
> >
> > Can someone explain to me how these are different from "-perm -0400",
> > "-perm -0200", and "-perm -0100" respectively? Do they use access()?
>
> Yes. Due to ACLs, it is possible for -readable to return true (it uses
> access()) and -perm /0444 to return false (it uses stat()). Also, note
> that -perm /0444 is different than -perm -0444 (/0444 is any of the three
> read bits set, regardless of all other bits, where -0444 is all three read
> bits set. Thus, a file can be readable, have no ACLs, and pass -perm
> /0444 while failing -perm -0444).
Ok, thanks! BTW, is /0444 also new? Didn't it use to be +0444?
> By the way, James added these new options at my request, although he
> chose a different name for the predicate than my original proposal:
> https://savannah.gnu.org/support/index.php?func=detailitem&item_id=104720
Interesting... FWIW, I think having one -access test (and reusing the
code from -perm to parse +r/+w/+x/=r/=w/=x/-r/-w/-x) makes more sense...
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"