This is the mail archive of the cygwin@cygwin.com 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]

[OT] RE: How to "find" all writable files in a directory tree?


On Fri, 9 May 2003 lists@m8y.org wrote:

> On Fri, 9 May 2003, Randall R Schulz wrote:
>
> > AC,.
> >
> > At 15:18 2003-05-09, lists@m8y.org wrote:
> > >On Fri, 9 May 2003, Winston Gutkowski wrote:
> > >
> > > > Don't want to flog a dead horse, but if I read the manpages right
> > > > it seems that
> > > > -222
> > > > should be true only if the 'w' flag is on in all 3 positions, but
> > > > +222
> > > > will be true only if the 'w' flag is on in *any* of the 3 positions.
> > > >
> > > > Is this right? Also, I didn't find any refernce to the shorthand
> > > +2. Perhaps it's one of those mystical osmosis things...:-)
> >
> > Winston. You're right. There is no such thing in GNU find.
> >
> > > > My reading of the manual is that:
> > > > -222 examines bit 2 being on in all of the 3 areas
> > > > +2 examines bit 2 being on in all of the 3 areas
> > > > 222 checks exact permissions 222
> > >
> > >Erm.
> > >  +2 examines bit 2 being on in all of the 3 areas
> > >should read
> > >  +2 examines bit 2 being on in any of the 3 areas
> >
> > There is no such shorthand (documented). "-perm +2" will only match
> > when the other / world write bit is set. It will not mach when the
> > owner and / or group write bits are set and the other / world write bit
> > is not. And so on, as my previous experiment showed.
> >
> > Maybe you're thinking of a some other find--a non GNU version?
>
> Stand corrected.
> P'raps this thread can die. :)

Le cheval est mort, vive le cheval! :-D
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
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/


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