Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!cbmvax!bpa!burdvax!sdcrdcf!lwall From: lwall@sdcrdcf.UUCP (Larry Wall) Newsgroups: news.software.b,net.sources.bugs Subject: rn 4.3 patch #39 Message-ID: <3440@sdcrdcf.UUCP> Date: Wed, 19-Nov-86 13:52:22 EST Article-I.D.: sdcrdcf.3440 Posted: Wed Nov 19 13:52:22 1986 Date-Received: Thu, 20-Nov-86 23:12:01 EST Organization: System Development Corporation R&D, Santa Monica Lines: 79 Xref: mnetor news.software.b:29 net.sources.bugs:894 System: rn version 4.3 Patch #: 39 Priority: depends on whether you installed #37 Subject: patch #37 deletes the .rnlast file From: lotsa people Description: Rn used to dump core on adding a new newsgroup to the .newsrc file. Patch #37 fixed this but caused rn to delete the .rnlast file so that rn thinks you've never run rn before, with all that that implies (shows newsnews, new newsgroups, etc.). Repeat by: Apply patch #37. Run rn. Run rn again. Fix: The fix is to substitute "" for the null pointer, but still write the file. From rn, say "| patch -d DIR", where DIR is your rn source directory. Outside of rn, say "cd DIR; patch Patch #: 39 Index: last.c *** last.c.orig Wed Nov 19 10:42:43 1986 --- last.c Wed Nov 19 10:42:47 1986 *************** *** 47,55 writelast() { if ((tmpfp = fopen(lastname,"w")) != Nullfp) { ! if (ngname != Nullch) ! fprintf(tmpfp,"%s\n%ld\n%ld\n", ! ngname,(long)lasttime,(long)lastactsiz); fclose(tmpfp); } else --- 47,54 ----- writelast() { if ((tmpfp = fopen(lastname,"w")) != Nullfp) { ! fprintf(tmpfp,"%s\n%ld\n%ld\n", ! (ngname==Nullch?nullstr:ngname),(long)lasttime,(long)lastactsiz); fclose(tmpfp); } else