From sachs@interactive.net  Mon Jul 21 13:27:06 1997
Received: from onyx.interactive.net (root@onyx.interactive.net [208.192.224.6])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA09170
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Jul 1997 13:27:05 -0700 (PDT)
Received: from luddite.org (host000.dialup.interactive.net [208.192.245.10])
	by onyx.interactive.net (8.8.5/8.8.5) with ESMTP id QAA19682
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Jul 1997 16:26:59 -0400 (EDT)
Received: (from sachs@localhost)
	by luddite.org (8.8.6/8.8.5) id QAA01321;
	Mon, 21 Jul 1997 16:42:21 -0400 (EDT)
Message-Id: <199707212042.QAA01321@luddite.org>
Date: Mon, 21 Jul 1997 16:42:21 -0400 (EDT)
From: Jay Sachs <sachs@interactive.net>
Reply-To: sachs@interactive.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: /etc/rc and sudo : chg to rm -rf /var/run?
X-Send-Pr-Version: 3.2

>Number:         4138
>Category:       misc
>Synopsis:       /etc/rc and sudo : chg to rm -rf /var/run?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 21 13:30:01 PDT 1997
>Closed-Date:    Tue Jun 2 04:02:34 PDT 1998
>Last-Modified:  Tue Jun  2 04:02:45 PDT 1998
>Originator:     Jay Sachs
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
individual
>Environment:

	

>Description:

sudo (installed via the most recent port) creates the directory
/var/run/sudo;  /etc/rc tries to clean /var/run via

   rm -f /var/run/*

which fails to fully clean the dir, and prints a console message to
that effect.

>How-To-Repeat:

install sudo.  run it once.  reboot.

>Fix:

Here's a diff.

*** /etc/rc	Sun Jul  6 00:32:40 1997
--- /home/sachs/etc/rc	Mon Jul 21 16:40:29 1997
***************
*** 95,101 ****
  
  adjkerntz -i
  
! rm -f /var/run/*
  
  # Keep a copy of the boot messages around
  dmesg > /var/run/dmesg.boot
--- 95,101 ----
  
  adjkerntz -i
  
! rm -rf /var/run/*
  
  # Keep a copy of the boot messages around
  dmesg > /var/run/dmesg.boot
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Tue Jun 2 04:02:34 PDT 1998 
State-Changed-Why:  
fixed in current 
>Unformatted:
