🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #533

rn patch 47

#533
From: Stan Barber
Date: Tue, 15 May 1990 06:01
1047 lines
27474 bytes
Description:
	This is an official patch for rn 4.3. This is patch 47.

	If you need the other patches, you can get them via the Archive Server
	by sending mail to "archive-server@bcm.tmc.edu" with the subject line
	of the form "send public rn.XX.patch". Note that only patches 41 and
	later are available from this resource at this time.

	The fully patched rn kit is also available via anonymous ftp from
	lib.tmc.edu. Look in public/rn.

	This patch fixes the following problems:

signal.h is located in /usr/include/sys on some systems. Configure checks 
both possible locations to find what signal() returns.
Reported by lcz@sat.datapoint.com.

Pyramids do their own thing. Configure now adjusts for this.

XENIX 286 is better supported. Hopefully, this patch will settle these
problems once and for all. (naive, aren't I?)
Reported by bill@netagw.UUCP (Bill Aten)

Configure was confused on using socketdir or socketlib. It is now consistent.
Reported by tct!chip@uunet.uu.net (Chip Salzenberg)

A serious bug in calls to the add_newsgroup() function caused .newsrc to
get corrupted. It is now fixed.
Reported by scotth%harlie.corp@sgi.com

If rn started up and another rn is running for that user, the second rn
would exit and leave the tty in a bizarre state. This is now fixed.
Reported by glenn@mathcs.emory.edu (Glenn Barry)

The following enhancement has been added:

If you start rn with the -q flag, it will not ask you to add new newsgroups.
Suggested by geoff@utstat.toronto.edu.

Fix:
	cd to your rn source directory and patch away

[Note: This patched version of rn has been compiled and tested on the following
hardware: Sun 3/180 runnins SunOS 4.0.3, Vax 3600 running Ultrix 3.1,
HP9000-800 running HP-UX and SGI Personal IRIS running IRIX 3.2.1.]

Index: Configure
Prereq: 4.3.2.22
*** Configure	Sat May 12 13:48:52 1990
--- ../rn/Configure	Sat May 12 17:35:47 1990
***************
*** 3,9
  # If these # comments don't work, trim them.  Don't worry about the other
  # shell scripts, Configure will trim # comments from them for you.
  #
! # $Header: Configure,v 4.3.2.22 90/04/17 15:44:24 sob Exp $
  #
  # $Log:	Configure,v $
  # Revision 4.3.2.22  90/04/17  15:44:24  sob

--- 3,9 -----
  # If these # comments don't work, trim them.  Don't worry about the other
  # shell scripts, Configure will trim # comments from them for you.
  #
! # $Header: Configure,v 4.3.2.25 90/05/12 17:34:53 sob Exp $
  #
  # $Log:	Configure,v $
  # Revision 4.3.2.25  90/05/12  17:34:53  sob
***************
*** 6,11
  # $Header: Configure,v 4.3.2.22 90/04/17 15:44:24 sob Exp $
  #
  # $Log:	Configure,v $
  # Revision 4.3.2.22  90/04/17  15:44:24  sob
  # Added better directory structure detection.
  # 

--- 6,22 -----
  # $Header: Configure,v 4.3.2.25 90/05/12 17:34:53 sob Exp $
  #
  # $Log:	Configure,v $
+ # Revision 4.3.2.25  90/05/12  17:34:53  sob
+ # Still more XENIX fixes and fixes for using socketlib when rrn and not when
+ # just rn.
+ # 
+ # Revision 4.3.2.24  90/05/12  14:07:43  sob
+ # Fixed up LDFLAGS for xenix 286
+ # 
+ # Revision 4.3.2.23  90/05/04  00:42:31  sob
+ # Fixes for Pyramids, more on the return value of signal() and
+ # syncing up the use of socketlib.
+ # 
  # Revision 4.3.2.22  90/04/17  15:44:24  sob
  # Added better directory structure detection.
  # 
***************
*** 136,142
  termlib=''
  jobslib=''
  ndirlib=''
! socketdir=''
  dirtype=''
  dirinc=''
  libndir=''

--- 147,153 -----
  termlib=''
  jobslib=''
  ndirlib=''
! socketlib=''
  dirtype=''
  dirinc=''
  libndir=''
***************
*** 318,326
      echo "Your C library is in /lib/libc.a.  You're normal."
      libc=/lib/libc.a
  else
!     if test -f /usr/lib/libc.a; then
! 	echo "Your C library is in /usr/lib/libc.a, of all places."
! 	libc=/usr/lib/libc.a
      else
  	if test -f "$libc"; then
  	    echo "Your C library is in $libc, like you said before."

--- 329,337 -----
      echo "Your C library is in /lib/libc.a.  You're normal."
      libc=/lib/libc.a
  else
!     if test -f /lib/Llibc.a; then
! 	echo "Your C library is in /lib/Llibc.a.  I smell Xenix!"
! 	libc=/lib/Llibc.a
      else
  	if test -f /usr/lib/libc.a; then
  	    echo "Your C library is in /usr/lib/libc.a, of all places."
***************
*** 322,329
  	echo "Your C library is in /usr/lib/libc.a, of all places."
  	libc=/usr/lib/libc.a
      else
! 	if test -f "$libc"; then
! 	    echo "Your C library is in $libc, like you said before."
  	else
  	    cat <<'EOM'
   

--- 333,341 -----
  	echo "Your C library is in /lib/Llibc.a.  I smell Xenix!"
  	libc=/lib/Llibc.a
      else
! 	if test -f /usr/lib/libc.a; then
! 	    echo "Your C library is in /usr/lib/libc.a, of all places."
! 	    libc=/usr/lib/libc.a
  	else
  	    if test -f "$libc"; then
  		echo "Your C library is in $libc, like you said before."
***************
*** 325,331
  	if test -f "$libc"; then
  	    echo "Your C library is in $libc, like you said before."
  	else
! 	    cat <<'EOM'
   
  I can't seem to find your C library.  I've looked for /lib/libc.a and
  /usr/lib/libc.a, but neither of those are there.  What is the full name

--- 337,346 -----
  	    echo "Your C library is in /usr/lib/libc.a, of all places."
  	    libc=/usr/lib/libc.a
  	else
! 	    if test -f "$libc"; then
! 		echo "Your C library is in $libc, like you said before."
! 	    else
! 		cat <<'EOM'
   
  I can't seem to find your C library.  I've looked for /lib/libc.a and
  /usr/lib/libc.a, but neither of those are there.  What is the full name
***************
*** 333,338
  	    echo $n "of your C library? $c"
  	    . myread
  	    libc="$ans"
  	fi
      fi
  fi

--- 348,354 -----
  	    echo $n "of your C library? $c"
  	    . myread
  	    libc="$ans"
+ 	    fi
  	fi
      fi
  fi
***************
*** 509,515
  rm hp-ux.c
  if hp-ux; then
      echo "Hewlett-Packard must have built this..."
!     socketdir=-lbsdipc
  fi
  
  : check for sgi

--- 525,531 -----
  rm hp-ux.c
  if hp-ux; then
      echo "Hewlett-Packard must have built this..."
!     socketlib=-lbsdipc
  fi
  
  : check for sgi
***************
*** 528,534
      echo "Silicon Graphics must have built this..."
  	include=-I/usr/include/bsd
  	rrninclude="-I/usr/include/bsd -DUSG"
! 	socketdir=-lbsd
  fi
  
  : check for XENIX

--- 544,550 -----
      echo "Silicon Graphics must have built this..."
  	include=-I/usr/include/bsd
  	rrninclude="-I/usr/include/bsd -DUSG"
! 	socketlib=-lbsd
  fi
  
  : check for XENIX
***************
*** 546,552
  if xenix; then
      echo "Kinda looks like XENIX....hmmm"
  	rrninclude="-DUSG -DLAI_TCP"
! 	socketdir=-lsocket
  	sigret=void
  	rdchk=define
  	dirtype=dirent

--- 562,568 -----
  if xenix; then
      echo "Kinda looks like XENIX....hmmm"
  	rrninclude="-DUSG -DLAI_TCP"
! 	socketlib=-lsocket
  	sigret=void
  	rdchk=define
  	dirtype=dirent
***************
*** 554,559
  	rdchk=undef
  fi
  
  if bsd; then
      getuidgid=define
  else

--- 570,591 -----
  	rdchk=undef
  fi
  
+ : check for Pyramid OSx
+ cat <<'EOT' >pyr.c
+ #ifdef pyr
+ exit 0
+ #else
+ exit 1
+ #endif
+ EOT
+ $cpp pyr.c | grep exit >pyr
+ chmod 755 pyr
+ $eunicefix pyr
+ rm pyr.c
+ if pyr; then
+     echo "This looks like a Pyramid to me."
+ fi
+ 
  if bsd; then
      getuidgid=define
  else
***************
*** 1314,1320
  	$echo "Termlib library found."
  	;;
      *)
