From nobody@FreeBSD.org  Sat Jul 23 23:38:36 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5319716A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Jul 2005 23:38:36 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2601043D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Jul 2005 23:38:36 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j6NNcZx8003815
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Jul 2005 23:38:35 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6NNcZMC003814;
	Sat, 23 Jul 2005 23:38:35 GMT
	(envelope-from nobody)
Message-Id: <200507232338.j6NNcZMC003814@www.freebsd.org>
Date: Sat, 23 Jul 2005 23:38:35 GMT
From: Alexander Botero-Lowry <drax@stampede.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.d/cleartmp pollutes non-run functions
X-Send-Pr-Version: www-2.3

>Number:         83969
>Category:       conf
>Synopsis:       [patch] /etc/rc.d/cleartmp pollutes non-run functions
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 23 23:40:14 GMT 2005
>Closed-Date:    Mon Dec 05 08:55:09 GMT 2005
>Last-Modified:  Mon Dec 05 08:55:09 GMT 2005
>Originator:     Alexander Botero-Lowry
>Release:        5.4-RELEASE
>Organization:
>Environment:
FreeBSD Kroeber.freebsd.box 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
      /etc/rc.d/cleartmp pollutes output of all calls to it. For example calling /etc/rc.d/cleartmp rcvar will delete the temporary X11 files because that part of the rc script is not kept inside of the start function. This is problematic because administrative tools that rely on rcvar can potentially cause damage to the systems working enviornment.
>How-To-Repeat:
      /etc/rc.d/cleartmp rcvar
>Fix:
      http://www.stampede.org/~drax/freebsd-rc.d.patch includes a new rc script clearx11tmp and changes to /etc/defaults/rc.conf to make sure that it is executed. These patches are against 5.4-RELEASE; though it seems from CVSWeb there haven't been many/any changes since 5.4-RELEASE to rc.d
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Mon Dec 5 08:45:05 GMT 2005 
Responsible-Changed-Why:  

Good catch, thanks. I don't see any reason to separate the X11 
features into a different script, but I'll test a local fix 
and commit when I'm satisfied. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83969 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Dec 5 08:54:11 GMT 2005 
State-Changed-Why:  

Turns out conf/84574 has a more complete description 
of the problem, and indications that it affects more 
scripts than just cleartmp. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83969 
>Unformatted:
