Subject: bin/7054: default lp spool directory inconsistency
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dbj@netbsd.org>
List: netbsd-bugs
Date: 02/27/1999 02:29:00
>Number:         7054
>Category:       bin
>Synopsis:       default lp spool directory inconsistency
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 26 23:35:01 1999
>Last-Modified:
>Originator:     Darrin B. Jewell
>Organization:
	
>Release:        -current as of ~19990225T0631Z
>Environment:
	
System: NetBSD dbj.ne.mediaone.net 1.3I NetBSD 1.3I (ROCINANTE) #1: Sat Feb 27 00:06:23 EST 1999 dbj@dbj.ne.mediaone.net:/usr/incoming/cvs.netbsd.org/src/sys/arch/i386/compile/ROCINANTE i386


>Description:
  What is the correct default spool directory?

src/usr.sbin/lpr/common_source/pathnames.h, line 41 contains:
#define	_PATH_DEFSPOOL		"/var/spool/output/lpd"

src/share/man/man5/printcap.5, line 121 contains:

.It "sd	str" Ta Pa /var/spool/lpd Ta No "spool directory"

and src/etc/mtree/NetBSD.dist creates /var/spool/lpd
and /var/spool/output but not /var/spool/output/lpd in the default tree

>How-To-Repeat:
        If you don't specify a spool directory in /etc/printcap,
then the lpr tools will attempt to spool in /var/spool/output/lpd
That directory does not exist in the default tree:
  $ lpq
  lpq: lp: cannot chdir to spooling directory

>Fix:
  Decide which is correct and update the appropriate files.
>Audit-Trail:
>Unformatted: