From: utzoo!decvax!harpo!seismo!hao!hplabs!sri-unix!mclure Newsgroups: net.notes Title: Re: nfarchive -d not working? - (nf) Article-I.D.: sri-unix.5191 Posted: Sun Feb 20 14:06:18 1983 Received: Tue Feb 22 03:29:49 1983 #R:sri-unix:1000028:sri-unix:1000034:000:1122 sri-unix!mclure Feb 20 13:53:00 1983 Perhaps I misread your reply, but I think the problem was with archiver.c, not nfarchive.c. In there, an attempt to open an empty "line" variable is made (/usr/spool/oldnotes?). Also there is an attempt to close this after the archive. Both of these should be conditional on (deleteonly == 0). Also, later on there are a couple of printf's to net.log telling what archiver did. In the case of -d, they attempt to printf ncount with %n which prints nothing and also cause the printf of the time to be empty. This should be a %d in both cases. Here's a diff to fix these: Stuart diff archiver.c.old archiver.c.new 83c83,84 < x ((farchfile = fopen (line, "w")) == NULL, "archiver: bad create"); --- > if (deleteonly == 0) > x ((farchfile = fopen (line, "w")) == NULL, "archiver: bad create"); 110c111,112 < x (fclose (farchfile) < 0, "archiver: close archive"); --- > if (deleteonly == 0) > x (fclose (farchfile) < 0, "archiver: close archive"); 126c128 < fprintf (log, "%s: Archiver deleted %n notes at %s\n", --- > fprintf (log, "%s: Archiver deleted %d notes at %s\n",