! 	ans=`loc libtermcap.a x /usr/lib /usr/local/lib /lib`
  	case "$ans" in
  	/usr/lib*|/lib*)
  	    termlib='-ltermcap'

--- 1346,1356 -----
  	$echo "Termlib library found."
  	;;
      *)
! 	if xenix; then
! 	    ans=/lib/Llibtermcap.a
! 	else
! 	    ans=`loc libtermcap.a x /usr/lib /usr/local/lib /lib`
! 	fi
  	case "$ans" in
  	/usr/lib*|/lib*)
  	    termlib='-ltermcap'
***************
*** 1365,1371
  : see if this is a termio system
  ultrix ; ultrix=$?
  sun ; sun=$?
! if $test -r /usr/include/termio.h -a $ultrix -ne 0 -a $sun -ne 0 ; then
        termio=define
        $echo "termio.h found."
    else

--- 1401,1408 -----
  : see if this is a termio system
  ultrix ; ultrix=$?
  sun ; sun=$?
! pyr ; pyr=$?
! if $test -r /usr/include/termio.h -a $ultrix -ne 0 -a $sun -ne 0 -a $pyr -ne 0; then
        termio=define
        $echo "termio.h found."
    else
***************
*** 1397,1403
  fi
  
  : see if the system has sigblock
