[net.sources] 2.8-2.9.c

G:ARPAVAX:usenet (06/30/82)

diff -c 2.8/src/defs.h 2.9/src/defs.h
*** 2.8/src/defs.h	Mon Jun 21 14:03:09 1982
--- 2.9/src/defs.h	Sat Jun 26 20:27:36 1982
***************
*** 10,16
   * to be news_version below.
   */
  
! static char *news_version = "@(#) defs.h	2.8	6/21/82";
  
  #define DAYS	(60L*60L*24L)
  #define WEEKS	(7*DAYS)

--- 10,16 -----
   * to be news_version below.
   */
  
! static char *news_version = "@(#) defs.h	2.9	6/26/82";
  
  #define DAYS	(60L*60L*24L)
  #define WEEKS	(7*DAYS)
diff -c 2.8/src/inews.c 2.9/src/inews.c
*** 2.8/src/inews.c	Mon Jun 21 14:03:13 1982
--- 2.9/src/inews.c	Sat Jun 26 20:27:31 1982
***************
*** 2,8
   * inews - insert, receive, and transmit news articles.
   */
  
! static char *SccsId = "@(#) inews.c	2.10	6/21/82";
  
  #include "iparams.h"
  

--- 2,8 -----
   * inews - insert, receive, and transmit news articles.
   */
  
! static char *SccsId = "@(#) inews.c	2.11	6/26/82";
  
  #include "iparams.h"
  
***************
*** 34,40
  'n',	NGDELIM,	FALSE,	UNPROC,	UNKNOWN,	header.nbuf,
  'e',	' ',		FALSE,	UNPROC,	UNKNOWN,	header.expdate,
  'p',	'\0',		FALSE,	UNKNOWN,PROC,		filename,
! 'f',	' ',		FALSE,	UNPROC,	UNKNOWN,	username,
  'F',	' ',		FALSE,	UNPROC,	UNKNOWN,	header.followid,
  'c',	'\0',		FALSE,	UNKNOWN,CANCEL,		filename,
  'C',	'\0',		FALSE,	UNKNOWN,CREATENG,	header.nbuf,

--- 34,40 -----
  'n',	NGDELIM,	FALSE,	UNPROC,	UNKNOWN,	header.nbuf,
  'e',	' ',		FALSE,	UNPROC,	UNKNOWN,	header.expdate,
  'p',	'\0',		FALSE,	UNKNOWN,PROC,		filename,
! 'f',	'\0',		FALSE,	UNPROC,	UNKNOWN,	username,
  'F',	' ',		FALSE,	UNPROC,	UNKNOWN,	header.followid,
  'c',	'\0',		FALSE,	UNKNOWN,CANCEL,		filename,
  'C',	'\0',		FALSE,	UNKNOWN,CREATENG,	header.nbuf,
***************
*** 198,203
  	 * ALL of the command line has now been processed. (!)
  	 */
  
  	if (!Dflag && mode != PROC) {
  		if (recording(header.nbuf)) {
  			if (!tty)

--- 198,204 -----
  	 * ALL of the command line has now been processed. (!)
  	 */
  
+ 	tty = isatty(fileno(stdin));
  	if (!Dflag && mode != PROC) {
  		if (recording(header.nbuf)) {
  			if (!tty)
***************
*** 222,228
  	if (*header.nbuf)
  		lcase(header.nbuf);
  	strcpy(header.path, gensender(username));
- 	tty = isatty(fileno(stdin));
  	if (mode == PROC) {
  		signal(SIGHUP, SIG_IGN);
  		signal(SIGINT, SIG_IGN);

--- 223,228 -----
  	if (*header.nbuf)
  		lcase(header.nbuf);
  	strcpy(header.path, gensender(username));
  	if (mode == PROC) {
  		signal(SIGHUP, SIG_IGN);
  		signal(SIGINT, SIG_IGN);
***************
*** 304,310
  
  	if (tty) {
  		i = fork();
! 		if (i == 0)
  			exit(0);
  	}
  

--- 304,310 -----
  
  	if (tty) {
  		i = fork();
! 		if (i != 0)
  			exit(0);
  	}