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

Re: Is there a fast way to get acl's for the whole filesystem (or chunk thereof)


aputerguy wrote:
> Eric Blake writes...
>> 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
> 
> That works!
> But it is more than a third slower, presumably because of the extra shell
> overhead.
> Is there any way to "ask for the newline" without incurring that overhead?

If eliminating the extra shell overhead is really that important to you,
you could build a custom getfacl that emits that extra newline just
before it exits.

I haven't looked at the getfacl source code, but I don't imagine it
would be very difficult. Probably as simple as adding a 'printf("\n");'
line to the appropriate place(s).

-SM
--

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


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