! if $contains sigblock libc.list >/dev/null 2>&1 ; then
      $echo "sigblock() found."
      sigblock=define
  else

--- 1434,1440 -----
  fi
  
  : see if the system has sigblock
! if $contains sigblock.o libc.list >/dev/null 2>&1 ; then
      $echo "sigblock() found."
      sigblock=define
  else
***************
*** 1405,1411
  fi
  
  : see if the system has getwd
! if $contains getwd libc.list >/dev/null 2>&1 ; then
      $echo "getwd() found."
      getcwd=undef
  else

--- 1442,1448 -----
  fi
  
  : see if the system has getwd
! if $contains getwd.o libc.list >/dev/null 2>&1 ; then
      $echo "getwd() found."
      getcwd=undef
  else
***************
*** 1410,1416
      getcwd=undef
  else
  : see if the system has getcwd
! if $contains getcwd libc.list >/dev/null 2>&1 ; then
      $echo "getcwd() found."
      getcwd=define
  else

--- 1447,1453 -----
      getcwd=undef
  else
  : see if the system has getcwd
! if $contains getcwd.o libc.list >/dev/null 2>&1 ; then
      $echo "getcwd() found."
      getcwd=define
  else
***************
*** 1454,1459
  		sigret=void
  	fi
  fi
  $echo "signal() returns $sigret on this system"
  : see how we will look up site name
  douname=undef

--- 1491,1505 -----
  		sigret=void
  	fi
  fi
+ if [ -f /usr/include/sys/signal.h ]
+ then
+ 	WHITE='[	 ]'; : between the brackets are a tab and a space.
+ 	if grep "$WHITE*void$WHITE*(\*signal())();" \
+ 					/usr/include/sys/signal.h >/dev/null
+ 	then
+ 		sigret=void
+ 	fi
+ fi
  $echo "signal() returns $sigret on this system"
  : see how we will look up site name
  douname=undef
***************
*** 1542,1548
      if $test -d /lib/386 ; then
  	iandd="-M3e"
      else
! 	iandd="-M2let8 -LARGE"
      fi
  jobslib=-lx
  fi

--- 1588,1594 -----
      if $test -d /lib/386 ; then
  	iandd="-M3e"
      else
! 	iandd="-M2let8 -LARGE -F 3000"
      fi
  jobslib=-lx
  fi
***************
*** 1692,1698
      if $test -d /usr/include/NET-5000 ; then
  	$echo "I sense you are on a Unisys 5000 computer...poor soul."
  	rrninclude="-I/usr/include/NET-5000 -DEXCELAN -DUSG"
! 	socketdir=-lsocket
      fi
      ;;
  *) ;;

--- 1738,1744 -----
      if $test -d /usr/include/NET-5000 ; then
  	$echo "I sense you are on a Unisys 5000 computer...poor soul."
  	rrninclude="-I/usr/include/NET-5000 -DEXCELAN -DUSG"
! 	socketlib=-lsocket
      fi
      ;;
  *) ;;
***************
*** 2175,2180
  will tend to be slow.
  EOM
  fi
  
  $echo " "
  $echo "End of configuration questions."

--- 2221,2232 -----
  will tend to be slow.
  EOM
  fi
