[Midnightbsd-cvs] src: 100.chksetuid: Rewrite to consume significantly less memory, by

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jan 30 11:34:13 EST 2010


Log Message:
-----------
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.

Obtained from: FreeBSD

Modified Files:
--------------
    src/etc/periodic/security:
        100.chksetuid (r1.3 -> r1.4)
        (http://cvsweb.midnightbsd.org/src/etc/periodic/security/100.chksetuid?r1=1.3&r2=1.4)


More information about the Midnightbsd-cvs mailing list