From owner-cvs-all@FreeBSD.ORG Sun Feb 24 14:26:44 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC10516A404; Sun, 24 Feb 2008 14:26:44 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C145B13C448; Sun, 24 Feb 2008 14:26:44 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1OEQimm046892; Sun, 24 Feb 2008 14:26:44 GMT (envelope-from remko@repoman.freebsd.org) Received: (from remko@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1OEQi5W046891; Sun, 24 Feb 2008 14:26:44 GMT (envelope-from remko) Message-Id: <200802241426.m1OEQi5W046891@repoman.freebsd.org> From: Remko Lodder Date: Sun, 24 Feb 2008 14:26:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/etc/periodic/security 100.chksetuid X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 14:26:45 -0000 remko 2008-02-24 14:26:44 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) etc/periodic/security 100.chksetuid Log: MFC rev 1.10 100.chksetuid rev 1.10 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 Approved by: imp (mentor, implicit for trivial changes), des (doing some MFC's for him) Revision Changes Path 1.8.10.2 +11 -16 src/etc/periodic/security/100.chksetuid