Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!decwrl!ucbvax!COLUMBIA.EDU!cck%cucca From: cck%cucca@COLUMBIA.EDU.UUCP Newsgroups: mod.protocols.appletalk Subject: CAP papif bug Message-ID: <8607110013.AA28893@ucbvax.Berkeley.EDU> Date: Thu, 10-Jul-86 19:22:51 EDT Article-I.D.: ucbvax.8607110013.AA28893 Posted: Thu Jul 10 19:22:51 1986 Date-Received: Sat, 12-Jul-86 00:21:10 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 61 Approved: info-applebus@c.cs.cmu.edu Found a problem in papif.c - wasn't ever sending more than 4096 bytes - fix follows in context diff format. Charlie C. Kim User Services Columbia University *** /tmp/,RCSt1009555 Thu Jul 10 19:14:53 1986 --- papif.c Thu Jul 10 19:13:31 1986 *************** *** 1,6 ! static char rcsid[] = "$Author: cck $ $Date: 86/07/06 23:42:57 $"; ! static char rcsident[] = "$Header: papif.c,v 1.2 86/07/06 23:42:57 cck Rel $"; ! static char revision[] = "$Revision: 1.2 $"; /* * papif.c - PAP Input Filter for LPD system (4.2) --- 1,6 ----- ! static char rcsid[] = "$Author: cck $ $Date: 86/07/10 19:13:00 $"; ! static char rcsident[] = "$Header: papif.c,v 1.4 86/07/10 19:13:00 cck Exp $"; ! static char revision[] = "$Revision: 1.4 $"; /* * papif.c - PAP Input Filter for LPD system (4.2) *************** *** 75,81 PAPInit(); /* initialize pap */ /* log message */ ! fprintf(stderr,"PSIF: Starting job for %s@%s at %s on printer %s\n", user,host,ptime(),lwname); signal(SIGINT,quit); /* this is what lprm sends us */ --- 75,81 ----- PAPInit(); /* initialize pap */ /* log message */ ! fprintf(stderr,"PAPIF: Starting job for %s@%s at %s on printer %s\n", user,host,ptime(),lwname); signal(SIGINT,quit); /* this is what lprm sends us */ *************** *** 146,152 break; } ! } while (err > 0); ppwrite(cno, NULL, 0, TRUE); /* hope for the best */ alarm(3*60); /* wait for 3 minutes */ --- 146,152 ----- break; } ! } while (1); ppwrite(cno, NULL, 0, TRUE); /* hope for the best */ alarm(3*60); /* wait for 3 minutes */