+ case "$isrrn" in
+ 	define) ;;
+ 	*) socketlib=""
+ 	   rrninclude=""
+ 	 ;;
+ esac
  
  $echo " "
  $echo "End of configuration questions."

Index: common.h
Prereq: 4.3.2.12
*** common.h	Sat May 12 13:48:56 1990
--- ../rn/common.h	Tue May  8 22:05:55 1990
***************
*** 1,4
! /* $Header: common.h,v 4.3.2.12 90/04/23 00:32:04 sob Exp $
   * 
   * $Log:	common.h,v $
   * Revision 4.3.2.12  90/04/23  00:32:04  sob

--- 1,4 -----
! /* $Header: common.h,v 4.3.2.13 90/05/08 22:05:37 sob Exp $
   * 
   * $Log:	common.h,v $
   * Revision 4.3.2.13  90/05/08  22:05:37  sob
***************
*** 1,6
  /* $Header: common.h,v 4.3.2.12 90/04/23 00:32:04 sob Exp $
   * 
   * $Log:	common.h,v $
   * Revision 4.3.2.12  90/04/23  00:32:04  sob
   * More cleanup.
   * 

--- 1,9 -----
  /* $Header: common.h,v 4.3.2.13 90/05/08 22:05:37 sob Exp $
   * 
   * $Log:	common.h,v $
+  * Revision 4.3.2.13  90/05/08  22:05:37  sob
+  * Added quick startup (-q) flag.
+  * 
   * Revision 4.3.2.12  90/04/23  00:32:04  sob
   * More cleanup.
   * 
***************
*** 790,795
  #ifdef VERIFY
      EXT bool verify INIT(FALSE);			/* -v */
  #endif
  
  #define NOMARKING 0
  #define STANDOUT 1

--- 793,799 -----
  #ifdef VERIFY
      EXT bool verify INIT(FALSE);			/* -v */
  #endif
+     EXT bool quickstart INIT(FALSE);			/* -q */
  
  #define NOMARKING 0
  #define STANDOUT 1

Index: Makefile.SH
Prereq: 4.3.2.9
*** Makefile.SH	Sat May 12 13:49:43 1990
--- ../rn/Makefile.SH	Fri May  4 23:58:11 1990
***************
*** 3,9
  esac
  echo "Extracting Makefile (with variable substitutions)"
  cat >Makefile <<!GROK!THIS!
! # $Header: Makefile.SH,v 4.3.2.9 90/04/23 00:27:12 sob Exp $
  #
  # $Log:	Makefile.SH,v $
  # Revision 4.3.2.9  90/04/23  00:27:12  sob

--- 3,9 -----
  esac
  echo "Extracting Makefile (with variable substitutions)"
  cat >Makefile <<!GROK!THIS!
! # $Header: Makefile.SH,v 4.3.2.10 90/05/04 00:44:51 sob Exp $
  #
  # $Log:	Makefile.SH,v $
  # Revision 4.3.2.10  90/05/04  00:44:51  sob
***************
*** 6,11
  # $Header: Makefile.SH,v 4.3.2.9 90/04/23 00:27:12 sob Exp $
  #
  # $Log:	Makefile.SH,v $
  # Revision 4.3.2.9  90/04/23  00:27:12  sob
  # Added better support for XENIX
  # 

--- 6,14 -----
  # $Header: Makefile.SH,v 4.3.2.10 90/05/04 00:44:51 sob Exp $
  #
  # $Log:	Makefile.SH,v $
+ # Revision 4.3.2.10  90/05/04  00:44:51  sob
+ # Added socketlib to list of libs.
+ # 
  # Revision 4.3.2.9  90/04/23  00:27:12  sob
  # Added better support for XENIX
  # 
***************
*** 58,64
  NDIRC = $ndirc
  NDIRO = $ndiro
  
! libs = $ndirlib $termlib $jobslib $socketdir
  !GROK!THIS!
  cat >>Makefile <<'!NO!SUBS!'
  #NNTPnntp=getactive

--- 61,67 -----
  NDIRC = $ndirc
  NDIRO = $ndiro
  
! libs = $ndirlib $termlib $jobslib $socketlib
  !GROK!THIS!
  cat >>Makefile <<'!NO!SUBS!'
  #NNTPnntp=getactive

Index: Pnews.SH
Prereq: 4.3.2.6
*** Pnews.SH	Sat May 12 13:49:23 1990
--- ../rn/Pnews.SH	Fri May  4 23:15:00 1990
***************
*** 4,10
  echo "Extracting Pnews (with variable substitutions)"
  $spitshell >Pnews <<!GROK!THIS!
  $startsh
