Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 1997 11:39:51 -0700
From:      Wayne Scott <wscott@ichips.intel.com>
To:        current@freebsd.org
Cc:        brian@freebsd.org, eivind@freebsd.org
Subject:   patch to lpd
Message-ID:  <199707181839.LAA20937@pdxlx008.intel.com>

next in thread | raw e-mail | index | archive | help

I don't know the right place to send this so here goes..

3.0-current added a error message to lpd where it would exit if your
printcap contains duplicate spool directories for two different
printers.  The problem is that the message doesn't tell which
directory is duplicate.  If you have a very large printcap this can be
hard to find.

This is my solution.

cvs diff: Diffing .
Index: lpd.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/lpr/lpd/lpd.c,v
retrieving revision 1.4
diff -u -r1.4 lpd.c
--- lpd.c       1997/05/17 03:04:43     1.4
+++ lpd.c       1997/07/18 16:43:23
@@ -458,7 +458,8 @@
                         j++) {
                        if (strcmp(spooldir, spooldirs[j]) == 0) {
                                syslog(LOG_ERR,
-                                       "startup: duplicate spool directories");
+                                       "startup: duplicate spool directories: %s",
+                                      spooldir);
                                mcleanup(0);
                        }
                }

-Wayne

Wayne Scott		        MD6 Architecture
wscott@ichips.intel.com		Work #: (503) 264-4165
Disclaimer:  All views expressed are my own opinions, and not necessarily 
             those of Intel Corporation.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707181839.LAA20937>