Article View: news.software.nntp
Article #308Bug in rn from nntp1.5
From: Janick Bergeron 1617964
Date: Thu, 05 Oct 1989 15:48
Date: Thu, 05 Oct 1989 15:48
17 lines
994 bytes
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.
Technical Details
Message-ID:
<44@crk56.bnr.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!bnr-vpa!bnr-fos!bigsur!bnrgate!bnr!crk56.bnr.com!janickShow Full Headers
Complete Article Headers
Message-ID: <44@crk56.bnr.com> Subject: Bug in rn from nntp1.5 Date: Thu, 05 Oct 1989 15:48:59 +0000 From: janick@crk56.bnr.com (Janick Bergeron 1617964) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!bnr-vpa!bnr-fos!bigsur!bnrgate!bnr!crk56.bnr.com!janick Newsgroups: news.software.nntp Sender: janick@bnr.COM Reply-To: janick@bnr.ca Organization: Bell-Northern Research, Ottawa, Ontario Canada Lines: 16