This is the mail archive of the cygwin-talk mailing list for the cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated [experimental]: findutils-4.3.0-1

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:

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...
      |\      _,,,---,,_ |
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"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]