! # $Header: Pnews.SH,v 4.3.2.6 90/04/21 16:53:43 sob Exp $
  #
  # $Log:	Pnews.SH,v $
  # Revision 4.3.2.6  90/04/21  16:53:43  sob

--- 4,10 -----
  echo "Extracting Pnews (with variable substitutions)"
  $spitshell >Pnews <<!GROK!THIS!
  $startsh
! # $Header: Pnews.SH,v 4.3.2.7 90/05/04 23:14:45 sob Exp $
  #
  # $Log:	Pnews.SH,v $
  # Revision 4.3.2.7  90/05/04  23:14:45  sob
***************
*** 7,12
  # $Header: Pnews.SH,v 4.3.2.6 90/04/21 16:53:43 sob Exp $
  #
  # $Log:	Pnews.SH,v $
  # Revision 4.3.2.6  90/04/21  16:53:43  sob
  # Corrected a typo pointed out by Bill Aken.
  # 

--- 7,15 -----
  # $Header: Pnews.SH,v 4.3.2.7 90/05/04 23:14:45 sob Exp $
  #
  # $Log:	Pnews.SH,v $
+ # Revision 4.3.2.7  90/05/04  23:14:45  sob
+ # Expires: line removed from Pnews.header.
+ # 
  # Revision 4.3.2.6  90/04/21  16:53:43  sob
  # Corrected a typo pointed out by Bill Aten.
  # 
***************
*** 8,14
  #
  # $Log:	Pnews.SH,v $
  # Revision 4.3.2.6  90/04/21  16:53:43  sob
! # Corrected a typo pointed out by Bill Aken.
  # 
  # Revision 4.3.2.5  89/12/17  01:53:48  sob
  # Changed from using ypcat to using ypmatch

--- 11,17 -----
  # Expires: line removed from Pnews.header.
  # 
  # Revision 4.3.2.6  90/04/21  16:53:43  sob
! # Corrected a typo pointed out by Bill Aten.
  # 
  # Revision 4.3.2.5  89/12/17  01:53:48  sob
  # Changed from using ypcat to using ypmatch
***************
*** 707,713
  From: $logname@$sitename ($fullname)
  Newsgroups: $ng
  Subject: $title
- Expires: 
  References: 
  Sender: 
  Followup-To: $follow

--- 710,715 -----
  From: $logname@$sitename ($fullname)
  Newsgroups: $ng
  Subject: $title
  References: 
  Sender: 
  Followup-To: $follow

Index: init.c
Prereq: 4.3.2.4
*** init.c	Sat May 12 13:48:52 1990
--- ../rn/init.c	Tue May  8 22:06:00 1990
***************
*** 1,4
! /* $Header: init.c,v 4.3.2.4 90/03/22 23:04:32 sob Exp $
   *
   * $Log:	init.c,v $
   * Revision 4.3.2.4  90/03/22  23:04:32  sob

--- 1,4 -----
! /* $Header: init.c,v 4.3.2.6 90/05/08 22:05:55 sob Exp $
   *
   * $Log:	init.c,v $
   * Revision 4.3.2.6  90/05/08  22:05:55  sob
***************
*** 1,6
  /* $Header: init.c,v 4.3.2.4 90/03/22 23:04:32 sob Exp $
   *
   * $Log:	init.c,v $
   * Revision 4.3.2.4  90/03/22  23:04:32  sob
   * Fixes provided by Wayne Davison <drivax!davison>
   * 

--- 1,13 -----
  /* $Header: init.c,v 4.3.2.6 90/05/08 22:05:55 sob Exp $
   *
   * $Log:	init.c,v $
+  * Revision 4.3.2.6  90/05/08  22:05:55  sob
+  * Added quick startup (-q) flag.
+  * 
+  * Revision 4.3.2.5  90/05/04  23:10:01  sob
+  * Fix for exiting "second" rn such that tty will be left in correct state.
+  * Provided by glenn@mathcs.emory.edu
+  * 
   * Revision 4.3.2.4  90/03/22  23:04:32  sob
   * Fixes provided by Wayne Davison <drivax!davison>
   * 
***************
*** 202,208
  
  #ifdef FINDNEWNG
      fstat(actfp->_file,&filestat);	/* did active file grow? */
