Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 +SENDMAIL+2.11; site dcl-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!ukc!icdoc!dcl-cs!stephen From: stephen@dcl-cs.UUCP (Stephen J. Muir) Newsgroups: net.news.adm,net.news.b,net.news.sa Subject: Bug in expire in 2.10.2. Message-ID: <390@dcl-cs.UUCP> Date: Wed, 21-Aug-85 10:28:09 EDT Article-I.D.: dcl-cs.390 Posted: Wed Aug 21 10:28:09 1985 Date-Received: Sat, 24-Aug-85 17:28:34 EDT Reply-To: stephen@dcl-cs.UUCP (Stephen J. Muir) Organization: Department of Computing at Lancaster University. Lines: 30 Xref: watmath net.news.adm:348 net.news.b:1175 net.news.sa:153 Xpath: icdoc ivax When "expire" is run with no arguments, it doesn't close the file descriptor for the new history file before renaming it. This gives problems when receiving news whilst "expire" is running. Here is a patch: ----------------------------------- cut here ---------------------------------- *** expire.c.orig Wed Aug 21 13:18:58 1985 --- expire.c Wed Aug 21 13:20:53 1985 *************** *** 476,481 pclose(nhfd); free (multhist); } if (dorebuild || !nohistory) { rename(ARTFILE, OARTFILE); --- 476,483 ----- pclose(nhfd); free (multhist); } + else + fclose (nhfd); /* dcl-cs!stephen */ if (dorebuild || !nohistory) { rename(ARTFILE, OARTFILE); -- UUCP: ...!seismo!mcvax!ukc!dcl-cs!stephen DARPA: stephen%lancs.comp@ucl-cs | Post: University of Lancaster, JANET: stephen@uk.ac.lancs.comp | Department of Computing, Phone: +44 524 65201 Ext. 4599 | Bailrigg, Lancaster, UK. Project:Alvey ECLIPSE Distribution | LA1 4YR