On Sat, May 06, 2000 at 03:51:45PM +0200, Moritz Kaiser wrote:
> Hi,
>
> The entry in my /etc/netatalk/papd.conf follows:
> *snip*
> #
> #
> kyocera:\
> :pr=lp2:op=lp:\
> :pd=/usr/lib/ppd/KC170PEG.PPD:
> #
> #
For some reason papd doesn't like your papd.conf. Are you sure that
there are no spaces after \ (i.e. at the end of the line)? If you've
verified everything, try applying this patch to the source code. Then
do "make clean; make; make install", start the atalk rc script and watch
the logs in /var/log. The patch is against 2.1.4-37b, but it seems that
the code in question didn't change for years so it should work for
older/newer versions as well.
Dejan
--- etc/papd/printcap.c.orig Fri May 30 02:27:35 1997
+++ etc/papd/printcap.c Mon May 8 01:50:04 2000
@@ -43,6 +43,7 @@
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include <sys/syslog.h>
#include <atalk/paths.h>
#ifndef BUFSIZ
@@ -250,6 +251,7 @@
while (*--p != ':')
if (p<tbuf) {
write(2, "Bad termcap entry\n", 18);
+ syslog(LOG_ERR, "error in <%s>", tbuf );
return (0);
}
p++;