Article View: news.software.nntp
Article #520RN Patch #46
From: Stan Barber
Date: Mon, 23 Apr 1990 07:30
Date: Mon, 23 Apr 1990 07:30
2169 lines
57214 bytes
57214 bytes
Description:
This is an official patch for rn 4.3. This is patch 46.
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:
Sed on some systems takes only 9 wfiles. System V sed and BSD sed don't
support the exact same syntax. newsetup and newsgroups have been changed to
accomodate these problems.
Reported by evanh@sco.com (Evan A.C. Hunt), and eggert@twinsun.com.
Changes to Configure:
SIGRET is now determined using grep on /usr/include/signal.h. Crude,
but effective.
Suggested by Adri Verhoef <a3@rivm.UUCP>
SCO XENIX on 386s is now fully supported. 286 support was added but
not tested fully.
Patches supplied by Evan A.C. Hunt <evanh@sco.com>
Support for direct/dirent directory structures improved.
Suggested by kucharsk@Solbourne.COM (William Kucharski)
Fixed spelling error in Pnews.
Reported by Bill Aten <aten@afcsa.af.mil>
Modified a fix in patch 45 to keep artline from decrementing below 0.
Reported by Ronald S H Khoo <ronald@robobar.co.uk>
Modified the default CANCELHEADER to put some text in the message to keep
CNEWS quiet.
Reported by Ronald S H Khoo <ronald@robobar.co.uk>
Added better support from XENIX (and possibly ANSI C) to makedepend.SH.
Fix:
cd to your rn source directory and patch away
[Note: This patched version of rn has been compiled and tested on the following
hardwre: Sun 3/180 runnins SunOS 4.0.3, Solbourne 5/601 running OS/MP 4.0C,
Vax 3600 running Ultrix 3.1, Wyse 386 running SCO Xenix 2.3.2, HP9000-800
running HP-UX, SGI Personal IRIS running IRIX 3.2.1 and Unisys 5000/50 running
OS release 2.01]
Index: Configure
Prereq: 4.3.2.21
*** Configure Mon Apr 23 00:09:58 1990
--- ../rn/Configure Mon Apr 23 00:08:56 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.21 90/04/14 19:36:38 sob Exp $
#
# $Log: Configure,v $
# Revision 4.3.2.21 90/04/14 19:36:38 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.22 90/04/17 15:44:24 sob Exp $
#
# $Log: Configure,v $
# Revision 4.3.2.22 90/04/17 15:44:24 sob
***************
*** 6,11
# $Header: Configure,v 4.3.2.21 90/04/14 19:36:38 sob Exp $
#
# $Log: Configure,v $
# Revision 4.3.2.21 90/04/14 19:36:38 sob
# Added better support for the NeXT.
#
--- 6,14 -----
# $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.
+ #
# Revision 4.3.2.21 90/04/14 19:36:38 sob
# Added better support for the NeXT.
#
***************
*** 135,140
ndirlib=''
socketdir=''
dirtype=''
libndir=''
usendir=''
ndirc=''
--- 138,144 -----
ndirlib=''
socketdir=''
dirtype=''
+ dirinc=''
libndir=''
usendir=''
ndirc=''
***************
*** 301,307
EOH
echo $n "[Type carriage return to continue] $c"
. myread
-
: get old answers, if there is a config file out there
if test -f config.sh; then
echo " "
--- 305,310 -----
EOH
echo $n "[Type carriage return to continue] $c"
. myread
: get old answers, if there is a config file out there
if test -f config.sh; then
echo " "
***************
*** 388,395
fi
chmod 755 bsd usg v7 eunice
$eunicefix bsd usg v7 eunice
- : define sigret as int
- sigret=int
: see how we invoke the C preprocessor
echo " "
echo "Checking to see how your C preprocessor is invoked..."
--- 391,396 -----
fi
chmod 755 bsd usg v7 eunice
$eunicefix bsd usg v7 eunice
: see how we invoke the C preprocessor
echo " "
echo "Checking to see how your C preprocessor is invoked..."
***************
*** 419,425
if $contains 'abc +xyz' testcpp.out >/dev/null 2>&1 ; then
echo "Found it! You're on a NeXT, aren't you?"
cpp='/lib/cpp'
- sigret=void
else
echo 'Hmm...maybe you already told me...'
case "$cpp" in
--- 420,425 -----
if $contains 'abc +xyz' testcpp.out >/dev/null 2>&1 ; then
echo "Found it! You're on a NeXT, aren't you?"
cpp='/lib/cpp'
else
echo 'Hmm...maybe you already told me...'
case "$cpp" in
***************
*** 445,452
fi
fi
rm -f testcpp.c testcpp.out
- : define getcwd as undef
- getcwd=undef
: check for pdp11
echo " "
cat <<'EOT' >pdp11.c
--- 445,450 -----
fi
fi
rm -f testcpp.c testcpp.out
: check for pdp11
echo " "
cat <<'EOT' >pdp11.c
***************
*** 462,469
rm pdp11.c
if pdp11; then
echo "This looks like a pdp11 to me."
- else
- echo "This doesn't look like a pdp11 to me."
fi
: check for ultrix
cat <<'EOT' >ultrix.c
--- 460,465 -----
rm pdp11.c
if pdp11; then
echo "This looks like a pdp11 to me."
fi
: check for ultrix
cat <<'EOT' >ultrix.c
***************
*** 479,485
rm ultrix.c
if ultrix; then
echo "Running ultrix, eh?"
- sigret=void
fi
: check for sun 4.0
--- 475,480 -----
rm ultrix.c
if ultrix; then
echo "Running ultrix, eh?"
fi
: check for sun 4.0
***************
*** 497,504
if sun; then
echo "This looks like a sun to me."
if test -f /etc/ld.so.cache ; then
! echo "And it appears your are running SunOS 4.0 or greater."
! sigret=void
fi
fi
: check for hp-ux
--- 492,498 -----
if sun; then
echo "This looks like a sun to me."
if test -f /etc/ld.so.cache ; then
! echo "And it appears you are running SunOS 4.0 or greater."
fi
fi
: check for hp-ux
***************
*** 515,521
rm hp-ux.c
if hp-ux; then
echo "Hewlett-Packard must have built this..."
- getcwd=define
socketdir=-lbsdipc
if grep 'void[ ]*(\*signal' /usr/include/sys/signal.h >/dev/null; then
echo "And it's a modern version!"
--- 509,514 -----
rm hp-ux.c
if hp-ux; then
echo "Hewlett-Packard must have built this..."
socketdir=-lbsdipc
fi
***************
*** 517,526
echo "Hewlett-Packard must have built this..."
getcwd=define
socketdir=-lbsdipc
- if grep 'void[ ]*(\*signal' /usr/include/sys/signal.h >/dev/null; then
- echo "And it's a modern version!"
- sigret=void
- fi
fi
: check for sgi
--- 510,515 -----
if hp-ux; then
echo "Hewlett-Packard must have built this..."
socketdir=-lbsdipc
fi
: check for sgi
***************
*** 537,543
rm sgi.c
if sgi; then
echo "Silicon Graphics must have built this..."
- sigret=void
include=-I/usr/include/bsd
rrninclude="-I/usr/include/bsd -DUSG"
socketdir=-lbsd
--- 526,531 -----
rm sgi.c
if sgi; then
echo "Silicon Graphics must have built this..."
include=-I/usr/include/bsd
rrninclude="-I/usr/include/bsd -DUSG"
socketdir=-lbsd
***************
*** 543,548
socketdir=-lbsd
fi
if bsd; then
getuidgid=define
else
--- 531,559 -----
socketdir=-lbsd
fi
+ : check for XENIX
+ cat <<'EOT' >xenix.c
+ #ifdef M_XENIX
+ exit 0
+ #else
+ exit 1
+ #endif
+ EOT
+ $cpp xenix.c | grep exit >xenix
+ chmod 755 xenix
+ $eunicefix xenix
+ rm xenix.c
+ if xenix; then
+ echo "Kinda looks like XENIX....hmmm"
+ rrninclude="-DUSG -DLAI_TCP"
+ socketdir=-lsocket
+ sigret=void
+ rdchk=define
+ dirtype=dirent
+ else
+ rdchk=undef
+ fi
+
if bsd; then
getuidgid=define
else
***************
*** 1343,1349
esac
;;
esac
- $rm -f grimble
: see if there is a whoami file
if $test -r /usr/include/whoami.h ; then
whoami=define
--- 1354,1359 -----
esac
;;
esac
: see if there is a whoami file
if $test -r /usr/include/whoami.h ; then
whoami=define
***************
*** 1394,1403
sigblock=undef
fi
! : see if the system has rdchk
! if $contains rdchk libc.list >/dev/null 2>&1 ; then
! $echo "rdchk() found."
! rdchk=define
else
rdchk=undef
fi
--- 1404,1413 -----
sigblock=undef
fi
! : see if the system has getwd
! if $contains getwd libc.list >/dev/null 2>&1 ; then
! $echo "getwd() found."
! getcwd=undef
else
: see if the system has getcwd
if $contains getcwd libc.list >/dev/null 2>&1 ; then
***************
*** 1399,1405
$echo "rdchk() found."
rdchk=define
else
! rdchk=undef
fi
: see if there is a vfork
--- 1409,1420 -----
$echo "getwd() found."
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
! getcwd=undef
fi
fi
***************
*** 1401,1406
else
rdchk=undef
fi
: see if there is a vfork
if $contains vfork.o libc.list >/dev/null 2>&1 ; then
--- 1416,1422 -----
else
getcwd=undef
fi
+ fi
: see if there is a vfork
if $contains vfork.o libc.list >/dev/null 2>&1 ; then
***************
*** 1426,1431
fi
fi
: see how we will look up site name
douname=undef
gethostname=undef
--- 1442,1460 -----
fi
fi
+ : default
+ sigret=int
+ : determine type of signal function
+ if [ -f /usr/include/signal.h ]
+ then
+ WHITE='[ ]'; : between the brackets are a tab and a space.
+ if grep "$WHITE*void$WHITE*(\*signal())();" \
+ /usr/include/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
gethostname=undef
***************
*** 1508,1513
normsig=define
jobslib=''
fi
: see if there are directory access routines out there
if $test -r /usr/lib/libndir.a || $test -r /usr/local/lib/libndir.a ; then
$echo "Ndir library found."
--- 1537,1551 -----
normsig=define
jobslib=''
fi
+ : set the right options for cc and include the x library for XENIX
+ if xenix; then
+ if $test -d /lib/386 ; then
+ iandd="-M3e"
+ else
+ iandd="-M2let8 -LARGE"
+ fi
+ jobslib=-lx
+ fi
: see if there are directory access routines out there
if $test -r /usr/lib/libndir.a || $test -r /usr/local/lib/libndir.a ; then
$echo "Ndir library found."
***************
*** 1531,1536
ndiro=''
if sgi ; then
dirtype=direct
$echo "Using direct directory structure."
else
if $test -r /usr/include/sys/dirent.h ; then
--- 1569,1575 -----
ndiro=''
if sgi ; then
dirtype=direct
+ dirinc="<sys/dir.h>"
$echo "Using direct directory structure."
else
if $test -r /usr/include/dirent.h ; then
***************
*** 1533,1539
dirtype=direct
$echo "Using direct directory structure."
else
! if $test -r /usr/include/sys/dirent.h ; then
$echo "Using dirent directory structure."
dirtype=dirent
else
--- 1572,1578 -----
dirinc="<sys/dir.h>"
$echo "Using direct directory structure."
else
! if $test -r /usr/include/dirent.h ; then
$echo "Using dirent directory structure."
dirtype=dirent
dirinc="<dirent.h>"
***************
*** 1536,1541
if $test -r /usr/include/sys/dirent.h ; then
$echo "Using dirent directory structure."
dirtype=dirent
else
$echo "Using direct directory structure."
dirtype=direct
--- 1575,1581 -----
if $test -r /usr/include/dirent.h ; then
$echo "Using dirent directory structure."
dirtype=dirent
+ dirinc="<dirent.h>"
else
$echo "Using direct directory structure."
dirtype=direct
***************
*** 1539,1544
else
$echo "Using direct directory structure."
dirtype=direct
fi
fi
else
--- 1579,1585 -----
else
$echo "Using direct directory structure."
dirtype=direct
+ dirinc="<sys/dir.h>"
fi
fi
else
***************
*** 2316,2322
#$getcwd GETCWD /* do we have getcwd()? */
#$usendir USENDIR /* include ndir.c? */
#$libndir LIBNDIR /* include /usr/include/ndir.h? */
- #ifndef USENDIR
#define DIRTYPE $dirtype
#endif
#$mininact MININACT /* include 2.10.2 optimization? */
--- 2357,2362 -----
#$getcwd GETCWD /* do we have getcwd()? */
#$usendir USENDIR /* include ndir.c? */
#$libndir LIBNDIR /* include /usr/include/ndir.h? */
#define DIRTYPE $dirtype
#ifndef USENDIR
#define DIRINC $dirinc
***************
*** 2318,2323
#$libndir LIBNDIR /* include /usr/include/ndir.h? */
#ifndef USENDIR
#define DIRTYPE $dirtype
#endif
#$mininact MININACT /* include 2.10.2 optimization? */
#$portable PORTABLE /* do we do extra lookups to start up? */
--- 2358,2365 -----
#$usendir USENDIR /* include ndir.c? */
#$libndir LIBNDIR /* include /usr/include/ndir.h? */
#define DIRTYPE $dirtype
+ #ifndef USENDIR
+ #define DIRINC $dirinc
#endif
#$mininact MININACT /* include 2.10.2 optimization? */
#$portable PORTABLE /* do we do extra lookups to start up? */
Index: Makefile.SH
Prereq: 4.3.2.8
*** Makefile.SH Mon Apr 23 00:11:05 1990
--- ../rn/Makefile.SH Mon Apr 23 00:27:23 1990
***************
*** 3,9
esac
echo "Extracting Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
! # $Header: Makefile.SH,v 4.3.2.8 89/12/20 23:20:14 sob Exp $
#
# $Log: Makefile.SH,v $
# Revision 4.3.2.8 89/12/20 23:20:14 sob
--- 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
***************
*** 6,11
# $Header: Makefile.SH,v 4.3.2.8 89/12/20 23:20:14 sob Exp $
#
# $Log: Makefile.SH,v $
# Revision 4.3.2.8 89/12/20 23:20:14 sob
# Added "hp-ux" to the list of files created by Configure.
#
--- 6,14 -----
# $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
+ #
# Revision 4.3.2.8 89/12/20 23:20:14 sob
# Added "hp-ux" to the list of files created by Configure.
#
***************
*** 95,101
add2 = bsd config.h config.sh eunice filexp
add3 = loc makedepend makedir mbox.saver newsetup
add4 = newsgroups newsnews ng.help norm.saver pager.help
! add5 = pdp11 rn subs.help usg v7 ultrix sun hp-ux sgi server.h
addedbyconf = $(add1) $(add2) $(add3) $(add4) $(add5)
--- 98,104 -----
add2 = bsd config.h config.sh eunice filexp
add3 = loc makedepend makedir mbox.saver newsetup
add4 = newsgroups newsnews ng.help norm.saver pager.help
! add5 = pdp11 rn subs.help usg v7 ultrix sun hp-ux sgi xenix server.h
addedbyconf = $(add1) $(add2) $(add3) $(add4) $(add5)
Index: Pnews.SH
Prereq: 4.3.2.5
*** Pnews.SH Mon Apr 23 00:10:41 1990
--- ../rn/Pnews.SH Sat Apr 21 16:54:07 1990
***************
*** 4,10
echo "Extracting Pnews (with variable substitutions)"
$spitshell >Pnews <<!GROK!THIS!
$startsh
! # $Header: Pnews.SH,v 4.3.2.5 89/12/17 01:53:48 sob Exp $
#
# $Log: Pnews.SH,v $
# Revision 4.3.2.5 89/12/17 01:53:48 sob
--- 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
***************
*** 7,12
# $Header: Pnews.SH,v 4.3.2.5 89/12/17 01:53:48 sob Exp $
#
# $Log: Pnews.SH,v $
# Revision 4.3.2.5 89/12/17 01:53:48 sob
# Changed from using ypcat to using ypmatch
#
--- 7,15 -----
# $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.
+ #
# Revision 4.3.2.5 89/12/17 01:53:48 sob
# Changed from using ypcat to using ypmatch
#
***************
*** 236,242
world.*|comp.*|news.*|sci.*|rec.*|misc.*|soc.*|talk.*|alt.*)
$cat <<'EOM'
This program posts news to thousands of machines throughout the entire
! civilized world. You message will cost the net hundreds if not thousands of
dollars to send everywhere. Please be sure you know what you are doing.
EOM
--- 239,245 -----
world.*|comp.*|news.*|sci.*|rec.*|misc.*|soc.*|talk.*|alt.*)
$cat <<'EOM'
This program posts news to thousands of machines throughout the entire
! civilized world. Your message will cost the net hundreds if not thousands of
dollars to send everywhere. Please be sure you know what you are doing.
EOM
***************
*** 702,708
$cat > $tmpart <<EOHeader
From: $logname@$sitename ($fullname)
- #NORMALPath: $sitename!$logname
Newsgroups: $ng
Subject: $title
Expires:
--- 705,710 -----
$cat > $tmpart <<EOHeader
From: $logname@$sitename ($fullname)
Newsgroups: $ng
Subject: $title
Expires:
Index: art.c
Prereq: 4.3.2.2
*** art.c Mon Apr 23 00:10:29 1990
--- ../rn/art.c Sat Apr 21 16:44:07 1990
***************
*** 1,4
! /* $Header: art.c,v 4.3.2.2 90/03/22 23:03:25 sob Exp $
*
* $Log: art.c,v $
* Revision 4.3.2.2 90/03/22 23:03:25 sob
--- 1,4 -----
! /* $Header: art.c,v 4.3.2.3 90/04/21 14:43:27 sob Exp $
*
* $Log: art.c,v $
* Revision 4.3.2.3 90/04/21 14:43:27 sob
***************
*** 1,6
/* $Header: art.c,v 4.3.2.2 90/03/22 23:03:25 sob Exp $
*
* $Log: art.c,v $
* Revision 4.3.2.2 90/03/22 23:03:25 sob
* Fixes provided by Wayne Davison <drivax!davison>
*
--- 1,9 -----
/* $Header: art.c,v 4.3.2.3 90/04/21 14:43:27 sob Exp $
*
* $Log: art.c,v $
+ * Revision 4.3.2.3 90/04/21 14:43:27 sob
+ * Revised previous patch insure that it does not decrement below zero.
+ *
* Revision 4.3.2.2 90/03/22 23:03:25 sob
* Fixes provided by Wayne Davison <drivax!davison>
*
***************
*** 141,147
if (firstline) {
interp(art_buf, (sizeof art_buf), firstline);
#ifdef CLEAREOL
! maybe_eol(); /* PWP */
#endif CLEAREOL
fputs(art_buf,stdout) FLUSH;
artopen(art); /* rewind article in case interp */
--- 144,150 -----
if (firstline) {
interp(art_buf, (sizeof art_buf), firstline);
#ifdef CLEAREOL
! maybe_eol();
#endif CLEAREOL
fputs(art_buf,stdout) FLUSH;
artopen(art); /* rewind article in case interp */
***************
*** 151,157
ART_NUM i;
#ifdef CLEAREOL
! maybe_eol(); /* PWP */
#endif CLEAREOL
printf("Article %ld",(long)art);
i = (((ART_NUM)toread[ng]) - 1 + was_read(art));
--- 154,160 -----
ART_NUM i;
#ifdef CLEAREOL
! maybe_eol();
#endif CLEAREOL
printf("Article %ld",(long)art);
i = (((ART_NUM)toread[ng]) - 1 + was_read(art));
***************
*** 261,267
s = art_buf + 8;
*s++ = '\0'; /* make into 2 strings */
#ifdef CLEAREOL
! maybe_eol(); /* PWP */
#endif CLEAREOL
fputs(art_buf,stdout) FLUSH;
/* print up through : */
--- 264,270 -----
s = art_buf + 8;
*s++ = '\0'; /* make into 2 strings */
#ifdef CLEAREOL
! maybe_eol();
#endif CLEAREOL
fputs(art_buf,stdout) FLUSH;
/* print up through : */
***************
*** 303,309
#ifdef INNERSEARCH
if (outputok)
#endif
! maybe_eol(); /* PWP */
#endif CLEAREOL
#ifdef CUSTOMLINES
if (pagestop && bufptr == art_buf &&
--- 306,312 -----
#ifdef INNERSEARCH
if (outputok)
#endif
! maybe_eol();
#endif CLEAREOL
#ifdef CUSTOMLINES
if (pagestop && bufptr == art_buf &&
***************
*** 460,466
/* #ifdef INNERSEARCH
if (outputok)
#endif
! maybe_eol(); */ /* PWP *//* comment this out for now
until I am sure it is
needed*/
--- 463,469 -----
/* #ifdef INNERSEARCH
if (outputok)
#endif
! maybe_eol(); */ /* comment this out for now
until I am sure it is
needed*/
***************
*** 556,562
#ifndef CLEAREOL
erase_eol(); /* and erase the prompt */
#else
! if (erase_screen && can_home_clear) /* PWP was here */
clear_rest();
else
erase_eol(); /* and erase the prompt */
--- 559,565 -----
#ifndef CLEAREOL
erase_eol(); /* and erase the prompt */
#else
! if (erase_screen && can_home_clear)
clear_rest();
else
erase_eol(); /* and erase the prompt */
***************
*** 734,742
firstpage = (topline < 0);
return PS_NORM;
case 'b':
! case '\b': /* I like backspace for this -- PWP */
! /* Leaving it undocumented in case */
! /* I want to steal the key--LAW */
case Ctl('b'): { /* back up a page */
ART_LINE target;
--- 737,743 -----
firstpage = (topline < 0);
return PS_NORM;
case 'b':
! case '\b':
case Ctl('b'): { /* back up a page */
ART_LINE target;
***************
*** 743,749
#ifndef CLEAREOL
clear();
#else
! if (can_home_clear) /* if we can home do it -- PWP */
home_cursor();
else
clear();
--- 744,750 -----
#ifndef CLEAREOL
clear();
#else
! if (can_home_clear) /* if we can home do it */
home_cursor();
else
clear();
***************
*** 753,759
do_fseek = TRUE; /* reposition article file */
target = topline - (LINES - 2);
artline = topline;
! while (artline >= 0 && artline > target && vrdary(artline-1) >= 0)
artline--;
topline = artline;
/* remember top line of screen */
--- 754,760 -----
do_fseek = TRUE; /* reposition article file */
target = topline - (LINES - 2);
artline = topline;
! if (artline > 0) do {
artline--;
} while (artline >= 0 && artline > target &&
vrdary(artline-1) >= 0);
***************
*** 755,760
artline = topline;
while (artline >= 0 && artline > target && vrdary(artline-1) >= 0)
artline--;
topline = artline;
/* remember top line of screen */
/* (line # within article file) */
--- 756,763 -----
artline = topline;
if (artline > 0) do {
artline--;
+ } while (artline >= 0 && artline > target &&
+ vrdary(artline-1) >= 0);
topline = artline;
/* remember top line of screen */
/* (line # within article file) */
***************
*** 830,836
/* FALL THROUGH */
#endif
case 'y':
! case Ctl('v'): /* I like emacs -- PWP */
/* Leaving it undocumented in case */
/* I want to steal the key--LAW */
case ' ': /* continue current article */
--- 833,839 -----
/* FALL THROUGH */
#endif
case 'y':
! case Ctl('v'):
/* Leaving it undocumented in case */
/* I want to steal the key--LAW */
case ' ': /* continue current article */
***************
*** 838,844
#ifndef CLEAREOL
clear(); /* clear screen */
#else
! if (can_home_clear) /* if we can home do it -- PWP */
home_cursor();
else
clear(); /* else clear screen */
--- 841,847 -----
#ifndef CLEAREOL
clear(); /* clear screen */
#else
! if (can_home_clear) /* if we can home do it */
home_cursor();
else
clear(); /* else clear screen */
Index: common.h
Prereq: 4.3.2.11
*** ../common.h Mon Apr 23 00:10:08 1990
--- ../../rn/common.h Mon Apr 23 00:32:20 1990
***************
*** 1,4
! /* $Header: common.h,v 4.3.2.11 90/04/14 19:37:07 sob Exp $
*
* $Log: common.h,v $
* Revision 4.3.2.11 90/04/14 19:37:07 sob
--- 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,6
/* $Header: common.h,v 4.3.2.11 90/04/14 19:37:07 sob Exp $
*
* $Log: common.h,v $
* Revision 4.3.2.11 90/04/14 19:37:07 sob
* Added better support for the NeXT.
*
--- 1,9 -----
/* $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.
+ *
* Revision 4.3.2.11 90/04/14 19:37:07 sob
* Added better support for the NeXT.
*
***************
*** 690,696
/* how to cancel an article, continued */
#ifndef CANCELHEADER
#ifdef INTERNET
! # define CANCELHEADER "Newsgroups: %n\nSubject: cmsg cancel %i\nReferences: %R\nDistribution: %D\nOrganization: %o\n"
#else
# define CANCELHEADER "Newsgroups: %n\nSubject: cmsg cancel %i\nReferences: %R\nReply-To: %L@%H.UUCP (%N)\nDistribution: %D\nOrganization: %o\n"
#endif
--- 693,699 -----
/* how to cancel an article, continued */
#ifndef CANCELHEADER
#ifdef INTERNET
! # define CANCELHEADER "Newsgroups: %n\nSubject: cmsg cancel %i\nReferences: %R\nDistribution: %D\nOrganization: %o\n\nThis message was cancelled from within rn.\n"
#else
# define CANCELHEADER "Newsgroups: %n\nSubject: cmsg cancel %i\nReferences: %R\nReply-To: %L@%H.UUCP (%N)\nDistribution: %D\nOrganization: %o\n"
#endif
Index: intrp.c
Prereq: 4.3.2.3
*** ../intrp.c Mon Apr 23 00:10:20 1990
--- ../../rn/intrp.c Mon Apr 23 00:31:38 1990
***************
*** 1,4
! /* $Header: intrp.c,v 4.3.2.3 90/03/22 23:04:35 sob Exp $
*
* $Log: intrp.c,v $
* Revision 4.3.2.3 90/03/22 23:04:35 sob
--- 1,4 -----
! /* $Header: intrp.c,v 4.3.2.4 90/04/23 00:31:20 sob Exp $
*
* $Log: intrp.c,v $
* Revision 4.3.2.4 90/04/23 00:31:20 sob
***************
*** 1,6
/* $Header: intrp.c,v 4.3.2.3 90/03/22 23:04:35 sob Exp $
*
* $Log: intrp.c,v $
* Revision 4.3.2.3 90/03/22 23:04:35 sob
* Fixes provided by Wayne Davison <drivax!davison>
*
--- 1,9 -----
/* $Header: intrp.c,v 4.3.2.4 90/04/23 00:31:20 sob Exp $
*
* $Log: intrp.c,v $
+ * Revision 4.3.2.4 90/04/23 00:31:20 sob
+ * Removed unneeded atoi call.
+ *
* Revision 4.3.2.3 90/03/22 23:04:35 sob
* Fixes provided by Wayne Davison <drivax!davison>
*
***************
*** 224,231
sprintf(scrbuf,"%s%s",pwd->pw_dir,s);
tildedir = savestr(pwd->pw_dir);
#ifdef NEWSADMIN
! if (strEQ(newsadmin,tildename))
! newsuid = atoi(pwd->pw_uid);
#endif
strcpy(filename,scrbuf);
#ifdef GETPWENT
--- 227,234 -----
sprintf(scrbuf,"%s%s",pwd->pw_dir,s);
tildedir = savestr(pwd->pw_dir);
#ifdef NEWSADMIN
! if ((pwd != NULL) && strEQ(newsadmin,tildename))
! newsuid = pwd->pw_uid;
#endif
strcpy(filename,scrbuf);
#ifdef GETPWENT
Index: makedepend.SH
Prereq: 4.3.2.1
*** makedepend.SH Mon Apr 23 00:11:13 1990
--- ../rn/makedepend.SH Sat Apr 21 14:25:35 1990
***************
*** 4,10
echo "Extracting makedepend (with variable substitutions)"
$spitshell >makedepend <<!GROK!THIS!
$startsh
! # $Header: makedepend.SH,v 4.3.2.1 89/12/17 02:52:46 sob Exp $
#
# $Log: makedepend.SH,v $
# Revision 4.3.2.1 89/12/17 02:52:46 sob
--- 4,10 -----
echo "Extracting makedepend (with variable substitutions)"
$spitshell >makedepend <<!GROK!THIS!
$startsh
! # $Header: makedepend.SH,v 4.3.2.2 90/04/21 14:24:58 sob Exp $
#
# $Log: makedepend.SH,v $
# Revision 4.3.2.2 90/04/21 14:24:58 sob
***************
*** 7,12
# $Header: makedepend.SH,v 4.3.2.1 89/12/17 02:52:46 sob Exp $
#
# $Log: makedepend.SH,v $
# Revision 4.3.2.1 89/12/17 02:52:46 sob
# Will only read config.sh from local directory.
#
--- 7,15 -----
# $Header: makedepend.SH,v 4.3.2.2 90/04/21 14:24:58 sob Exp $
#
# $Log: makedepend.SH,v $
+ # Revision 4.3.2.2 90/04/21 14:24:58 sob
+ # Added a fix to deal with XENIX cc -E output.
+ #
# Revision 4.3.2.1 89/12/17 02:52:46 sob
# Will only read config.sh from local directory.
#
***************
*** 35,40
-e p \\
-e '}'
$cpp -I/usr/local/include X\$file | $sed \\
-e '/^# *[0-9]/!d' \\
-e 's/^.*"\(.*\)".*\$/'\$filebase'.o: \1/' \\
-e 's|: \./|: |' \\
--- 38,44 -----
-e p \\
-e '}'
$cpp -I/usr/local/include X\$file | $sed \\
+ -e '/^#line/s/line//' \
-e '/^# *[0-9]/!d' \\
-e 's/^.*"\(.*\)".*\$/'\$filebase'.o: \1/' \\
-e 's|: \./|: |' \\
Index: mbox.saver.SH
Prereq: 4.3.2.1
*** mbox.saver.SH Mon Apr 23 00:11:26 1990
--- ../rn/mbox.saver.SH Sat Mar 17 20:45:19 1990
***************
*** 4,10
echo "Extracting mbox.saver (with variable substitutions)"
$spitshell >mbox.saver <<!GROK!THIS!
$startsh
! # $Header: mbox.saver.SH,v 4.3.2.1 89/11/28 00:05:47 sob Locked $
#
# $Log: mbox.saver.SH,v $
# Revision 4.3.2.1 89/11/28 00:05:47 sob
--- 4,10 -----
echo "Extracting mbox.saver (with variable substitutions)"
$spitshell >mbox.saver <<!GROK!THIS!
$startsh
! # $Header: mbox.saver.SH,v 4.3.2.2 90/03/17 20:44:54 sob Exp $
#
# $Log: mbox.saver.SH,v $
# Revision 4.3.2.2 90/03/17 20:44:54 sob
***************
*** 7,12
# $Header: mbox.saver.SH,v 4.3.2.1 89/11/28 00:05:47 sob Locked $
#
# $Log: mbox.saver.SH,v $
# Revision 4.3.2.1 89/11/28 00:05:47 sob
# Branch for RN/RRN combo patches
#
--- 7,15 -----
# $Header: mbox.saver.SH,v 4.3.2.2 90/03/17 20:44:54 sob Exp $
#
# $Log: mbox.saver.SH,v $
+ # Revision 4.3.2.2 90/03/17 20:44:54 sob
+ # Modify Article header to place the colon after Article.
+ #
# Revision 4.3.2.1 89/11/28 00:05:47 sob
# Branch for RN/RRN combo patches
#
***************
*** 34,40
( $echo "\$8"
case "\$5" in
! 0) $echo "Article \$4 of \$6:" ;;
esac
$tail +\$5c \$1 | $sed "s/^From/>From/"
$echo ""
--- 37,43 -----
( $echo "\$8"
case "\$5" in
! 0) $echo "Article: \$4 of \$6" ;;
esac
$tail +\$5c \$1 | $sed "s/^From />From /"
$echo ""
***************
*** 36,42
case "\$5" in
0) $echo "Article \$4 of \$6:" ;;
esac
! $tail +\$5c \$1 | $sed "s/^From/>From/"
$echo ""
$echo "" ) >> \$7
!GROK!THIS!
--- 39,45 -----
case "\$5" in
0) $echo "Article: \$4 of \$6" ;;
esac
! $tail +\$5c \$1 | $sed "s/^From />From /"
$echo ""
$echo "" ) >> \$7
!GROK!THIS!
Index: ndir.h
Prereq: 4.3
*** ndir.h Mon Apr 23 00:11:14 1990
--- ../rn/ndir.h Tue Apr 17 15:28:28 1990
***************
*** 1,4
! /* $Header: ndir.h,v 4.3 85/05/01 11:43:00 lwall Exp $
*
* $Log: ndir.h,v $
* Revision 4.3 85/05/01 11:43:00 lwall
--- 1,4 -----
! /* $Header: ndir.h,v 4.3.2.1 90/04/17 15:28:13 sob Exp $
*
* $Log: ndir.h,v $
* Revision 4.3.2.1 90/04/17 15:28:13 sob
***************
*** 1,6
/* $Header: ndir.h,v 4.3 85/05/01 11:43:00 lwall Exp $
*
* $Log: ndir.h,v $
* Revision 4.3 85/05/01 11:43:00 lwall
* Baseline for release with 4.3bsd.
*
--- 1,9 -----
/* $Header: ndir.h,v 4.3.2.1 90/04/17 15:28:13 sob Exp $
*
* $Log: ndir.h,v $
+ * Revision 4.3.2.1 90/04/17 15:28:13 sob
+ * Altered to include correct directory include file.
+ *
* Revision 4.3 85/05/01 11:43:00 lwall
* Baseline for release with 4.3bsd.
*
***************
*** 10,16
# include <ndir.h>
#else
# ifndef USENDIR
! # include <sys/dir.h>
# else
#ifndef DEV_BSIZE
--- 13,19 -----
# include <ndir.h>
#else
# ifndef USENDIR
! # include DIRINC
# else
#ifndef DEV_BSIZE
Index: newsetup.SH
Prereq: 4.3.2.5
*** newsetup.SH Mon Apr 23 00:11:06 1990
--- ../rn/newsetup.SH Mon Apr 9 02:32:01 1990
***************
*** 4,10
echo "Extracting newsetup (with variable substitutions)"
$spitshell >newsetup <<!GROK!THIS!
$startsh
! # $Header: newsetup.SH,v 4.3.2.5 89/11/28 01:15:32 sob Locked $
#
# $Log: newsetup.SH,v $
# Revision 4.3.2.5 89/11/28 01:15:32 sob
--- 4,11 -----
echo "Extracting newsetup (with variable substitutions)"
$spitshell >newsetup <<!GROK!THIS!
$startsh
!
! # $Header: newsetup.SH,v 4.3.2.7 90/03/17 20:34:48 sob Exp $
#
# $Log: newsetup.SH,v $
# Revision 4.3.2.7 90/03/17 20:34:48 sob
***************
*** 7,12
# $Header: newsetup.SH,v 4.3.2.5 89/11/28 01:15:32 sob Locked $
#
# $Log: newsetup.SH,v $
# Revision 4.3.2.5 89/11/28 01:15:32 sob
# Fixed a bug that caused the active file to be removed on non-NNTP-based
# systems.
--- 8,19 -----
# $Header: newsetup.SH,v 4.3.2.7 90/03/17 20:34:48 sob Exp $
#
# $Log: newsetup.SH,v $
+ # Revision 4.3.2.7 90/03/17 20:34:48 sob
+ # Remove the /tmp/n.* files created when generating the .newsrc.
+ #
+ # Revision 4.3.2.6 90/03/17 17:26:42 sob
+ # Some versions of sed only take 9 wfiles.
+ #
# Revision 4.3.2.5 89/11/28 01:15:32 sob
# Fixed a bug that caused the active file to be removed on non-NNTP-based
# systems.
***************
*** 16,22
#
# Revision 4.3.2.3 89/11/08 01:13:15 sob
# Finished modifications to make work with RN and RRN
! #
# Revision 4.3.2.2 89/11/07 23:25:50 sob
# Added support such that RN and RRN can be made from the same sources.
#
--- 23,29 -----
#
# Revision 4.3.2.3 89/11/08 01:13:15 sob
# Finished modifications to make work with RN and RRN
! #
# Revision 4.3.2.2 89/11/07 23:25:50 sob
#
# Added support such that RN and RRN can be made from the same sources.
***************
*** 18,23
# Finished modifications to make work with RN and RRN
#
# Revision 4.3.2.2 89/11/07 23:25:50 sob
# Added support such that RN and RRN can be made from the same sources.
#
# Revision 4.3.1.2 86/09/05 15:41:04 lwall
--- 25,31 -----
# Finished modifications to make work with RN and RRN
#
# Revision 4.3.2.2 89/11/07 23:25:50 sob
+ #
# Added support such that RN and RRN can be made from the same sources.
#
# Revision 4.3.1.2 86/09/05 15:41:04 lwall
***************
*** 51,58
dotdir="\${DOTDIR-\${HOME-\$LOGDIR}}"
$rm -f \$dotdir/.oldnewsrc
$echo "Creating .newsrc in \$dotdir to be used by news programs."
!
! #NNTP$rnlib/getactive \$active
#NORMALcase \$active in
#NORMAL~*) active=\`$filexp \$active\` ;;
#NORMALesac
--- 59,69 -----
dotdir="\${DOTDIR-\${HOME-\$LOGDIR}}"
$rm -f \$dotdir/.oldnewsrc
$echo "Creating .newsrc in \$dotdir to be used by news programs."
! #NNTPrnlib=$rnlib
! #NNTPcase \$rnlib in
! #NNTP~*) rnlib=\`$filexp \$rnlib\` ;;
! #NNTPesac
! #NNTP\$rnlib/getactive \$active
#NORMALcase \$active in
#NORMAL~*) active=\`$filexp \$active\` ;;
#NORMALesac
***************
*** 57,63
#NORMAL~*) active=\`$filexp \$active\` ;;
#NORMALesac
! : NOTE: SED WILL NOT TAKE MORE THAN 10 WFILES, SO BEWARE
$sort <\$active | $sed >/tmp/n.tmp\$\$ \\
-e 's/^\([^ ]*\) .*\$/\1:/' \\
--- 68,74 -----
#NORMAL~*) active=\`$filexp \$active\` ;;
#NORMALesac
! : NOTE: SED WILL NOT TAKE MORE THAN 9 WFILES, SO BEWARE
$sort <\$active | $sed >/tmp/n.tmp\$\$ \\
-e 's/^\([^ ]*\) .*\$/\1:/' \\
***************
*** 129,138
-e " w /tmp/n.soc\$\$" \\
-e ' d' \\
-e '}' \\
- -e "/^talk\./{" \\
- -e " w /tmp/n.talk\$\$" \\
- -e ' d' \\
- -e '}' \\
-e "/\./{" \\
-e " w /tmp/n.misc\$\$" \\
-e ' d' \\
--- 140,145 -----
-e " w /tmp/n.soc\$\$" \\
-e ' d' \\
-e '}' \\
-e "/\./{" \\
-e " w /tmp/n.misc\$\$" \\
-e ' d' \\
***************
*** 145,167
fi
: newsrc order determined here
- $cat \\
- /tmp/n.local\$\$ \\
- /tmp/n.\$locorg\$\$ \\
- /tmp/n.\$organization\$\$ \\
- /tmp/n.\$city\$\$ \\
- /tmp/n.\$state\$\$ \\
- /tmp/n.\$cntry\$\$ \\
- /tmp/n.\$cont\$\$ \\
- /tmp/n.news\$\$ \\
- /tmp/n.comp\$\$ \\
- /tmp/n.sci\$\$ \\
- /tmp/n.rec\$\$ \\
- /tmp/n.soc\$\$ \\
- /tmp/n.misc\$\$ \\
- /tmp/n.talk\$\$ \\
- /tmp/n.test\$\$ \\
- | $uniq >\$dotdir/.newsrc
$rm -f /tmp/n.to\$\$ \\
/tmp/n.tmp\$\$ \\
--- 152,157 -----
fi
: newsrc order determined here
$sed <\$active '
/^to\./d
***************
*** 163,185
/tmp/n.test\$\$ \\
| $uniq >\$dotdir/.newsrc
! $rm -f /tmp/n.to\$\$ \\
! /tmp/n.tmp\$\$ \\
! /tmp/n.local\$\$ \\
! /tmp/n.\$locorg\$\$ \\
! /tmp/n.\$organization\$\$ \\
! /tmp/n.\$city\$\$ \\
! /tmp/n.\$state\$\$ \\
! /tmp/n.\$cntry\$\$ \\
! /tmp/n.\$cont\$\$ \\
! /tmp/n.news\$\$ \\
! /tmp/n.comp\$\$ \\
! /tmp/n.sci\$\$ \\
! /tmp/n.soc\$\$ \\
! /tmp/n.rec\$\$ \\
! /tmp/n.talk\$\$ \\
! /tmp/n.misc\$\$ \\
! /tmp/n.test\$\$
#NNTP$rm -f \$active
$cat <<'EOH'
--- 153,188 -----
: newsrc order determined here
! $sed <\$active '
! /^to\./d
! s/ .*//
! s/^/ /
! s/^ '\$locorg'\./01&/
! s/^ '\$organization'\./02&/
! s/^ '\$city'\./03&/
! s/^ '\$state'\./04&/
! s/^ '\$cntry'\./05&/
! s/^ '\$cont'\./06&/
! s/^ news\./07&/
! s/^ comp\./08&/
! s/^ sci\./09&/
! s/^ rec\./10&/
! s/^ soc\./11&/
! s/^ talk\./13&/
! s/^ control\$/14&/
! s/^ junk\$/14&/
! s/^ test\$/14&/
! /\.test\$/s/^[0-9]*/14/
! s/^ .*\./12&/
! s/^ /00&/
! ' |
! $sort -u |
! $sed '
! /^14 /!s/\$/:/
! /^14 /s/\$/!/
! s/^[0-9][0-9] //
! ' >\$dotdir/.newsrc
!
#NNTP$rm -f \$active
$rm -f /tmp/n.misc\$\$ /tmp/n.sci\$\$ /tmp/n.soc\$\$ /tmp/n.news\$\$ /tmp/n.comp\$\$
$rm -f /tmp/n.\$cont\$\$ /tmp/n.\$city\$\$ /tmp/n.\$cntry\$\$ /tmp/n.\$state\$\$
***************
*** 181,186
/tmp/n.misc\$\$ \\
/tmp/n.test\$\$
#NNTP$rm -f \$active
$cat <<'EOH'
Done.
--- 184,193 -----
' >\$dotdir/.newsrc
#NNTP$rm -f \$active
+ $rm -f /tmp/n.misc\$\$ /tmp/n.sci\$\$ /tmp/n.soc\$\$ /tmp/n.news\$\$ /tmp/n.comp\$\$
+ $rm -f /tmp/n.\$cont\$\$ /tmp/n.\$city\$\$ /tmp/n.\$cntry\$\$ /tmp/n.\$state\$\$
+ $rm -f /tmp/n.to\$\$ /tmp/n.\$organization\$\$ /tmp/n.\$locorg\$\$ /tmp/n.test\$\$
+ $rm -f /tmp/n.tmp\$\$ /tmp/n.local\$\$ /tmp/n.rec\$\$
$cat <<'EOH'
Done.
Index: newsgroups.SH
Prereq: 4.3.2.4
*** newsgroups.SH Mon Apr 23 00:11:12 1990
--- ../rn/newsgroups.SH Fri Apr 6 20:35:39 1990
***************
*** 4,10
echo "Extracting newsgroups (with variable substitutions)"
$spitshell >newsgroups <<!GROK!THIS!
$startsh
! # $Header: newsgroups.SH,v 4.3.2.4 89/11/08 01:13:35 sob Locked $
#
# $Log: newsgroups.SH,v $
# Revision 4.3.2.4 89/11/08 01:13:35 sob
--- 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
***************
*** 7,12
# $Header: newsgroups.SH,v 4.3.2.4 89/11/08 01:13:35 sob Locked $
#
# $Log: newsgroups.SH,v $
# Revision 4.3.2.4 89/11/08 01:13:35 sob
# Finished modifications to make work with RN and RRN
#
--- 7,19 -----
# $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.
+ #
+ # Revision 4.3.2.5 90/03/17 17:27:00 sob
+ # System V sed and BSD sed don't work quite alike. This change uses a
+ # syntax that is common between them.
+ #
# Revision 4.3.2.4 89/11/08 01:13:35 sob
# Finished modifications to make work with RN and RRN
#
***************
*** 57,63
: bogus newsgroups from showing up as unsubscribed.
$cat \$dotdir/.newsrc \$dotdir/.newsrc \$active | \\
! $sed -e '/^options/d' \\
-e '/^[ ]/d' \\
-e '/^control/d' \\
-e '/^to\./d' \\
--- 64,70 -----
: bogus newsgroups from showing up as unsubscribed.
$cat \$dotdir/.newsrc \$dotdir/.newsrc \$active | \\
! $sed -n -e '/^options/d' \\
-e '/^[ ]/d' \\
-e '/^control/d' \\
-e '/^to\./d' \\
***************
*** 62,69
-e '/^control/d' \\
-e '/^to\./d' \\
-e 's/^\([^ !:]*\)[ !:].*\$/\1/' \\
! -e "/.*\$1/p" \\
! -e 'd' | \\
$sort | $uniq -u | \$pager
if $test \$# -ge 2 ; then
exit
--- 69,75 -----
-e '/^control/d' \\
-e '/^to\./d' \\
-e 's/^\([^ !:]*\)[ !:].*\$/\1/' \\
! -e "/.*\$1/p" | \\
$sort | $uniq -u | \$pager
if $test \$# -ge 2 ; then
exit
***************
*** 72,80
read tmp
$echo ""
$echo "Unsubscribed but mentioned in .newsrc:"
! $sed < \$dotdir/.newsrc \\
! -e "/\$1.*!/"'s/^\([^!]*\)!.*\$/\1/p' \\
! -e 'd' | \\
$sort | \$pager
!GROK!THIS!
case "$isrrn" in
--- 78,86 -----
read tmp
$echo ""
$echo "Unsubscribed but mentioned in .newsrc:"
! $sed -n < \$dotdir/.newsrc \\
!
! -e "/\$1.*!/"'s/^\([^!]*\)!.*\$/\1/p' | \\
$sort | \$pager
!GROK!THIS!
case "$isrrn" in
Index: ng.c
Prereq: 4.3.2.6
*** ng.c Mon Apr 23 00:10:10 1990
--- ../rn/ng.c Sat Apr 21 16:38:51 1990
***************
*** 1,4
! /* $Header: ng.c,v 4.3.2.6 90/03/22 23:04:49 sob Exp $
*
* $Log: ng.c,v $
* Revision 4.3.2.6 90/03/22 23:04:49 sob
--- 1,4 -----
! /* $Header: ng.c,v 4.3.2.7 90/04/21 14:44:23 sob Exp $
*
* $Log: ng.c,v $
* Revision 4.3.2.7 90/04/21 14:44:23 sob
***************
*** 1,6
/* $Header: ng.c,v 4.3.2.6 90/03/22 23:04:49 sob Exp $
*
* $Log: ng.c,v $
* Revision 4.3.2.6 90/03/22 23:04:49 sob
* Fixes provided by Wayne Davison <drivax!davison>
*
--- 1,9 -----
/* $Header: ng.c,v 4.3.2.7 90/04/21 14:44:23 sob Exp $
*
* $Log: ng.c,v $
+ * Revision 4.3.2.7 90/04/21 14:44:23 sob
+ * Revised previous patch insure that it does not decrement below zero.
+ *
* Revision 4.3.2.6 90/03/22 23:04:49 sob
* Fixes provided by Wayne Davison <drivax!davison>
*
***************
*** 469,475
#endif
setdfltcmd();
#ifdef CLEAREOL
! if (erase_screen && can_home_clear) /* PWP was here */
clear_rest();
#endif CLEAREOL
unflush_output(); /* disable any ^O in effect */
--- 472,478 -----
#endif
setdfltcmd();
#ifdef CLEAREOL
! if (erase_screen && can_home_clear)
clear_rest();
#endif CLEAREOL
unflush_output(); /* disable any ^O in effect */
***************
*** 973,979
do_fseek = TRUE;
target = topline - (LINES - 2);
artline = topline;
! while (artline >= 0 && artline > target && vrdary(artline-1) >= 0)
artline--;
topline = artline;
if (artline < 0)
--- 976,982 -----
do_fseek = TRUE;
target = topline - (LINES - 2);
artline = topline;
! if (artline > 0) do {
artline--;
} while (artline >= 0 && artline > target &&
vrdary(artline-1) >= 0);
***************
*** 975,980
artline = topline;
while (artline >= 0 && artline > target && vrdary(artline-1) >= 0)
artline--;
topline = artline;
if (artline < 0)
artline = 0;
--- 978,985 -----
artline = topline;
if (artline > 0) do {
artline--;
+ } while (artline >= 0 && artline > target &&
+ vrdary(artline-1) >= 0);
topline = artline;
if (artline < 0)
artline = 0;
Index: rcln.c
Prereq: 4.3.1.3
*** rcln.c Mon Apr 23 00:10:11 1990
--- ../rn/rcln.c Mon Apr 23 00:22:45 1990
***************
*** 1,4
! /* $Header: rcln.c,v 4.3.1.3 86/11/04 15:57:03 lwall Exp $
*
* $Log: rcln.c,v $
* Revision 4.3.1.3 86/11/04 15:57:03 lwall
--- 1,4 -----
! /* $Header: rcln.c,v 4.3.2.1 90/04/23 00:22:22 sob Exp $
*
* $Log: rcln.c,v $
* Revision 4.3.2.1 90/04/23 00:22:22 sob
***************
*** 1,8
/* $Header: rcln.c,v 4.3.1.3 86/11/04 15:57:03 lwall Exp $
*
* $Log: rcln.c,v $
! * Revision 4.3.1.3 86/11/04 15:57:03 lwall
! * realloc attempted on unalloced area.
*
* Revision 4.3.1.2 85/07/23 17:39:08 lwall
* Oops, was freeing a static buf on -c in checkexpired.
--- 1,8 -----
/* $Header: rcln.c,v 4.3.2.1 90/04/23 00:22:22 sob Exp $
*
* $Log: rcln.c,v $
! * Revision 4.3.2.1 90/04/23 00:22:22 sob
! * Changed atoi to atol and fixed RCS information.
*
* Revision 4.3.1.2 85/07/23 17:39:08 lwall
* Oops, was freeing a static buf on -c in checkexpired.
***************
*** 35,40
NG_NUM ngx;
{
char tmpbuf[128];
#ifdef VERBOSE
IF(verbose)
--- 35,41 -----
NG_NUM ngx;
{
char tmpbuf[128];
+ char *tmpp;
#ifdef VERBOSE
IF(verbose)
***************
*** 47,53
sprintf(tmpbuf,"%s: 1-%ld", rcline[ngx],(long)getngsize(ngx));
free(rcline[ngx]);
rcline[ngx] = savestr(tmpbuf);
! *(rcline[ngx] + rcnums[ngx] - 1) = '\0';
write_rc();
}
#endif
--- 48,55 -----
sprintf(tmpbuf,"%s: 1-%ld", rcline[ngx],(long)getngsize(ngx));
free(rcline[ngx]);
rcline[ngx] = savestr(tmpbuf);
! tmpp = rcline[ngx] + rcnums[ngx] - 1;
! *tmpp = '\0';
write_rc();
}
#endif
***************
*** 411,418
}
if (*s) {
if (s[-1] == '-') { /* landed in a range? */
! if (lastnum != 1)
! sprintf(rcline[ngnum]+rcnums[ngnum]," 1-%s",s);
goto ret;
}
}
--- 413,430 -----
}
if (*s) {
if (s[-1] == '-') { /* landed in a range? */
! if (lastnum != 1) {
! if (3 + strlen(s) > strlen(rcline[ngnum]+rcnums[ngnum])) {
! mbuf = safemalloc((MEM_SIZE)(rcnums[ngnum] + 3 +
! strlen(s) + 1));
! strcpy(mbuf, rcline[ngnum]);
! sprintf(mbuf+rcnums[ngnum]," 1-%s",s);
! free(rcline[ngnum]);
! rcline[ngnum] = mbuf;
! } else {
! sprintf(rcline[ngnum]+rcnums[ngnum]," 1-%s",s);
! }
! }
goto ret;
}
}
Index: rcstuff.c
Prereq: 4.3.2.3
*** rcstuff.c Mon Apr 23 00:10:32 1990
--- ../rn/rcstuff.c Mon Apr 23 00:25:57 1990
***************
*** 1,4
! /* $Header: rcstuff.c,v 4.3.2.3 89/12/20 23:25:04 sob Exp $
*
* $Log: rcstuff.c,v $
* Revision 4.3.2.3 89/12/20 23:25:04 sob
--- 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,6
/* $Header: rcstuff.c,v 4.3.2.3 89/12/20 23:25:04 sob Exp $
*
* $Log: rcstuff.c,v $
* Revision 4.3.2.3 89/12/20 23:25:04 sob
* Changed the maximum lenght of a newsgroup name from 20 to 40 characters.
*
--- 1,9 -----
/* $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.
+ *
* Revision 4.3.2.3 89/12/20 23:25:04 sob
* Changed the maximum lenght of a newsgroup name from 20 to 40 characters.
*
***************
*** 124,130
finalize(1);
}
if (tmpfp != Nullfp && fgets(tmpbuf,10,tmpfp) != Nullch)
! softptr[newng] = atoi(tmpbuf);
else
softptr[newng] = 0;
some_buf[--length] = '\0'; /* wipe out newline */
--- 127,133 -----
finalize(1);
}
if (tmpfp != Nullfp && fgets(tmpbuf,10,tmpfp) != Nullch)
! softptr[newng] = atol(tmpbuf);
else
softptr[newng] = 0;
some_buf[--length] = '\0'; /* wipe out newline */
***************
*** 599,605
else if (isdigit(*buf)) {
if (!finish_command(TRUE)) /* get rest of command */
goto reinp_reloc;
! newng = atoi(buf);
if (newng < 0)
newng = 0;
if (newng >= nextrcline)
--- 602,608 -----
else if (isdigit(*buf)) {
if (!finish_command(TRUE)) /* get rest of command */
goto reinp_reloc;
! newng = atol(buf);
if (newng < 0)
newng = 0;
if (newng >= nextrcline)
Index: rn.1
Prereq: 4.3.1.7
*** rn.1 Mon Apr 23 00:09:45 1990
--- ../rn/rn.1 Sat Mar 17 17:11:03 1990
***************
*** 1,4
! ''' $Header: rn.1,v 4.3.1.7 89/11/28 00:28:10 sob Locked $
'''
''' $Log: rn.1,v $
''' Revision 4.3.1.7 89/11/28 00:28:10 sob
--- 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,6
''' $Header: rn.1,v 4.3.1.7 89/11/28 00:28:10 sob Locked $
'''
''' $Log: rn.1,v $
''' Revision 4.3.1.7 89/11/28 00:28:10 sob
''' Changed some usages of "say" and "saying" to "type" and "typing"
'''
--- 1,13 -----
''' $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.
+ '''
+ ''' 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"
'''
***************
*** 1411,1416
derived either directly from the Posted: line, or not-so-directly from
the Date: line.
Header munging at its finest.
.Ip NAME 8
Your full name.
May be interpolated using \*(L"%N\*(R".
--- 1418,1428 -----
derived either directly from the Posted: line, or not-so-directly from
the Date: line.
Header munging at its finest.
+ .Ip MODSTRING 8
+ The string to insert in the group summary line, which heads each article,
+ for a moderated group. See also NOPOSTRING.
+ .Sp
+ Default: " (moderated)"
.Ip NAME 8
Your full name.
May be interpolated using \*(L"%N\*(R".
***************
*** 1453,1458
See also NEWSHEADER.
.Sp
Default: Pnews \-h %h
.Ip "NORMSAVER (~)" 8
The shell command to save an article in the normal (non-mailbox) format.
.Sp
--- 1465,1475 -----
See also NEWSHEADER.
.Sp
Default: Pnews \-h %h
+ .Ip NOPOSTRING 8
+ The string to insert in the group summary line, which heads each article,
+ for a group to which local posting is not allowed. See also MODSTRING.
+ .Sp
+ Default: " (no posting)"
.Ip "NORMSAVER (~)" 8
The shell command to save an article in the normal (non-mailbox) format.
.Sp
Index: rn.c
*** rn.c Mon Apr 23 00:10:42 1990
--- ../rn/rn.c Sat Apr 14 21:21:02 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 #: 45";
/* $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 #: 46";
/* $Log: rn.c,v $
* Revision 4.3.2.4 90/04/03 23:11:33 sob
Index: util.c
Prereq: 4.3.2.5
*** util.c Mon Apr 23 00:10:46 1990
--- ../rn/util.c Mon Apr 23 00:24:50 1990
***************
*** 1,4
! /* $Header: util.c,v 4.3.2.5 90/03/17 21:34:21 sob Exp $
*
* $Log: util.c,v $
* Revision 4.3.2.5 90/03/17 21:34:21 sob
--- 1,4 -----
! /* $Header: util.c,v 4.3.2.6 90/04/23 00:24:42 sob Exp $
*
* $Log: util.c,v $
* Revision 4.3.2.6 90/04/23 00:24:42 sob
***************
*** 1,6
/* $Header: util.c,v 4.3.2.5 90/03/17 21:34:21 sob Exp $
*
* $Log: util.c,v $
* Revision 4.3.2.5 90/03/17 21:34:21 sob
* Reworked VOIDSIG into SIGRET.
*
--- 1,9 -----
/* $Header: util.c,v 4.3.2.6 90/04/23 00:24:42 sob Exp $
*
* $Log: util.c,v $
+ * Revision 4.3.2.6 90/04/23 00:24:42 sob
+ * A bit of clean up.
+ *
* Revision 4.3.2.5 90/03/17 21:34:21 sob
* Reworked VOIDSIG into SIGRET.
*
***************
*** 254,259
char *np;
{
char * name;
name = getcwd(np,1024);
return(name);
}
--- 257,263 -----
char *np;
{
char * name;
+ extern char * getcwd();
name = getcwd(np,1024);
return(name);
}
Index: term.c
Prereq: 4.3.2.6
*** term.c Mon Apr 23 00:10:22 1990
--- ../rn/term.c Mon Apr 23 00:49:01 1990
***************
*** 1,4
! /* $Header: term.c,v 4.3.2.6 90/04/13 23:48:17 sob Exp $
*
* $Log: term.c,v $
* Revision 4.3.2.6 90/04/13 23:48:17 sob
--- 1,4 -----
! /* $Header: term.c,v 4.3.2.7 90/04/21 16:54:29 sob Exp $
*
* $Log: term.c,v $
* Revision 4.3.2.7 90/04/21 16:54:29 sob
***************
*** 1,6
/* $Header: term.c,v 4.3.2.6 90/04/13 23:48:17 sob Exp $
*
* $Log: term.c,v $
* Revision 4.3.2.6 90/04/13 23:48:17 sob
* Modifications provided by Gene Hackney for 3b2.
*
--- 1,9 -----
/* $Header: term.c,v 4.3.2.7 90/04/21 16:54:29 sob Exp $
*
* $Log: term.c,v $
+ * Revision 4.3.2.7 90/04/21 16:54:29 sob
+ * Installed patches provided by SCO for SCO Xenix
+ *
* Revision 4.3.2.6 90/04/13 23:48:17 sob
* Modifications provided by Gene Hackney for 3b2.
*
***************
*** 197,205
CL = Tgetstr("cl"); /* get clear string */
CE = Tgetstr("ce"); /* clear to end of line string */
#ifdef CLEAREOL
! CM = Tgetstr("cm"); /* cursor motion - PWP */
! HO = Tgetstr("ho"); /* home cursor if no CM - PWP */
! CD = Tgetstr("cd"); /* clear to end of display - PWP */
if (!*CE || !*CD || (!*CM && !*HO)) /* can we CE, CD, and home? */
can_home_clear = FALSE; /* no, so disable use of clear eol */
#endif CLEAREOL
--- 200,208 -----
CL = Tgetstr("cl"); /* get clear string */
CE = Tgetstr("ce"); /* clear to end of line string */
#ifdef CLEAREOL
! CM = Tgetstr("cm"); /* cursor motion */
! HO = Tgetstr("ho"); /* home cursor if no CM */
! CD = Tgetstr("cd"); /* clear to end of display */
if (!*CE || !*CD || (!*CM && !*HO)) /* can we CE, CD, and home? */
can_home_clear = FALSE; /* no, so disable use of clear eol */
#endif CLEAREOL
***************
*** 614,620
int
circfill()
{
! register int howmany = read(devtty,circlebuf+nextin,1);
if (howmany) {
nextin += howmany;
--- 617,623 -----
int
circfill()
{
! register int Howmany = read(devtty,circlebuf+nextin,1);
if (Howmany) {
nextin += Howmany;
***************
*** 616,623
{
register int howmany = read(devtty,circlebuf+nextin,1);
! if (howmany) {
! nextin += howmany;
nextin %= PUSHSIZE;
}
return howmany;
--- 619,626 -----
{
register int Howmany = read(devtty,circlebuf+nextin,1);
! if (Howmany) {
! nextin += Howmany;
nextin %= PUSHSIZE;
}
return Howmany;
***************
*** 620,626
nextin += howmany;
nextin %= PUSHSIZE;
}
! return howmany;
}
#endif PENDING
#endif FIONREAD
--- 623,629 -----
nextin += Howmany;
nextin %= PUSHSIZE;
}
! return Howmany;
}
#endif PENDING
#endif FIONREAD
***************
*** 1040,1047
}
#ifdef CLEAREOL
- /* start of additions by Paul Placeway (PWP) */
-
void
home_cursor()
{
--- 1043,1048 -----
}
#ifdef CLEAREOL
void
home_cursor()
{
Index: patchlevel
Prereq: 45
*** patchlevel Mon Apr 23 00:09:47 1990
--- ../rn/patchlevel Tue Dec 19 09:44:11 1989
***************
*** 1
! Patch #: 45
--- 1 -----
! Patch #: 46
Technical Details
Message-ID:
<389@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!uunet!cs.utexas.edu!lib!lib.tmc.eduShow Full Headers
Complete Article Headers
Message-ID: <389@lib.tmc.edu> Subject: RN Patch #46 Date: Mon, 23 Apr 1990 07:30:07 +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!uunet!cs.utexas.edu!lib!lib.tmc.edu Newsgroups: comp.sources.bugs,news.software.nntp,news.software.b Keywords: RN RRN NNTP PATCH 46 Sender: sob@lib.tmc.edu Followup-To: poster Organization: The Texas Medical Center, Houston, Tx Lines: 2168 Posted: Mon Apr 23 08:30:07 1990