From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 23 23:40:22 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 26E6716A41F for ; Sat, 23 Jul 2005 23:40:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3078943D46 for ; Sat, 23 Jul 2005 23:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6NNeEX8076800 for ; Sat, 23 Jul 2005 23:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6NNeEB4076796; Sat, 23 Jul 2005 23:40:14 GMT (envelope-from gnats) Resent-Date: Sat, 23 Jul 2005 23:40:14 GMT Resent-Message-Id: <200507232340.j6NNeEB4076796@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Botero-Lowry Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5319716A41F for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/83969: /etc/rc.d/cleartmp pollutes non-run functions X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2005 23:40:22 -0000 >Number: 83969 >Category: misc >Synopsis: /etc/rc.d/cleartmp pollutes non-run functions >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 23 23:40:14 GMT 2005 >Closed-Date: >Last-Modified: >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: >Unformatted: