Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!nic.MR.NET!shamash!com50!jhereg!mark From: mark@jhereg.Jhereg.MN.ORG (Mark H. Colburn) Newsgroups: news.software.b Subject: News 2.11.17 expire problem with dbm/dbz Message-ID: <490@jhereg.Jhereg.MN.ORG> Date: 29 Jan 89 01:27:15 GMT Reply-To: mark@jhereg.MN.ORG (Mark H. Colburn) Organization: NAPS International, St. Paul MN Lines: 30 The new patches for expire uncover a problem with expire when it is used in conjunction with dbm or dbz. The problem is that expire wants to create a new ARTFILE (NARTFILE), however, since neither DBM or DBZ creates this file, expire will fail with a "can't write" error. The patch to fix the problem is below. *** orig/expire.c Sat Jan 28 11:35:36 1989 --- ./expire.c Sat Jan 28 11:36:11 1989 *************** *** 346,351 (void) sprintf(DIRFILE, "%s/%s", LIB, "nhistory.dir"); (void) close(creat(PAGFILE, 0666)); (void) close(creat(DIRFILE, 0666)); initdbm(NARTFILE); } #endif --- 346,352 ----- (void) sprintf(DIRFILE, "%s/%s", LIB, "nhistory.dir"); (void) close(creat(PAGFILE, 0666)); (void) close(creat(DIRFILE, 0666)); + (void) close(creat(NARTFILE, 0666)); initdbm(NARTFILE); } #endif -- Mark H. Colburn "They didn't understand a different kind of Minnetech Consulting, Inc. smack was needed, than the back of a hand, mark@jhereg.mn.org something else was always needed."