X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=YBffg9gVxDAA:10 a=kCKDY91tEBMc+hi4YtGk8Q==:17 a=87H-Kxydc4CmeD6i6TwA:9 a=V2zk3soVhkvq3C7EGW4A:7 a=hQBC3GILqPSLLQ41EYhZMB2_SEMA:4 Message-ID: <4AF4DA83.3070009@monai.ca> Date: Fri, 06 Nov 2009 18:25:07 -0800 From: Steven Monai User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) 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> <4AF3B0E6 DOT 40502 AT byu DOT net> <26230851 DOT post AT talk DOT nabble DOT com> In-Reply-To: <26230851.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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