hansen@pegasus.UUCP (Tony L. Hansen) (01/01/87)
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")) {