delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/06/00:15:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4AF3B0E6.40502@byu.net>
Date: Thu, 05 Nov 2009 22:15:18 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)
References: <26222793 DOT post AT talk DOT nabble DOT com> <6fv6f5dgkrgi6baa9ghfjaqp7h9a3eq9pj AT 4ax DOT com> <26226433 DOT post AT talk DOT nabble DOT com> <26226546 DOT post AT talk DOT nabble DOT com> <4AF3A282 DOT 8030907 AT cygwin DOT com>
In-Reply-To: <4AF3A282.8030907@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Larry Hall (Cygwin) on 11/5/2009 9:13 PM:
> What "empty line between the getfacls stanzas"?

The blank line that is output after one getfacl process ends.  Try
'getfacl . .; getfacl .' vs. 'getfacl .; getfacl . .' to see it.

The number of command line arguments pieced together without exceeding
exec() limits is dependent on the sum of the command line length and the
size of the current environment; but since the 'find -exec {} +' and 'find
- -print0 | xargs -0' approaches see a slightly different environment
variables (in particular, $_ will be a different length between the two
invocations), the wraparound point for creating new processes differs.

But if you WANT to guarantee a newline between processes, just ask for it.
 Here's one way:

find -print0 | xargs -0 sh -c 'getfacl "$@"; echo' sh

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin findutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrzsOYACgkQ84KuGfSFAYBtygCfdRcDiCdFIruAygjweoT6OOM0
c08An1Vi3xPHMP9Y6ID+0O7WITkmPn7H
=5Svy
-----END PGP SIGNATURE-----

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019