This is rn 4.4 patch number 1. Please note that rn 4.4 on lib.tmc.edu, gazette.bcm.tmc.edu, bcm.tmc.edu and tmc.edu have all been updated to rn 4.4.1 and have this patch installed. Description: 1. The patchlevel file contains "beta11". Following this patch, it will indicate that patch 1 has been sucessfully applied. 2. The man pages did not have the "cannonically" correct comment macro for comments. 3. Configure contained the unprintable control-A character. It now used tr to create it when Configure is run. 4. Cnews does not guarentee that minimum message number listed in the active file is in fact the minimum. rn now compensates for this problem. 5. The Makefile would strip rn even when it was not being installed. 6. The shell scripts that use the .newsrc file now obey the NEWSRC environmental variable if present. Install this patch using Larry Wall's patch program. *** patchlevel Tue Oct 1 23:38:41 1991 --- ../rn4.4.1/patchlevel Wed Sep 18 08:09:22 1991 *************** *** 1 ! Patch: beta11 --- 1 ----- ! Patch: 1 Index: Configure Prereq: 4.4 *** Configure Tue Oct 1 23:38:40 1991 --- ../rn4.4.1/Configure Wed Sep 25 14:38:20 1991 *************** *** 15,21 # If these # comments don't work, trim them. Don't worry about the other # shell scripts, Configure will trim # comments from them for you. # ! # $Id: Configure,v 4.4 1991/09/09 20:18:23 sob Exp sob $ # # $Log: Configure,v $ # Revision 4.4 1991/09/09 20:18:23 sob --- 15,21 ----- # If these # comments don't work, trim them. Don't worry about the other # shell scripts, Configure will trim # comments from them for you. # ! # $Id: Configure,v 4.4.1.1 1991/09/25 19:38:08 sob Exp sob $ # # $Log: Configure,v $ # Revision 4.4.1.1 1991/09/25 19:38:08 sob *************** *** 18,23 # $Id: Configure,v 4.4 1991/09/09 20:18:23 sob Exp sob $ # # $Log: Configure,v $ # Revision 4.4 1991/09/09 20:18:23 sob # release 4.4 # --- 18,26 ----- # $Id: Configure,v 4.4.1.1 1991/09/25 19:38:08 sob Exp sob $ # # $Log: Configure,v $ + # Revision 4.4.1.1 1991/09/25 19:38:08 sob + # various fixed + # # Revision 4.4 1991/09/09 20:18:23 sob # release 4.4 # *************** *** 25,31 # Yes, you may rip this off to use in other distribution packages. ! CTRLA='' : there should be a control-A between the single-quotes. bopt='' n='' --- 28,34 ----- # Yes, you may rip this off to use in other distribution packages. ! CTRL=`echo a | tr a '\011'` bopt='' n='' Index: Makefile.SH Prereq: 4.4 *** Makefile.SH Tue Oct 1 23:39:28 1991 --- ../rn4.4.1/Makefile.SH Wed Sep 25 14:39:16 1991 *************** *** 3,9 esac echo "Extracting Makefile (with variable substitutions)" cat >Makefile <Makefile <newsetup <newsetup <\$dotdir/.newsrc #NNTP$rm -f \$active $rm -f /tmp/n.misc\$\$ /tmp/n.sci\$\$ /tmp/n.soc\$\$ /tmp/n.news\$\$ /tmp/n.comp\$\$ --- 99,105 ----- /^14 /!s/\$/:/ /^14 /s/\$/!/ s/^[0-9][0-9] // ! ' >\$newsrc #NNTP$rm -f \$active $rm -f /tmp/n.misc\$\$ /tmp/n.sci\$\$ /tmp/n.soc\$\$ /tmp/n.news\$\$ /tmp/n.comp\$\$ Index: newsgroups.1 Prereq: 4.4 *** newsgroups.1 Tue Oct 1 23:39:39 1991 --- ../rn4.4.1/newsgroups.1 Wed Sep 25 14:37:10 1991 *************** *** 1,23 ! ''' $Header: /home/sob/src/rn4.4/RCS/newsgroups.1,v 4.4 1991/09/09 20:23:31 sob Exp sob $ ! ''' ! ''' $Log: newsgroups.1,v $ ! # Revision 4.4 1991/09/09 20:23:31 sob ! # release 4.4 ! # ! ''' ! ''' This software is Copyright 1991 by Stan Barber. ! ''' ! ''' Permission is hereby granted to copy, reproduce, redistribute or otherwise ! ''' use this software as long as: there is no monetary profit gained ! ''' specifically from the use or reproduction of this software, it is not ! ''' sold, rented, traded or otherwise marketed, and this copyright notice is ! ''' included prominently in any copy made. ! ''' ! ''' The author make no claims as to the fitness or correctness of this software ! ''' for any use whatsoever, and it is provided as is. Any use of this software ! ''' is at the user's own risk. ! ''' ! ''' .de Sh .br .ne 5 --- 1,26 ----- ! .\" $Id: newsgroups.1,v 4.4.1.1 1991/09/25 19:36:48 sob Exp sob $ ! .\" ! .\" $Log: newsgroups.1,v $ ! .\" Revision 4.4.1.1 1991/09/25 19:36:48 sob ! .\" Changed quote macro to "standard" one ! .\" ! .\" Revision 4.4 1991/09/09 20:23:31 sob ! .\" release 4.4 ! .\" ! .\" ! .\" This software is Copyright 1991 by Stan Barber. ! .\" ! .\" Permission is hereby granted to copy, reproduce, redistribute or otherwise ! .\" use this software as long as: there is no monetary profit gained ! .\" specifically from the use or reproduction of this software, it is not ! .\" sold, rented, traded or otherwise marketed, and this copyright notice is ! .\" included prominently in any copy made. ! .\" ! .\" The author make no claims as to the fitness or correctness of this software ! .\" for any use whatsoever, and it is provided as is. Any use of this software ! .\" is at the user's own risk. ! .\" ! .\" .de Sh .br .ne 5 *************** *** 29,39 .if t .sp .5v .if n .sp .. ! ''' ! ''' Set up \*(-- to give an unbreakable dash; ! ''' string Tr holds user defined translation string. ! ''' Bell System Logo is used as a dummy character. ! ''' .ie n \{\ .tr \(bs-\*(Tr .ds -- \(bs- --- 32,42 ----- .if t .sp .5v .if n .sp .. ! .\" ! .\" Set up \*(-- to give an unbreakable dash; ! .\" string Tr holds user defined translation string. ! .\" Bell System Logo is used as a dummy character. ! .\" .ie n \{\ .tr \(bs-\*(Tr .ds -- \(bs- Index: newsgroups.SH Prereq: 4.4 *** newsgroups.SH Tue Oct 1 23:39:37 1991 --- ../rn4.4.1/newsgroups.SH Wed Sep 25 14:38:30 1991 *************** *** 4,10 echo "Extracting newsgroups (with variable substitutions)" $spitshell >newsgroups <newsgroups < ngmax[ngnum] + 100 /* allow for incoming articles */ ) { --- 89,95 ----- /* now is a good time to trim down */ set_toread(ngnum); /* the list due to expires if we */ /* have not yet. */ + #endif #ifdef DEBUGGING if (artnum > ngmax[ngnum] + 100 /* allow for incoming articles */ ) { Index: respond.c Prereq: 4.4 *** respond.c Tue Oct 1 23:39:07 1991 --- ../rn4.4.1/respond.c Wed Sep 25 14:38:58 1991 *************** *** 1,4 ! /* $Id: respond.c,v 4.4 1991/09/09 20:27:37 sob Exp sob $ * * $Log: respond.c,v $ * Revision 4.4 1991/09/09 20:27:37 sob --- 1,4 ----- ! /* $Id: respond.c,v 4.4.1.1 1991/09/25 19:38:08 sob Exp sob $ * * $Log: respond.c,v $ * Revision 4.4.1.1 1991/09/25 19:38:08 sob *************** *** 1,6 /* $Id: respond.c,v 4.4 1991/09/09 20:27:37 sob Exp sob $ * * $Log: respond.c,v $ * Revision 4.4 1991/09/09 20:27:37 sob * release 4.4 * --- 1,9 ----- /* $Id: respond.c,v 4.4.1.1 1991/09/25 19:38:08 sob Exp sob $ * * $Log: respond.c,v $ + * Revision 4.4.1.1 1991/09/25 19:38:08 sob + * Some adaptions for CNEWS + * * Revision 4.4 1991/09/09 20:27:37 sob * release 4.4 * *************** *** 199,204 extract_it: cnt = 0; interp(cmd_buf,(sizeof cmd_buf),getval("EXSAVER",EXSAVER)); resetty(); /* restore tty state */ doshell(SH,cmd_buf); noecho(); /* revert to cbreaking */ --- 202,208 ----- extract_it: cnt = 0; interp(cmd_buf,(sizeof cmd_buf),getval("EXSAVER",EXSAVER)); + termlib_reset(); resetty(); /* restore tty state */ doshell(SH,cmd_buf); noecho(); /* revert to cbreaking */ *************** *** 203,208 doshell(SH,cmd_buf); noecho(); /* revert to cbreaking */ crmode(); break; } else --- 207,213 ----- doshell(SH,cmd_buf); noecho(); /* revert to cbreaking */ crmode(); + termlib_init(); break; } else *************** *** 250,255 savedest = savestr(altbuf); interp(cmd_buf, (sizeof cmd_buf), getval("PIPESAVER",PIPESAVER)); /* then set up for command */ resetty(); /* restore tty state */ if (use_pref) /* use preferred shell? */ doshell(Nullch,cmd_buf); --- 255,261 ----- savedest = savestr(altbuf); interp(cmd_buf, (sizeof cmd_buf), getval("PIPESAVER",PIPESAVER)); /* then set up for command */ + termlib_reset(); resetty(); /* restore tty state */ if (use_pref) /* use preferred shell? */ doshell(Nullch,cmd_buf); *************** *** 258,263 doshell(sh,cmd_buf); /* do command with sh */ noecho(); /* and stop echoing */ crmode(); /* and start cbreaking */ } else { /* normal save */ bool there, mailbox; --- 264,270 ----- doshell(sh,cmd_buf); /* do command with sh */ noecho(); /* and stop echoing */ crmode(); /* and start cbreaking */ + termlib_init(); } else { /* normal save */ bool there, mailbox; *************** *** 387,392 getval("MBOXSAVER",MBOXSAVER) : getval("NORMSAVER",NORMSAVER) ), sizeof cmd_buf); /* format the command */ resetty(); /* make terminal behave */ if (doshell(use_pref?Nullch:SH,cmd_buf)) fputs("Not saved",stdout); --- 394,400 ----- getval("MBOXSAVER",MBOXSAVER) : getval("NORMSAVER",NORMSAVER) ), sizeof cmd_buf); /* format the command */ + termlib_reset(); resetty(); /* make terminal behave */ if (doshell(use_pref?Nullch:SH,cmd_buf)) { termlib_init(); *************** *** 388,394 getval("NORMSAVER",NORMSAVER) ), sizeof cmd_buf); /* format the command */ resetty(); /* make terminal behave */ ! if (doshell(use_pref?Nullch:SH,cmd_buf)) fputs("Not saved",stdout); else printf("%s to %s %s", --- 396,403 ----- /* format the command */ termlib_reset(); resetty(); /* make terminal behave */ ! if (doshell(use_pref?Nullch:SH,cmd_buf)) { ! termlib_init(); fputs("Not saved",stdout); } else { termlib_init(); *************** *** 390,396 resetty(); /* make terminal behave */ if (doshell(use_pref?Nullch:SH,cmd_buf)) fputs("Not saved",stdout); ! else printf("%s to %s %s", there?"Appended":"Saved", mailbox?"mailbox":"file", --- 399,406 ----- if (doshell(use_pref?Nullch:SH,cmd_buf)) { termlib_init(); fputs("Not saved",stdout); ! } else { ! termlib_init(); printf("%s to %s %s", there?"Appended":"Saved", mailbox?"mailbox":"file", *************** *** 395,400 there?"Appended":"Saved", mailbox?"mailbox":"file", s); if (interactive) putchar('\n') FLUSH; noecho(); /* make terminal do what we want */ --- 405,411 ----- there?"Appended":"Saved", mailbox?"mailbox":"file", s); + } if (interactive) putchar('\n') FLUSH; noecho(); /* make terminal do what we want */ *************** *** 446,451 myuid != newsuid && #endif myuid != ROOTID ) ) { if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; #ifdef VERBOSE --- 457,463 ----- myuid != newsuid && #endif myuid != ROOTID ) ) { + #ifdef DEBUGGING if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; #endif *************** *** 448,453 myuid != ROOTID ) ) { if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; #ifdef VERBOSE IF(verbose) fputs("\nYou can't cancel someone else's article\n",stdout) --- 460,466 ----- #ifdef DEBUGGING if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; + #endif #ifdef VERBOSE IF(verbose) fputs("\nYou can't cancel someone else's article\n",stdout) *************** *** 512,517 myuid != newsuid && #endif myuid != ROOTID ) ) { if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; #ifdef VERBOSE --- 525,531 ----- myuid != newsuid && #endif myuid != ROOTID ) ) { + #ifdef DEBUGGING if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; #endif *************** *** 514,519 myuid != ROOTID ) ) { if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; #ifdef VERBOSE IF(verbose) fputs("\nYou can't supersede someone else's article\n",stdout) --- 528,534 ----- #ifdef DEBUGGING if (debug) printf("\n%s@%s != %s\n",logname,sitename,from_buf) FLUSH; + #endif #ifdef VERBOSE IF(verbose) fputs("\nYou can't supersede someone else's article\n",stdout) *************** *** 637,642 printf(nocd,dir) FLUSH; return; } #ifdef VERBOSE IF(verbose) printf("\n(leaving cbreak mode; cwd=%s)\nInvoking command: %s\n\n", --- 652,658 ----- printf(nocd,dir) FLUSH; return; } + termlib_reset(); #ifdef VERBOSE IF(verbose) printf("\n(leaving cbreak mode; cwd=%s)\nInvoking command: %s\n\n", *************** *** 658,663 #ifdef TERSE fputs("\n(+cbreak)\n",stdout) FLUSH; #endif #ifdef SERVER if (chdir(spool)) { #else /* not SERVER */ --- 674,680 ----- #ifdef TERSE fputs("\n(+cbreak)\n",stdout) FLUSH; #endif + termlib_init(); #ifdef SERVER if (chdir(spool)) { #else /* not SERVER */ Index: rn.1 Prereq: 4.4 *** rn.1 Tue Oct 1 23:38:17 1991 --- ../rn4.4.1/rn.1 Wed Sep 25 14:37:13 1991 *************** *** 1,17 ! ''' $Header: /home/sob/src/rn4.4/RCS/rn.1,v 4.4 1991/09/09 20:27:37 sob Exp sob $ ! ''' ! ''' This software is Copyright 1991 by Stan Barber. ! ''' ! ''' Permission is hereby granted to copy, reproduce, redistribute or otherwise ! ''' use this software as long as: there is no monetary profit gained ! ''' specifically from the use or reproduction of this software, it is not ! ''' sold, rented, traded or otherwise marketed, and this copyright notice is ! ''' included prominently in any copy made. ! ''' ! ''' The author make no claims as to the fitness or correctness of this software ! ''' for any use whatsoever, and it is provided as is. Any use of this software ! ''' is at the user's own risk. ! ''' .de Sh .br .ne 5 --- 1,17 ----- ! .\" $Id: rn.1,v 4.4.1.1 1991/09/25 19:36:48 sob Exp sob $ ! .\" ! .\" This software is Copyright 1991 by Stan Barber. ! .\" ! .\" Permission is hereby granted to copy, reproduce, redistribute or otherwise ! .\" use this software as long as: there is no monetary profit gained ! .\" specifically from the use or reproduction of this software, it is not ! .\" sold, rented, traded or otherwise marketed, and this copyright notice is ! .\" included prominently in any copy made. ! .\" ! .\" The author make no claims as to the fitness or correctness of this software ! .\" for any use whatsoever, and it is provided as is. Any use of this software ! .\" is at the user's own risk. ! .\" .de Sh .br .ne 5 *************** *** 29,39 .el .ne 3 .IP "\\$1" \\$2 .. ! ''' ! ''' Set up \*(-- to give an unbreakable dash; ! ''' string Tr holds user defined translation string. ! ''' Bell System Logo is used as a dummy character. ! ''' .tr \(bs-|\(bv\*(Tr .ie n \{\ .ds -- \(bs- --- 29,39 ----- .el .ne 3 .IP "\\$1" \\$2 .. ! .\" ! .\" Set up \*(-- to give an unbreakable dash; ! .\" string Tr holds user defined translation string. ! .\" Bell System Logo is used as a dummy character. ! .\" .tr \(bs-|\(bv\*(Tr .ie n \{\ .ds -- \(bs- Index: rn.c Prereq: 4.4 *** rn.c Tue Oct 1 23:39:04 1991 --- ../rn4.4.1/rn.c Wed Sep 25 14:38:45 1991 *************** *** 24,31 * is at the user's own risk. */ ! static char rnid[] = "@(#)$Id: rn.c,v 4.4 1991/09/09 20:27:37 sob Exp sob $"; ! static char patchlevel[] = "Pathlevel 0"; /* $Log: rn.c,v $ * Revision 4.4 1991/09/09 20:27:37 sob --- 24,31 ----- * is at the user's own risk. */ ! static char rnid[] = "@(#)$Id: rn.c,v 4.4.1.1 1991/09/25 19:38:08 sob Exp sob $"; ! static char patchlevel[] = "Patchlevel 1"; /* $Log: rn.c,v $ * Revision 4.4.1.1 1991/09/25 19:38:08 sob *************** *** 28,33 static char patchlevel[] = "Pathlevel 0"; /* $Log: rn.c,v $ * Revision 4.4 1991/09/09 20:27:37 sob * release 4.4 * --- 28,36 ----- static char patchlevel[] = "Patchlevel 1"; /* $Log: rn.c,v $ + * Revision 4.4.1.1 1991/09/25 19:38:08 sob + * Updated patchlevel message + * * Revision 4.4 1991/09/09 20:27:37 sob * release 4.4 *