]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rewrite to consume significantly less memory, by using find -s instead of
authordes <des@FreeBSD.org>
Sat, 2 Feb 2008 12:27:37 +0000 (12:27 +0000)
committerdes <des@FreeBSD.org>
Sat, 2 Feb 2008 12:27:37 +0000 (12:27 +0000)
commitddf9fd25a8b759fac39499e04a7624ae5c938dd0
treedae0a0896f070d946a74b1289a0f6560479b99fd
parent92f929f0dde072d092bfbe14053ad40626af995d
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.

Note that the first run of the updated script may hypotheticall produce
false positives due to differences between find's and sort's sorting
algorithm.  I haven't seen this during testing, but others might.

MFC after: 2 weeks
etc/periodic/security/100.chksetuid