This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)
-----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@byu.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