Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!lll-lcc!mordor!styx!ames!ucbcad!ucbvax!cbatt!ihnp4!pegasus!hansen
From: hansen@pegasus.UUCP (Tony L. Hansen)
Newsgroups: news.software.b,news.admin
Subject: emergency bug fix for patch #3
Message-ID: <2919@pegasus.UUCP>
Date: Wed, 31-Dec-86 16:40:26 EST
Article-I.D.: pegasus.2919
Posted: Wed Dec 31 16:40:26 1986
Date-Received: Thu, 1-Jan-87 00:43:10 EST
Organization: AT&T Information Systems, Lincroft, NJ
Lines: 29
Keywords: news 2.11 patch 3
Xref: mnetor news.software.b:162 news.admin:103

There's a typo in patch #3. On non-4.2BSD and non-lockf sites, inews.c
passes two arguments to UNLINK() where it only expects one. Unfortunately,
this has the affect of unlinking the active file rather than the lock file!
My guess is that the LINK() line a few lines above was simply copied. The
fix is simple.

					Tony Hansen
					ihnp4!pegasus!hansen 

*** inews.c.orig	Wed Dec 31 16:20:54 1986
--- inews.c	Wed Dec 31 16:27:19 1986
***************
*** 155,161
  #ifdef	LOCKF
  	lockf(fileno(actfp), F_ULOCK, 0);
  #else	/* !LOCKF */
! 	UNLINK(ACTIVE, bfr);
  #endif /* V7 */
  #endif	/* !BSD4_2 */
  	if (argc > 1 && !strcmp(*(argv+1), "-U")) {

--- 155,161 -----
  #ifdef	LOCKF
  	lockf(fileno(actfp), F_ULOCK, 0);
  #else	/* !LOCKF */
! 	UNLINK(bfr);
  #endif /* V7 */
  #endif	/* !BSD4_2 */
  	if (argc > 1 && !strcmp(*(argv+1), "-U")) {