Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-envelope-info: <rschulz@sonic.net>
Message-Id: <5.2.1.1.2.20030509150109.0658b200@pop.sonic.net>
X-Sender: rschulz@pop.sonic.net
Date: Fri, 09 May 2003 15:06:10 -0700
To: cygwin@cygwin.com
From: Randall R Schulz <rschulz@sonic.net>
Subject: RE: How to "find" all writable files in a directory tree?
In-Reply-To: <Pine.LNX.4.53.0305091742400.19116@nautilus.m8y.org>
References: <EBEMJMPFEOOPGHBJFKGPKEAPFBAA.winston.gutkowski@eztext.com>
 <EBEMJMPFEOOPGHBJFKGPKEAPFBAA.winston.gutkowski@eztext.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed


At 14:44 2003-05-09, lists@m8y.org wrote:
>-perm +222 is redundant

How do you figure? There are 8 combinations of write enable bits that 
this permission specification matches. For "-perm +2" only one bit is 
examined and there's only one way for it to succeed.


>-perm +mode
>     Any of the permission bits mode are set for the file.
>
>-perm -222 is equivalent to -perm +2

Either I'm dense or you're mistaken.

Are you assuming a FAT file system? Cygwin takes advantage of NTFS 
permissions when possible (and when the now-default ntsec option of the 
CYGWIN environment variable is enabled).

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/

