From wera0003@fh-karlsruhe.de  Fri Feb 11 12:08:23 2005
Return-Path: <wera0003@fh-karlsruhe.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7556016A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Feb 2005 12:08:23 +0000 (GMT)
Received: from rz06.fh-karlsruhe.de (rz06.FH-Karlsruhe.DE [193.196.64.6])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2980043D31
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Feb 2005 12:08:23 +0000 (GMT)
	(envelope-from wera0003@fh-karlsruhe.de)
Received: from rz-tp600e.fh-karlsruhe.de ([193.196.65.252] helo=localhost)
	by rz06.fh-karlsruhe.de with esmtp (Exim 4.44)
	id 1CzZav-000SDO-Fk; Fri, 11 Feb 2005 13:08:21 +0100
Received: from wera0003 by localhost with local (Exim 4.44 (FreeBSD))
	id 1CzZav-0000F1-Or; Fri, 11 Feb 2005 13:08:21 +0100
Message-Id: <E1CzZav-0000F1-Or@localhost>
Date: Fri, 11 Feb 2005 13:08:21 +0100
From: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
Sender: Ralf Wenk <wera0003@fh-karlsruhe.de>
Reply-To: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
Subject: let /etc/rc.d/var create spool dirs for lpd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77386
>Category:       conf
>Synopsis:       let /etc/rc.d/var create spool dirs for lpd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 11 12:10:24 GMT 2005
>Closed-Date:    Wed Jan 11 06:10:27 GMT 2006
>Last-Modified:  Wed Jan 11 06:10:27 GMT 2006
>Originator:     Ralf Wenk
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
FH Karlsruhe, University of Applied Sciences
>Environment:
System: FreeBSD RZ-Wenk1 5.3-STABLE FreeBSD 5.3-STABLE #2: Mon Feb 7 14:21:46 CET 2005 root@RZ-Wenk1:/usr/obj/usr/src/sys/fsc-t-diskless i386

>Description:
Enable /etc/rc.d/var to create the spool dirs vor lpd.

>How-To-Repeat:
man chkprintcap. Then try chkprintcap -d. You must be shure that
/usr/sbin/chkprintcap is accessible at the execution time of /etc/rc.d./var.
This must not be true in diskless setups.

>Fix:
Apply the following patch:
>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/77386: let /etc/rc.d/var create spool dirs for lpd
Date: Fri, 11 Feb 2005 07:24:11 -0800

 Please send the patch. :-)  Actually, I believe you can defer creation
 until /etc/rc.d/lpr actualy runs.  You don't really need the directories
 until then and if you've got /usr/sbin/lpr you should have other deps.
 
 -- Brooks

From: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Brooks Davis <brooks@one-eyed-alien.net>
Subject: Re: conf/77386: let /etc/rc.d/var create spool dirs for lpd 
Date: Fri, 11 Feb 2005 23:57:02 +0100

 > Please send the patch. :-)  Actually, I believe you can defer creation
 
 Oops, the patch was not applied. Lession learned: Do not expect that
 send-pr -f problem-report -a patch
 sends the "problem-report" with "patch" copied to the Fix: section.
 
 Here it is:
 
 --- var.udiff begins here ---
 --- var.old     Fri Feb 11 11:54:23 2005
 +++ var Fri Feb 11 11:56:06 2005
 @@ -51,7 +51,8 @@
 
         /usr/bin/touch /var/log/lastlog
 
 -       # XXX: should create spool dirs for lpd
 +       # create spool dirs for lpd
 +       /usr/sbin/chkprintcap -d
  }
 
  # If we do not have a writable /var, create a memory filesystem for /var
 --- var.udiff ends here ---
 
 > until /etc/rc.d/lpr actualy runs.  You don't really need the directories
 > until then and if you've got /usr/sbin/lpr you should have other deps.
 
 Yes, moving the creation of the lpd spool files to /etc/rc.d/lpr will
 fix the problem that /usr/sbin/chkprintcap may not yet availiable when
 /etc/rc.d/var is executed.
 
 I'm out of office for a month from today on. Please expect some delays if
 there are additional questions to this problem report.
 
 Ralf
 
State-Changed-From-To: open->patched 
State-Changed-By: brooks 
State-Changed-When: Wed Mar 2 04:26:14 GMT 2005 
State-Changed-Why:  
Committed a different solution to current. 


Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Wed Mar 2 04:26:14 GMT 2005 
Responsible-Changed-Why:  
Committed a different solution to current. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77386 
State-Changed-From-To: patched->closed 
State-Changed-By: brooks 
State-Changed-When: Wed Jan 11 06:10:01 UTC 2006 
State-Changed-Why:  
Committed to HEAD before RELENG_6 was branched and merged to RELENG_5. 

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