🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #308

Bug in rn from nntp1.5

#308
From: 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.
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!janick

Show 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