Article View: news.software.notes
Article #69Checknotes Bug Report
From: cmv
Date: Sat, 11 Apr 1987 22:13
Date: Sat, 11 Apr 1987 22:13
48 lines
2120 bytes
2120 bytes
References:
I reported a bug in checknotes earlier this month, and the fix that I proposed
was incorrect. Here is the correct fix:
The fix for this problem is in 2 files: checknotes.c and Makefile.
checknotes.c
---Original---
81 */
82 if (opennf (&io, nfname) < 0)
83 return 0; /* ignore this one */
84 getdscr (&io, &io.descr);
85 getlast (&io.stime, io.nf, NORMSEQ, Seqname); /* last date */
---Modified--- Lines 85 and 86 have been added
81 */
82 if (opennf (&io, nfname) < 0)
83 return 0; /* ignore this one */
84 getdscr (&io, &io.descr);
85 if(allow(&io,READOK) != 0)
86 return 0;
87 getlast (&io.stime, io.nf, NORMSEQ, Seqname); /* last date */
Makefile
---Original---
85 CHECKNOTES = check.o cursor.o gname.o gtime.o lrsp.o misc.o miscio.o \
86 next.o pattern.o perms.o recsio.o startup.o times.o expand.o
---Modified---
85 CHECKNOTES = check.o cursor.o gname.o gtime.o lrsp.o misc.o miscio.o \
86 next.o pattern.o permit.o perms.o recsio.o startup.o times.o expand.o
^^^^^^^^^
This fix is intended to properly inform folks if they have any unread groups
in notesfiles that they have permission to read. For this to work properly
FASTSEQ *must* be undefined since the code that gets included when FASTSEQ is
defined ignores wether the user is allowed to read the notesfile or not.
Craig Votava
AT&T Bell Labs, Naperville IL.
IH 4G-324 312/979-2542
ihnp4!ihlpm!cmv
ihnp4!ih3b1!cmv
ihnp4!ihuxz!cmv
Technical Details
Message-ID:
<2003@ihuxz.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ihuxz!cmvShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ihuxz!cmv From: cmv@ihuxz.UUCP Newsgroups: news.software.notes Subject: Checknotes Bug Report Message-ID: <2003@ihuxz.ATT.COM> Date: Sat, 11-Apr-87 17:13:34 EST Article-I.D.: ihuxz.2003 Posted: Sat Apr 11 17:13:34 1987 Date-Received: Wed, 15-Apr-87 01:30:46 EST Reply-To: cmv@ihuxz.UUCP (Craig Votava) Distribution: world Organization: AT&T Bell Laboratories Lines: 46 Keywords: notesfiles notes checknotes bug