🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.4bsd
Article #1698

Multiple lpr copies lack file-name header

#1698
From: Steve Grandi
Date: Thu, 16 Oct 1986 01:42
47 lines
1593 bytes
Subject: Multiple lineprinter copies lack file-name header
Index:	/usr/src/usr.lib/lpr/printjob.c  4.3BSD

Description:
	The second-to-nth copies generated by 
              lpr -p -#n filename
lack the file-name header that should be produced by pr.

Repeat-By:
	see above.
Fix:

*** printjob.c.ORIG	Sat Jan 11 12:42:25 1986
--- printjob.c	Wed Oct 15 15:33:54 1986
***************
*** 363,369 ****
  				bombed = i;
  				sendmail(logname, bombed);
  			}
- 			title[0] = '\0';
  			continue;
  
  		case 'N':
--- 363,368 ----
***************
*** 390,395 ****
--- 389,395 ----
  
  		case 'U':
  			(void) unlink(line+1);
+ 			title[0] = '\0';
  		}
  	/*
  	 * clean-up in case another control file exists
***************
*** 396,401 ****
--- 396,402 ----
  	 */
  	(void) fclose(cfp);
  	(void) unlink(file);
+ 	title[0] = '\0';
  	return(bombed == OK ? OK : ERROR);
  }
  
-- 
Steve Grandi, National Optical Astronomy Observatories, Tucson, AZ, 602-325-9228
{arizona,decvax,hao,ihnp4,seismo}!noao!grandi  grandi%draco@Hamlet.Caltech.Edu
Technical Details
Message-ID: <502@carina.noao.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!princeton!astrovax!noao!grandi

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!princeton!astrovax!noao!grandi
From: grandi@noao.UUCP (Steve Grandi)
Newsgroups: net.bugs.4bsd
Subject: Multiple lpr copies lack file-name header
Message-ID: <502@carina.noao.UUCP>
Date: Wed, 15-Oct-86 21:42:01 EDT
Article-I.D.: carina.502
Posted: Wed Oct 15 21:42:01 1986
Date-Received: Thu, 16-Oct-86 18:52:06 EDT
Organization: Natl. Optical Astronomy Observatories, Tucson, AZ USA
Lines: 47