Bug in NN's nngoback routine

Dean Brooks dean at coplex.UUCP
Thu Aug 31 04:57:05 AEST 1989


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 at coplex.UUCP   Dean A. Brooks
                   Copper Electronics, Inc.
                   Louisville, Ky
UUCP: !mit-eddie!bloom-beacon!coplex!dean



More information about the Comp.sources.bugs mailing list