Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!bbn!bbn.com!rsalz From: rsalz@uunet.uu.net (Rich Salz) Newsgroups: comp.sources.unix Subject: v19i077: NN, a Usenet news reader, Patch1 Message-ID: <1855@papaya.bbn.com> Date: 26 Jun 89 20:03:06 GMT Lines: 95 Approved: rsalz@uunet.UU.NET 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 '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.