Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!lib!watson.bcm.tmc.edu!sob From: sob@watson.bcm.tmc.edu (Stan Barber) Newsgroups: news.software.nntp Subject: Addendum to patch 4 for nntp Keywords: This is a patch to apply AFTER patch 4 to nntp 1.5 Message-ID: <158@lib.tmc.edu> Date: 15 May 89 23:26:28 GMT Sender: usenet@lib.tmc.edu Reply-To: sob@watson.bcm.tmc.edu (Stan Barber) Organization: Baylor College of Medicine, Houston, TX Lines: 49 Brian Kantor sent me a letter informing me that 5XX codes were for REALLY bad things like the CPU being on fire and such and wants the 4XX codes use for out-of-space problems. The following patch addresses this change. Patch 4 in the archive will be changes to make this happen. *** serve.c Sat Jan 14 23:22:40 1989 --- ../../nntp_patch/server/serve.c Mon May 15 18:23:05 1989 *************** *** 142,148 **** if (space() < 0 && !canpost ) { printf("%d %s NNTP server out of space. Try later.\r\n", ! ERR_FAULT, host); (void) fflush(stdout); #ifdef LOG syslog(LOG_INFO, "%s no space", hostname); --- 142,148 ---- if (space() < 0 && !canpost ) { printf("%d %s NNTP server out of space. Try later.\r\n", ! ERR_GOODBYE, host); (void) fflush(stdout); #ifdef LOG syslog(LOG_INFO, "%s no space", hostname); *************** *** 177,183 **** */ if (num_groups == 0){ /* can't get a group list */ printf("%d %s NNTP server unavailable. Try later.\r\n", ! ERR_FAULT, host); (void) fflush(stdout); #ifdef LOG syslog(LOG_INFO, "%s no groups", hostname); --- 177,183 ---- */ if (num_groups == 0){ /* can't get a group list */ printf("%d %s NNTP server unavailable. Try later.\r\n", ! ERR_GOODBYE, host); (void) fflush(stdout); #ifdef LOG syslog(LOG_INFO, "%s no groups", hostname); Stan internet: sob@bcm.tmc.edu Manager, Networking Olan uucp: {rutgers,mailrus}!bcm!sob Information Technology Barber Opinions expressed are only mine. Baylor College of Medicine