!     if (filestat.st_size != lastactsiz) {
  	long actsiz = filestat.st_size;	/* remember new size */
  	NG_NUM oldnext = nextrcline;	/* remember # lines in newsrc */
  #ifdef FASTNEW

--- 209,219 -----
  
  #ifdef FINDNEWNG
      fstat(actfp->_file,&filestat);	/* did active file grow? */
! 	/*
! 	 * Skip this check if the -q flag was given.
! 	 */
! 	
!     if (!quickstart && filestat.st_size != lastactsiz) {
  	long actsiz = filestat.st_size;	/* remember new size */
  	NG_NUM oldnext = nextrcline;	/* remember # lines in newsrc */
  #ifdef FASTNEW
***************
*** 318,323
  #ifdef TERSE
  		    fputs("\nCan't start another.\n",stdout) FLUSH;
  #endif
  		exit(0);
  	    }
  	}

--- 329,336 -----
  #ifdef TERSE
  		    fputs("\nCan't start another.\n",stdout) FLUSH;
  #endif
+                if (bizarre)
+                  resetty();
  		exit(0);
  	    }
  	}

Index: newsgroups.SH
Prereq: 4.3.2.6
*** newsgroups.SH	Sat May 12 13:49:50 1990
--- ../rn/newsgroups.SH	Mon Apr 23 19:31:08 1990
***************
*** 4,10
  echo "Extracting newsgroups (with variable substitutions)"
  $spitshell >newsgroups <<!GROK!THIS!
  $startsh
! # $Header: newsgroups.SH,v 4.3.2.6 90/04/06 20:35:37 sob Exp $
  # 
  # $Log:	newsgroups.SH,v $
  # Revision 4.3.2.6  90/04/06  20:35:37  sob

--- 4,10 -----
  echo "Extracting newsgroups (with variable substitutions)"
  $spitshell >newsgroups <<!GROK!THIS!
  $startsh
! # $Header: newsgroups.SH,v 4.3.2.7 90/04/23 19:30:41 sob Exp $
  # 
  # $Log:	newsgroups.SH,v $
  # Revision 4.3.2.7  90/04/23  19:30:41  sob
***************
*** 7,12
  # $Header: newsgroups.SH,v 4.3.2.6 90/04/06 20:35:37 sob Exp $
  # 
  # $Log:	newsgroups.SH,v $
  # Revision 4.3.2.6  90/04/06  20:35:37  sob
  # Added fixes for SCO Xenix sent by ronald@robobar.co.uk.
  # 

--- 7,16 -----
  # $Header: newsgroups.SH,v 4.3.2.7 90/04/23 19:30:41 sob Exp $
  # 
  # $Log:	newsgroups.SH,v $
+ # Revision 4.3.2.7  90/04/23  19:30:41  sob
+ # Extra space removed to make second part of newsgroups work.
+ # Sigh.
+ # 
  # Revision 4.3.2.6  90/04/06  20:35:37  sob
  # Added fixes for SCO Xenix sent by ronald@robobar.co.uk.
  # 
***************
*** 79,85
  $echo ""
  $echo "Unsubscribed but mentioned in .newsrc:"
  $sed -n < \$dotdir/.newsrc \\
- 
  	-e "/\$1.*!/"'s/^\([^!]*\)!.*\$/\1/p' | \\
  $sort | \$pager
  !GROK!THIS!

--- 83,88 -----
  $echo ""
  $echo "Unsubscribed but mentioned in .newsrc:"
  $sed -n < \$dotdir/.newsrc \\
  	-e "/\$1.*!/"'s/^\([^!]*\)!.*\$/\1/p' | \\
  $sort | \$pager
  !GROK!THIS!

