Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcrdcf.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!sdcrdcf!jonab From: jonab@sdcrdcf.UUCP (Jonathan Biggar) Newsgroups: net.sources.bugs Subject: Rn bug patch #9 (REPOSTED) Message-ID: <1473@sdcrdcf.UUCP> Date: Fri, 16-Nov-84 18:59:15 EST Article-I.D.: sdcrdcf.1473 Posted: Fri Nov 16 18:59:15 1984 Date-Received: Sun, 18-Nov-84 05:13:27 EST Reply-To: jonab@sdcrdcf.UUCP (Jonathan Biggar) Distribution: net Organization: System Development Corp. R+D, Santa Monica Lines: 173 System: rn version 4.1 Bug #: 9 Priority: LOW Subject: int vs. long Index: common.h, last.c, ngdata.c From: scw@cepu.UUCP (Stephen C. Woods) Description: Some V7 compilers don't seem to know that atol returns a long. There are also some atoi calls which should be atol. The symptoms were: always displayed the newsnews message (startup), continually reseting .newsrc ('Warning: Someone reset this.that, assuming nothing read'), and all newsgroups empty. Repeat-By: Run rn and see if you get these problems. Fix: The patch involves adding 1 line to common.h and changing 2 lines in last.c, and 1 line in ngdata.c. Fix: From rn, say "| patch -d DIR", where DIR is your rn source directory. Outside of rn, say "cd DIR; patch d_name)) < min && maybe > floor) { for (p = dp->d_name; *p; p++) if (!isdigit(*p)) goto nope; --- 171,177 ----- if (!dirp) return 0; while ((dp = readdir(dirp)) != Null(struct direct *)) { ! if ((maybe = atol(dp->d_name)) < min && maybe > floor) { for (p = dp->d_name; *p; p++) if (!isdigit(*p)) goto nope;