[comp.sources.unix] v19i077: NN, a Usenet news reader, Patch1

rsalz@uunet.uu.net (Rich Salz) (06/27/89)

Submitted-by: storm@texas.dk (Kim F. Storm)
Posting-number: Volume 19, Issue 77
Archive-name: nn/patch1

Well, solving one problem often leads to another, and so also with nn.  As
distributed, nn dumps core if people have never read news before.  A patch
follows.

Thank you.
Kim F. Storm        storm@texas.dk        Tel +45 429 174 00

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  Patch1
# Wrapped by rsalz@papaya.bbn.com on Mon Jun 26 15:52:25 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'Patch1' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'Patch1'\"
else
echo shar: Extracting \"'Patch1'\" \(1172 characters\)
sed "s/^X//" >'Patch1' <<'END_OF_FILE'
X
X*** /usr/storm/nn6.3.0/patchlevel.h
X--- patchlevel.h
X**************
X*** 7,12
X   *	1988-11-01:  Distributed release 6.1 	(Europe)
X   *	1989-03-21:  Distributed release 6.2beta (FTP)
X   *	1989-05-30:  Distributed release 6.3	(World)
X   */
X  
X  #define PATCHLEVEL 0
X--- 7,14 -----
X   *	1988-11-01:  Distributed release 6.1 	(Europe)
X   *	1989-03-21:  Distributed release 6.2beta (FTP)
X   *	1989-05-30:  Distributed release 6.3	(World)
X+  *
X+  *	1989-06-06:  Patch 1: rc.c
X   */
X  
X  #define PATCHLEVEL 1
X**************
X*** 9,13
X   *	1989-05-30:  Distributed release 6.3	(World)
X   */
X  
X! #define PATCHLEVEL 0
X  
X--- 11,15 -----
X   *	1989-06-06:  Patch 1: rc.c
X   */
X  
X! #define PATCHLEVEL 1
X  
X
X*** /usr/storm/nn6.3.0/rc.c
X--- rc.c
X**************
X*** 140,145
X  	fclose(newsrc);
X      }
X      
X      if (no_update) mk_bak = 0;
X  
X      bak = mk_bak ? open_file(bak_path, OPEN_CREATE | MUST_EXIST) : NULL;
X--- 140,150 -----
X  	fclose(newsrc);
X      }
X      
X+     if (rc == NULL) {		/* no .nn/rc and no .newsrc */
X+ 	bak = NULL;
X+ 	goto endloop;
X+     }
X+     
X      if (no_update) mk_bak = 0;
X  
X      bak = mk_bak ? open_file(bak_path, OPEN_CREATE | MUST_EXIST) : NULL;
X
X
END_OF_FILE
if test 1172 -ne `wc -c <'Patch1'`; then
    echo shar: \"'Patch1'\" unpacked with wrong size!
fi
# end of 'Patch1'
fi
echo shar: End of shell archive.
exit 0
-- 
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.