Xref: utzoo news.software.b:6398 comp.sources.bugs:2724 Newsgroups: news.software.b,comp.sources.bugs Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: C News patch of 14-Dec-1990 Message-ID: <1990Dec14.185557.5851@zoo.toronto.edu> Organization: U of Toronto Zoology Date: Fri, 14 Dec 90 18:55:57 GMT This one concludes the catch-up patches, and incorporates a couple of tail-end additions to earlier ones. Fix a bug in updatemin, uncovered by the new split(), that caused blank lines to be added to the active file. Update rnews(8) to match the new rnews. Add a copy of inews in NEWSCTL, for the benefit of things like rn that want to see one there. (Kind of a blemish, but at least inews is a shell file.) Completion of the ANSI-C-errno fixes. And change anne.jones (part of the inews machinery) to generate dates with four-digit years. start of patch 14-Dec-1990 (suggested archive name: `pch14Dec90.Z') this should be run with patch -p0 @>()= .ds m usenet ! .TH RNEWS 8 "18 Sept 1990" .BY "C News" .SH NAME --- 7,11 ---- .\" =()<.ds m @@>()= .ds m usenet ! .TH RNEWS 8 "13 Dec 1990" .BY "C News" .SH NAME *************** *** 35,38 **** --- 35,50 ---- accepts news from standard input and spools it up for processing, space permitting. + If space is persistently too short, + .I rnews + looks for the file + .IR \*c/rnews.stall ; + if it is present, + .I rnews + waits patiently for more space to appear, + while if it is absent, + .I rnews + discards the news and reports this. + .PP + .PP .I Cunbatch is a historical synonym for *************** *** 52,55 **** --- 64,71 ---- .I newsrun to process the new news immediately. + .I Rnews + invokes it this way if and only if the file + .I \*c/rnews.immed + exists. .PP .I Newsrun *** cnpatch/old/relay/fileart.c Fri Dec 14 13:44:53 1990 --- relay/fileart.c Thu Nov 1 16:15:26 1990 *************** *** 20,23 **** --- 20,24 ---- #include #include + #include "fixerrno.h" #include *** cnpatch/old/relay/history.c Fri Dec 14 13:45:05 1990 --- relay/history.c Thu Nov 1 16:15:51 1990 *************** *** 16,19 **** --- 16,22 ---- #include + #include /* for memcpy */ + #include + #include "fixerrno.h" #include #include "libc.h" *** cnpatch/old/relay/makefile Fri Dec 14 13:45:13 1990 --- relay/makefile Sun Oct 14 03:01:35 1990 *************** *** 75,80 **** cp ctl/[a-z]* $(NEWSBIN)/ctl cp aux/[a-z]* $(NEWSBIN)/relay ! rm -f $(BIN)/inews ln $(NEWSBIN)/inject/inews $(BIN)/inews 2>/dev/null || cp sh/inews $(BIN) cmp: relaynews --- 75,81 ---- cp ctl/[a-z]* $(NEWSBIN)/ctl cp aux/[a-z]* $(NEWSBIN)/relay ! rm -f $(BIN)/inews $(NEWSCTL)/inews ln $(NEWSBIN)/inject/inews $(BIN)/inews 2>/dev/null || cp sh/inews $(BIN) + ln $(NEWSCTL)/inject/inews $(NEWSCTL)/inews 2>/dev/null || cp sh/inews $(NEWSCTL) cmp: relaynews *************** *** 84,87 **** --- 85,89 ---- for f in `ls aux` ; do cmp $(NEWSBIN)/relay/$$f aux/$$f ; done cmp $(BIN)/inews sh/inews + cmp $(NEWSCTL)/inews sh/inews ls -lg $(NEWSBIN)/relay/relaynews | egrep -s '^-rwsrwsr-x 1 news news' *************** *** 92,95 **** --- 94,98 ---- for f in `ls aux` ; do cmp $(NEWSBIN)/relay/$$f aux/$$f || true ; done cmp $(BIN)/inews sh/inews || true + cmp $(NEWSCTL)/inews sh/inews || true ls -lg $(NEWSBIN)/relay/relaynews | egrep -s '^-rwsrwsr-x 1 news news' *** cnpatch/old/relay/relaynews.c Fri Dec 14 13:46:04 1990 --- relay/relaynews.c Thu Nov 1 16:16:12 1990 *************** *** 31,34 **** --- 31,36 ---- #include #include /* to make locking safe */ + #include + #include "fixerrno.h" #include *** cnpatch/old/relay/sh/anne.jones Fri Dec 14 13:46:08 1990 --- relay/sh/anne.jones Sat Dec 1 03:37:53 1990 *************** *** 117,120 **** defpath="$badsites$USER" \ deffrom="$FROM" deforg="$deforg" \ ! defdate="` set $date; echo $1, $3 $2 \` echo $6 | sed 's/^..//' \` $4 $5`" \ defmsgid="`set $date; echo \<$6$2$3.\` echo $4 | tr -d : \`.$$@$host\>`" - --- 117,120 ---- defpath="$badsites$USER" \ deffrom="$FROM" deforg="$deforg" \ ! defdate="` set $date; echo $1, $3 $2 $6 $4 $5`" \ defmsgid="`set $date; echo \<$6$2$3.\` echo $4 | tr -d : \`.$$@$host\>`" - *** cnpatch/old/relay/sys.c Fri Dec 14 13:46:17 1990 --- relay/sys.c Thu Nov 1 16:16:25 1990 *************** *** 5,8 **** --- 5,10 ---- #include #include + #include + #include "fixerrno.h" #include #include end of patch 14-Dec-1990 -- "The average pointer, statistically, |Henry Spencer at U of Toronto Zoology points somewhere in X." -Hugh Redelmeier| henry@zoo.toronto.edu utzoo!henry