[news.software.b] Problem with 2.11 news patch #3

tb@ncrpcd.UUCP (Tom Bertelson) (12/31/86)

OUCH!  I don't think we want to unlink the active file here...

*** inews.c.orig	Tue Dec 30 12:52:41 1986
--- inews.c	Tue Dec 30 12:49:41 1986
***************
*** 156,162
  #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")) {

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

-----
Tom Bertelson		"Wish I didn't know now what I didn't know then"
ncrcae!ncrpcd!tb				B. Seger
-- 
-----
Tom Bertelson		"Wish I didn't know now what I didn't know then"
ncrcae!ncrpcd!tb				B. Seger

meissner@dg_rtp.UUCP (Michael Meissner) (01/01/87)

In article <513@ncrpcd.UUCP> tb@ncrpcd.UUCP (Tom Bertelson) writes:
> OUCH!  I don't think we want to unlink the active file here...
>
> *** inews.c.orig	Tue Dec 30 12:52:41 1986
> --- inews.c	Tue Dec 30 12:49:41 1986
> ***************
> *** 156,162
>   #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")) {
>
My compiler gives "too many arguments for macro UNLINK" for this patch (the
UNLINK macro only has one argument elsewhere).  What's going on?
-- 
	Michael Meissner, Data General
	...mcnc!rti-sel!dg_rtp!meissner