Index: rcstuff.c
Prereq: 4.3.2.4
*** rcstuff.c	Sat May 12 13:49:16 1990
--- ../rn/rcstuff.c	Fri May  4 00:44:29 1990
***************
*** 1,4
! /* $Header: rcstuff.c,v 4.3.2.4 90/04/23 00:25:45 sob Exp $
   *
   * $Log:	rcstuff.c,v $
   * Revision 4.3.2.4  90/04/23  00:25:45  sob

--- 1,4 -----
! /* $Header: rcstuff.c,v 4.3.2.5 90/05/04 00:44:07 sob Exp $
   *
   * $Log:	rcstuff.c,v $
   * Revision 4.3.2.5  90/05/04  00:44:07  sob
***************
*** 1,6
  /* $Header: rcstuff.c,v 4.3.2.4 90/04/23 00:25:45 sob Exp $
   *
   * $Log:	rcstuff.c,v $
   * Revision 4.3.2.4  90/04/23  00:25:45  sob
   * Changed atoi to atol.
   * 

--- 1,9 -----
  /* $Header: rcstuff.c,v 4.3.2.5 90/05/04 00:44:07 sob Exp $
   *
   * $Log:	rcstuff.c,v $
+  * Revision 4.3.2.5  90/05/04  00:44:07  sob
+  * Fixes to add_newsgroup() from lar@usl.edu.
+  * 
   * Revision 4.3.2.4  90/04/23  00:25:45  sob
   * Changed atoi to atol.
   * 
***************
*** 321,327
  #ifdef SERVER
  	if (addnewbydefault) {
  		printf("(Adding %s to end of your .newsrc)\n", ngname);
! 	        ng = add_newsgroup(ngname);
  	        do_reloc = FALSE;
  	} else {
  #endif SERVER

--- 324,330 -----
  #ifdef SERVER
  	if (addnewbydefault) {
  		printf("(Adding %s to end of your .newsrc)\n", ngname);
! 	        ng = add_newsgroup(ngname, ':');
  	        do_reloc = FALSE;
  	} else {
  #endif SERVER
***************
*** 367,373
  	"(I'll add all new newsgroups to the end of your .newsrc.)\n", stdout);
  	    addnewbydefault = 1;
  	    printf("(Adding %s to end of your .newsrc)\n", ngname);
! 	    ng = add_newsgroup(ngname);
  	    do_reloc = FALSE;
  	}
  #endif SERVER

--- 370,376 -----
  	"(I'll add all new newsgroups to the end of your .newsrc.)\n", stdout);
  	    addnewbydefault = 1;
  	    printf("(Adding %s to end of your .newsrc)\n", ngname);
! 	    ng = add_newsgroup(ngname, ':');
  	    do_reloc = FALSE;
  	}
  #endif SERVER

Index: rn.c
*** rn.c	Sat May 12 13:49:24 1990
--- ../rn/rn.c	Sat May 12 16:43:47 1990
***************
*** 10,16
  */
  
  static char rnid[] = "@(#)$Header: rn.c,v 4.3.2.4 90/04/03 23:11:33 sob Exp $";
! static char patchlevel[] = "Patch #: 46";
  
  /* $Log:	rn.c,v $
   * Revision 4.3.2.4  90/04/03  23:11:33  sob

--- 10,16 -----
  */
  
  static char rnid[] = "@(#)$Header: rn.c,v 4.3.2.4 90/04/03 23:11:33 sob Exp $";
! static char patchlevel[] = "Patch #: 47";
  
  /* $Log:	rn.c,v $
   * Revision 4.3.2.4  90/04/03  23:11:33  sob

Index: sw.c
Prereq: 4.3.2.2
*** sw.c	Sat May 12 13:49:26 1990
--- ../rn/sw.c	Tue May  8 22:06:06 1990
***************
*** 1,4
! /* $Header: sw.c,v 4.3.2.2 90/03/22 23:05:34 sob Exp $
   *
   * $Log:	sw.c,v $
   * Revision 4.3.2.2  90/03/22  23:05:34  sob

--- 1,4 -----
! /* $Header: sw.c,v 4.3.2.3 90/05/08 22:06:00 sob Exp $
   *
   * $Log:	sw.c,v $
   * Revision 4.3.2.3  90/05/08  22:06:00  sob
***************
*** 1,6
  /* $Header: sw.c,v 4.3.2.2 90/03/22 23:05:34 sob Exp $
   *
   * $Log:	sw.c,v $
   * Revision 4.3.2.2  90/03/22  23:05:34  sob
   * Fixes provided by Wayne Davison <drivax!davison>
   * 

--- 1,9 -----
  /* $Header: sw.c,v 4.3.2.3 90/05/08 22:06:00 sob Exp $
   *
   * $Log:	sw.c,v $
+  * Revision 4.3.2.3  90/05/08  22:06:00  sob
+  * Added quick startup (-q) flag.
+  * 
   * Revision 4.3.2.2  90/03/22  23:05:34  sob
   * Fixes provided by Wayne Davison <drivax!davison>
   * 
***************
*** 357,362
  	    notincl("-v");
  #endif
  	    break;
  	default:
  #ifdef VERBOSE
  	    IF(verbose)

--- 360,371 -----
  	    notincl("-v");
  #endif
  	    break;
+ 	/*
+ 	 * People want a way to avoid checking for new newsgroups on startup.
+ 	 */
+ 	case 'q':
+ 		quickstart = upordown;
+ 		break;
  	default:
  #ifdef VERBOSE
  	    IF(verbose)

