trying to use a remote printer-queue, the lpd wrote the following messages to syslog: Can't create temp cfp file lp: can't scan /var/spool/lpd/LJIIISi investigating the source showed the follwing bug: in printjob.c the function mktemp is called with an invalid template (the LAST 6 chars have to be XXXXXX !). The patch below fixes the problem: *** lpr-0.35/lpd/printjob.c.orig Sat May 15 12:45:14 1999 --- lpr-0.35/lpd/printjob.c Sat May 15 12:45:57 1999 *************** *** 769,775 **** if (IF != NULL) { dup_cfpname = strdup(file); ! memcpy((dup_cfpname+7), "XXXXXX", 6); mktemp(dup_cfpname); tmpmask = umask(007); dup_cfp=fopen(dup_cfpname, "w"); --- 769,775 ---- if (IF != NULL) { dup_cfpname = strdup(file); ! memcpy((dup_cfpname+strlen(file)-6), "XXXXXX", 6); mktemp(dup_cfpname); tmpmask = umask(007); dup_cfp=fopen(dup_cfpname, "w");
This looks like it might be fixed. Bill?
already fixed in lpr-0.36.