cvs commit: src/etc/periodic/security 100.chksetuid
Ceri Davies
ceri at submonkey.net
Sat Feb 2 11:33:47 PST 2008
On Sat, Feb 02, 2008 at 05:52:15PM +0100, Hartmut Brandt wrote:
> Simon L. Nielsen wrote:
>> On 2008.02.02 14:53:21 +0000, Ceri Davies wrote:
>>> On Sat, Feb 02, 2008 at 12:27:38PM +0000, Dag-Erling Smorgrav wrote:
>>>> des 2008-02-02 12:27:38 UTC
>>>>
>>>> FreeBSD src repository
>>>>
>>>> Modified files:
>>>> etc/periodic/security 100.chksetuid Log:
>>>> Rewrite to consume significantly less memory, by using find -s instead of
>>>> find | sort. As a bonus, this simplifies the logic considerably. Also
>>>> remove the bogus "overruning the args to ls" comment and the corresponding
>>>> "-n 20" argument to xargs; the whole point with xargs is precisely that it
>>>> knows how large the argument list can safely get.
>>> Why use xargs at all? The "-exec ls -liTd {} +" primary would do the
>>> same thing.
>>
>> You would end up executing ls a lot more times with the extra overhead
>> for fork() etc. per file.
>
> I think "-exec ... {} +" collects as much arguments before executing just
> as xargs does. This is different from "-exec ... {} ;" which execs for each
> argument.
Exactly my point, yes.
Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20080202/f9809557/attachment.pgp
More information about the cvs-src
mailing list