From owner-freebsd-current Fri Jul 18 11:39:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA08834 for current-outgoing; Fri, 18 Jul 1997 11:39:44 -0700 (PDT) Received: from mailbag.jf.intel.com (mailbag.jf.intel.com [134.134.248.4]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA08819; Fri, 18 Jul 1997 11:39:28 -0700 (PDT) Received: from ichips.intel.com (ichips.intel.com [134.134.50.200]) by mailbag.jf.intel.com (8.8.6/8.8.4) with ESMTP id LAA24380; Fri, 18 Jul 1997 11:41:43 -0700 (PDT) Received: from pdxlx008.intel.com by ichips.intel.com (8.7.4/jIII) id LAA12760; Fri, 18 Jul 1997 11:39:22 -0700 (PDT) Received: from pdxlx008 (localhost [127.0.0.1]) by pdxlx008.intel.com (8.8.6/8.7.3) with ESMTP id LAA20937; Fri, 18 Jul 1997 11:39:51 -0700 (PDT) Message-Id: <199707181839.LAA20937@pdxlx008.intel.com> To: current@freebsd.org cc: brian@freebsd.org, eivind@freebsd.org Subject: patch to lpd Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Date: Fri, 18 Jul 1997 11:39:51 -0700 From: Wayne Scott Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.