Index: rn.1
Prereq: 4.3.1.8
*** rn.1	Sat May 12 13:48:44 1990
--- ../rn/rn.1	Tue May  8 22:05:31 1990
***************
*** 1,4
! ''' $Header: rn.1,v 4.3.1.8 90/03/17 17:09:56 sob Exp $
  ''' 
  ''' $Log:	rn.1,v $
  ''' Revision 4.3.1.8  90/03/17  17:09:56  sob

--- 1,4 -----
! ''' $Header: rn.1,v 4.3.1.9 90/05/08 22:05:11 sob Exp $
  ''' 
  ''' $Log:	rn.1,v $
  ''' Revision 4.3.1.9  90/05/08  22:05:11  sob
***************
*** 1,6
  ''' $Header: rn.1,v 4.3.1.8 90/03/17 17:09:56 sob Exp $
  ''' 
  ''' $Log:	rn.1,v $
  ''' Revision 4.3.1.8  90/03/17  17:09:56  sob
  ''' 
  ''' added documentation for MODSTRING and NOPOSTRING.

--- 1,9 -----
  ''' $Header: rn.1,v 4.3.1.9 90/05/08 22:05:11 sob Exp $
  ''' 
  ''' $Log:	rn.1,v $
+ ''' Revision 4.3.1.9  90/05/08  22:05:11  sob
+ ''' Added documentation for new -q flag
+ ''' 
  ''' Revision 4.3.1.8  90/03/17  17:09:56  sob
  ''' 
  ''' added documentation for MODSTRING and NOPOSTRING.
***************
*** 5,13
  ''' 
  ''' added documentation for MODSTRING and NOPOSTRING.
  ''' 
- ''' Revision 4.3.1.8  89/12/20  02:00:00 tale
- ''' Added documentation for MODSTRING and new NOPOSTRING
- '''
  ''' Revision 4.3.1.7  89/11/28  00:28:10  sob
  ''' Changed some usages of "say" and "saying" to "type" and "typing"
  ''' 

--- 8,13 -----
  ''' 
  ''' added documentation for MODSTRING and NOPOSTRING.
  ''' 
  ''' Revision 4.3.1.7  89/11/28  00:28:10  sob
  ''' Changed some usages of "say" and "saying" to "type" and "typing"
  ''' 
***************
*** 947,952
  forces normal (non-mailbox) format in creating new save files.
  Ordinarily you are asked which format you want.
  .TP 5
  .B \-r
  causes
  .I rn

--- 947,956 -----
  forces normal (non-mailbox) format in creating new save files.
  Ordinarily you are asked which format you want.
  .TP 5
+ .B \-q
+ bypasses the automatic check for new newsgroups when starting 
+ .I rn.
+ .TP 5
  .B \-r
  causes
  .I rn
***************
*** 1656,1661
  that it should gobble up one character after the F.
  .SH AUTHOR
  Larry Wall <lwall@jpl-devvax.jpl.nasa.gov>
  .br
  Regular expression routines are borrowed from emacs, by James Gosling.
  .SH FILES

--- 1660,1667 -----
  that it should gobble up one character after the F.
  .SH AUTHOR
  Larry Wall <lwall@jpl-devvax.jpl.nasa.gov>
+ .br
+ Stan Barber <sob@bcm.tmc.edu>
  .br
  Regular expression routines are borrowed from emacs, by James Gosling.
  .SH FILES

Index: patchlevel
Prereq: 46
*** patchlevel	Sat May 12 13:48:53 1990
--- ../rn/patchlevel	Sat May 12 16:43:47 1990
***************
*** 1,2
! Patch #: 46
  

--- 1,2 -----
! Patch #: 47
  
Technical Details
Message-ID: <401@lib.tmc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.bugs.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!njin!rutgers!cs.utexas.edu!lib!lib.tmc.edu

Show Full Headers
Complete Article Headers
Message-ID: <401@lib.tmc.edu>
Subject: rn patch 47
Date: Tue, 15 May 1990 06:01:22 +0000
From: rrn@lib.tmc.edu (Stan Barber)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.bugs.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!njin!rutgers!cs.utexas.edu!lib!lib.tmc.edu
Newsgroups: comp.sources.bugs,news.software.nntp,news.software.b
Keywords: RN PATCH 47 NNTP NET NEWS USENET
Sender: sob@lib.tmc.edu
Followup-To: poster
Organization: Houston Academy of Medicine/Texas Medical Center Library
Lines: 1046
Posted: Tue May 15 07:01:22 1990