cvs commit: src/etc/periodic/security 100.chksetuid
Dag-Erling Smorgrav
des at FreeBSD.org
Sat Feb 2 04:27:38 PST 2008
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.
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
Revision Changes Path
1.10 +11 -16 src/etc/periodic/security/100.chksetuid
More information about the cvs-src
mailing list