delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/09/18:31:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-envelope-info: <rschulz AT sonic DOT net>
Message-Id: <5.2.1.1.2.20030509152811.06694a80@pop.sonic.net>
X-Sender: rschulz AT pop DOT sonic DOT net
Date: Fri, 09 May 2003 15:31:11 -0700
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rschulz AT sonic DOT net>
Subject: RE: How to "find" all writable files in a directory tree?
In-Reply-To: <Pine.LNX.4.53.0305091817280.21240@nautilus.m8y.org>
References: <EBEMJMPFEOOPGHBJFKGPGEBDFBAA DOT winston DOT gutkowski AT eztext DOT com>
<EBEMJMPFEOOPGHBJFKGPGEBDFBAA DOT winston DOT gutkowski AT eztext DOT com>
Mime-Version: 1.0

AC,.

At 15:18 2003-05-09, lists AT m8y DOT 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?


Randall Schulz 


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