🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.protocols.appletalk
Article #93

CAP papif bug

#93
From: cck%cucca
Date: Thu, 10 Jul 1986 23:22
61 lines
2284 bytes
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 */
Technical Details
Message-ID: <8607110133.AA00463@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!seismo!lll-crg!lll-lcc!dual!ucbvax!COLUMBIA.EDU!cck%cucca

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!seismo!lll-crg!lll-lcc!dual!ucbvax!COLUMBIA.EDU!cck%cucca
From: cck%cucca@COLUMBIA.EDU.UUCP
Newsgroups: mod.protocols.appletalk
Subject: CAP papif bug
Message-ID: <8607110133.AA00463@ucbvax.Berkeley.EDU>
Date: Thu, 10-Jul-86 19:22:51 EDT
Article-I.D.: ucbvax.8607110133.AA00463
Posted: Thu Jul 10 19:22:51 1986
Date-Received: Fri, 11-Jul-86 23:03:52 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 61
Approved: info-applebus@c.cs.cmu.edu