Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!soma!sob From: sob@soma.UUCP Newsgroups: news.software.b Subject: bugs in Patch #6 that affect SYSV sites only. Message-ID: <3018@soma.bcm.tmc.edu> Date: Tue, 31-Mar-87 15:10:26 EST Article-I.D.: soma.3018 Posted: Tue Mar 31 15:10:26 1987 Date-Received: Fri, 3-Apr-87 00:53:23 EST Reply-To: sob@soma.UUCP (Stan Barber) Distribution: world Organization: Neurology, Baylor College of Medicine, Houston, Tx Lines: 67 For SYSV machines, there were a couple of bugs introduced in PATCH #6 for news. Problems: If you don't have F_RDLCK in , you don't have struct flock either. There was a typo in the routine to look for the history.d directories. These have been forwarded to rick. Here is the diff to fix the problems. Index: inews.c Prereq: 2.78 *** inews.orig Mon Mar 30 01:37:30 1987 --- inews.c Tue Mar 31 14:04:58 1987 *************** *** 25,31 # ifdef LOCKF # include # include ! struct flock news_lock; # endif /* LOCKF */ --- 25,31 ----- # ifdef LOCKF # include # include ! #ifdef F_RDLCK struct flock news_lock; #endif # endif /* LOCKF */ *************** *** 27,32 # include struct flock news_lock; # endif /* LOCKF */ #ifdef BSD4_2 --- 27,33 ----- # include #ifdef F_RDLCK struct flock news_lock; + #endif # endif /* LOCKF */ #ifdef BSD4_2 *************** *** 540,546 return; /* everything is ok */ mfd = mailhdr((struct hbuf *)NULL, exists(dir) ? "Unwritable directories" : "Missing directories"); ! if (mfs == NULL) return; putc('\n', mfd); fprintf(mfd, "System: %s\n\nThere was a problem with %s!\n", --- 541,547 ----- return; /* everything is ok */ mfd = mailhdr((struct hbuf *)NULL, exists(dir) ? "Unwritable directories" : "Missing directories"); ! if (mfd == NULL) return; putc('\n', mfd); fprintf(mfd, "System: %s\n\nThere was a problem with %s!\n",