[net.sources.bugs] Rn bug patch #13

jonab@sdcrdcf.UUCP (Jonathan Biggar) (11/17/84)

System: rn version 4.1
Bug #: 13
Priority: MEDIUM
Subject: switch bugs
Index: sw.c
Prereq: 4.1
From: pur-ee!Physics:crl  (Charles LaBrec)

Description:
	In sw.c, in pr_switches(), the test to print +-/ should compare
	against %p/%c instead of %d/%c.

	The documentation says -1200 should be performed if the baud rate is
	1200 or less, but the code says 1200 or greater.

Fix:	From rn, say "| patch -d DIR", where DIR is your rn source directory.
	Outside of rn, say "cd DIR; patch <thisarticle".  If you don't have
	the patch program, apply the following by hand, or get patch.

*** /tmp/,RCSt1013469	Fri Oct 12 15:01:47 1984
--- /tmp/,RCSt2013469	Fri Oct 12 15:01:52 1984
***************
*** 1,4
! /* $Header: sw.c,v 4.1 84/09/24 12:10:21 lwall Exp $
   *
   * $Log:	sw.c,v $
   * Revision 4.1  84/09/24  12:10:21  lwall

--- 1,4 -----
! /* $Header: sw.c,v 4.1.1.2 84/10/12 12:34:44 lwall Exp $
   *
   * $Log:	sw.c,v $
   * Revision 4.1.1.2  84/10/12  12:34:44  lwall
***************
*** 1,6
  /* $Header: sw.c,v 4.1 84/09/24 12:10:21 lwall Exp $
   *
   * $Log:	sw.c,v $
   * Revision 4.1  84/09/24  12:10:21  lwall
   * Real baseline.
   * 

--- 1,13 -----
  /* $Header: sw.c,v 4.1.1.2 84/10/12 12:34:44 lwall Exp $
   *
   * $Log:	sw.c,v $
+  * Revision 4.1.1.2  84/10/12  12:34:44  lwall
+  * Fixed inverted baud-rate dependencies.
+  * Fixed -/ printing.
+  * 
+  * Revision 4.1.1.1  84/09/25  13:26:47  lwall
+  * Branch for sdcrdcf changes.
+  * 
   * Revision 4.1  84/09/24  12:10:21  lwall
   * Real baseline.
   * 
***************
*** 131,138
  #ifdef BAUDMOD
  	case '0': case '1': case '2': case '3': case '4':
  	case '5': case '6': case '7': case '8': case '9':
! 	    if (upordown ? (atoi(s) <= just_a_sec*10)
! 	    		 : (atoi(s) >= just_a_sec*10) ) {
  		while (isdigit(*s)) s++;
  		decode_switch(s);
  	    }

--- 138,145 -----
  #ifdef BAUDMOD
  	case '0': case '1': case '2': case '3': case '4':
  	case '5': case '6': case '7': case '8': case '9':
! 	    if (upordown ? (just_a_sec*10 <= atoi(s))
! 	    		 : (just_a_sec*10 >= atoi(s)) ) {
  		while (isdigit(*s)) s++;
  		decode_switch(s);
  	    }
***************
*** 330,336
      register int i;
      
      fputs("\nCurrent switch settings:\n",stdout);
!     printf("%c/ ", mp[strEQ(getval("SAVEDIR",SAVEDIR),"%d/%c")]);
      printf("%cc ", mp[checkflag]);
      printf("-C%d ", docheckwhen);
      printf("-d%s ", cwd);

--- 337,343 -----
      register int i;
      
      fputs("\nCurrent switch settings:\n",stdout);
!     printf("%c/ ", mp[strEQ(getval("SAVEDIR",SAVEDIR),"%p/%c")]);
      printf("%cc ", mp[checkflag]);
      printf("-C%d ", docheckwhen);
      printf("-d%s ", cwd);