From owner-cvs-src@FreeBSD.ORG Wed Dec 20 12:29:52 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A22A416A416; Wed, 20 Dec 2006 12:29:52 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29EB643CAE; Wed, 20 Dec 2006 12:29:42 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBKCTelw057835; Wed, 20 Dec 2006 12:29:40 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBKCTe8h057834; Wed, 20 Dec 2006 12:29:40 GMT (envelope-from yar) Message-Id: <200612201229.kBKCTe8h057834@repoman.freebsd.org> From: Yar Tikhiy Date: Wed, 20 Dec 2006 12:29:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/etc/rc.d cleartmp X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 12:29:52 -0000 yar 2006-12-20 12:29:40 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) etc/rc.d cleartmp Log: MFC rev. 1.18: Improve cleartmp in a number of aspects: + Use rc.subr(8) features properly. + Do the whole job of obliterating /tmp contents in find(1). + Leave lost+found and quota.{user,group} in /tmp only if root-owned. + Make the overall structure clearer by first removing the X dirs (perhaps along with the rest of /tmp) and then re-creating them. + Use "find -exec rm -rf {} +" for efficiency: each rm instance gets a chance to kill as much files in /tmp as ARG_MAX permits. Revision Changes Path 1.12.2.2 +37 -36 src/etc/rc.d/cleartmp