🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #120

Bug in NN's nngoback routine

#120
From: Dean Brooks
Date: Wed, 30 Aug 1989 18:57
45 lines
1751 bytes
Hello,
   Recently I found a bug in the NN News Reader package (patchlevel 5).  I
assume that no one has found this before and if it has been found, please
ignore this message.  If no one else has this problem, then something
really strange is going on.

   The "nntidy" script that is distributed with NN was not working
correctly, and in turn made "nngoback" look as if it was not working either.
This problem was only apparant if you used "nngoback" WITHOUT the "-h"
switch; (if you wanted it to use the backup copies of the active file).

   "nntidy" would ALWAYS use the current active file and would never use
one of the backup copies.  This made it appear that "nngoback" was doing
nothing.  This should make the "nngoback" function behave normally.

   Here is a patch (one line fix) that corrects fix the problem.  It is
a fix to "nntidy" which is a shell script (easy to fix!).  It appears
to be a typo that was not caught before distribution. 


*** nntidy.sh.old	Wed Aug 30 14:48:48 1989
--- nntidy.sh	Wed Aug 30 14:48:56 1989
***************
*** 18,24 ****
  mv rc rc.bak1
  
  {
! 	cat ${ACTIVE}
  	echo EOA
  	cat rc.bak1
  
--- 18,24 ----
  mv rc rc.bak1
  
  {
! 	cat ${2-$ACTIVE}
  	echo EOA
  	cat rc.bak1
  

--
dean@coplex.UUCP   Dean A. Brooks
                   Copper Electronics, Inc.
                   Louisville, Ky
UUCP: !mit-eddie!bloom-beacon!coplex!dean
Technical Details
Message-ID: <775@coplex.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!coplex!dean

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!coplex!dean
From: dean@coplex.UUCP (Dean Brooks)
Newsgroups: comp.sources.bugs
Subject: Bug in NN's nngoback routine
Message-ID: <775@coplex.UUCP>
Date: 30 Aug 89 18:57:05 GMT
Organization: Copper Electronics,  Louisville, Ky.
Lines: 45