From owner-freebsd-bugs Fri Sep 20 17:10: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F223737B401 for ; Fri, 20 Sep 2002 17:10:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A70B43E6A for ; Fri, 20 Sep 2002 17:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8L0A2Co048973 for ; Fri, 20 Sep 2002 17:10:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8L0A2XQ048972; Fri, 20 Sep 2002 17:10:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1994437B401 for ; Fri, 20 Sep 2002 17:08:54 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F9DE43E4A for ; Fri, 20 Sep 2002 17:08:53 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.6/8.12.6) with ESMTP id g8L08k1J022788 for ; Sat, 21 Sep 2002 12:08:46 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.6/8.12.6/Submit) id g8L08ku3022787; Sat, 21 Sep 2002 12:08:46 +1200 (NZST) (envelope-from jonc) Message-Id: <200209210008.g8L08ku3022787@grimoire.chen.org.nz> Date: Sat, 21 Sep 2002 12:08:46 +1200 (NZST) From: Jonathan Chen Reply-To: Jonathan Chen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/43146: rc.conf: clear_tmp_enable=YES doesn't clear /tmp/.[a-zA-Z]* files Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43146 >Category: conf >Synopsis: rc.conf: clear_tmp_enable=YES doesn't clear /tmp/.[a-zA-Z]* files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 20 17:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Jonathan Chen >Release: FreeBSD 4.7-PRERELEASE i386 >Organization: chen.org.nz >Environment: System: FreeBSD grimoire.chen.org.nz 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #0: Tue Sep 17 19:47:14 NZST 2002 root@grimoire.chen.org.nz:/usr/obj/usr/src/sys/GRIMOIRE i386 >Description: Setting clear_tmp_enable="YES" in /etc/rc.conf doesn't remove files named ".[a-zA-Z]" in /tmp. Quite a few ports and apps (and some users) tend to leave files in /tmp starting with a '.'. >How-To-Repeat: # touch /tmp/.file # shutdown -r now >Fix: Patch for /etc/rc: --- rc.old Sat Sep 21 12:01:46 2002 +++ rc Sat Sep 21 12:02:40 2002 @@ -360,7 +360,7 @@ echo -n 'Clearing /tmp:' # prune quickly with one rm, then use find to clean up /tmp/[lq]* # (not needed with mfs /tmp, but doesn't hurt there...) - (cd /tmp && rm -rf [a-km-pr-zA-Z]* && + (cd /tmp && rm -rf [a-km-pr-zA-Z]* .[a-zA-Z]* && find -d . ! -name . ! -name lost+found ! -name quota.user \ ! -name quota.group -exec rm -rf -- {} \;) echo '.' >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message