From owner-cvs-src@FreeBSD.ORG Mon Oct 16 13:01:50 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD28716A51A; Mon, 16 Oct 2006 13:01:50 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B0843D72; Mon, 16 Oct 2006 13:01:45 +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 k9GD1jAW074017; Mon, 16 Oct 2006 13:01:45 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9GD1j0C074012; Mon, 16 Oct 2006 13:01:45 GMT (envelope-from yar) Message-Id: <200610161301.k9GD1j0C074012@repoman.freebsd.org> From: Yar Tikhiy Date: Mon, 16 Oct 2006 13:01:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD 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: Mon, 16 Oct 2006 13:01:50 -0000 yar 2006-10-16 13:01:45 UTC FreeBSD src repository Modified files: etc/rc.d cleartmp Log: 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. PR: bin/104044 Submitted by: Andrey Simonenko Hacked by: yar MFC after: 1 month Revision Changes Path 1.18 +37 -36 src/etc/rc.d/cleartmp