Date: Sat, 21 Sep 2002 12:08:46 +1200 (NZST) From: Jonathan Chen <jonc@chen.org.nz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/43146: rc.conf: clear_tmp_enable=YES doesn't clear /tmp/.[a-zA-Z]* files Message-ID: <200209210008.g8L08ku3022787@grimoire.chen.org.nz>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209210008.g8L08ku3022787>