🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Janick Bergeron 1617964 Thu, 05 Oct 1989 15:48
Bug in rn from nntp1.5
#308
Author: Janick Bergeron 1617964
Date: Thu, 05 Oct 1989 15:48
17 lines
994 bytes
I have found (and corrected) a bug in rn I got with nntp1.5.

The bug is at line #107 in the file art.c:

    if (filestat.st_mode & S_IFMT != S_IFREG)
	return DA_NORM;

should be replaced by:

    if ((filestat.st_mode & S_IFMT) != S_IFREG)
	return DA_NORM;


The operators were evaluated in the wrong order: Instead of checking
if the article was a regular file, it checked if 'others' had execute
permission.
Re: Bug in rn from nntp1.5
#303
Author: Jim Budler
Date: Fri, 06 Oct 1989 18:40
25 lines
1244 bytes
janick@crk56.bnr.com (Janick Bergeron 1617964) writes:

} I have found (and corrected) a bug in rn I got with nntp1.5.

} The bug is at line #107 in the file art.c:
}     if (filestat.st_mode & S_IFMT != S_IFREG)
} 	return DA_NORM;

} should be replaced by:

}     if ((filestat.st_mode & S_IFMT) != S_IFREG)
} 	return DA_NORM;




This is present in the non-nntp version of rn also, so it's not just
related to the version distributed with nntp. (Patchlevel 40).

jim
-- 
Jim Budler	jim@eda.com    ...!{decwrl,uunet}!eda!jim
compuserve: 72415,1200     applelink: D4619
voice: +1 408 986-9585     fax: +1 408 748-1032
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads