🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #109

Bug fix to nntp server

#109
From: M.W.Guy
Date: Fri, 03 Feb 1989 07:39
39 lines
1293 bytes
File:
	server/newnews.c

Problem:
	It is only slight - when you say

		newnews <group> <date>

	it fails to show the first article posted since that
	date - it shows all the others.

Patch:

*** newnews.c.old	Fri Feb  3 07:32:08 1989
--- newnews.c	Thu Feb  2 14:36:11 1989
***************
*** 302,307 ****
--- 302,314 ----
  		case -2:
  		case -1:
  		case 0:
+ 			/*
+ 			 * Seek back to "bot" so we are
+ 			 * in the right position for reading
+ 			 * lines - otherwise we will miss
+ 			 * the first one.
+ 			 */
+ 			(void) fseek(fp, bot, 0);
  			break;
  		case 1:
  		case 2:


Bug-smeller pursuivant:
	Chris Downey

Signature:
	Martin
Technical Details
Message-ID: <6374@eagle.ukc.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!harrier.ukc.ac.uk!eagle.ukc.ac.uk!mg

Show Full Headers
Complete Article Headers
Message-ID: <6374@eagle.ukc.ac.uk>
Subject: Bug fix to nntp server
Date: Fri, 03 Feb 1989 07:39:34 +0000
From: mg@ukc.ac.uk (M.W.Guy)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!harrier.ukc.ac.uk!eagle.ukc.ac.uk!mg
Newsgroups: news.software.nntp
Reply-To: mg@ukc.ac.uk (M.W.Guy)
Organization: Computing Lab, University of Kent at Canterbury, UK.
Lines: 38