Xref: utzoo news.software.b:5695 comp.sources.bugs:2540 Newsgroups: news.software.b,comp.sources.bugs Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: C News patch of 7-Sep-1990 Message-ID: <1990Sep9.230537.18939@zoo.toronto.edu> Organization: U of Toronto Zoology Date: Sun, 9 Sep 90 23:05:37 GMT This cleans up the exceedingly obscure relaying bug in the 1-Sep patch, and beefs up the relaynews regression test considerably. (It also adds an item in notebook/problems that just happened to come along last week.) start of patch 7-Sep-1990 (suggested archive name: `pch7Sep90.Z') this should be run with patch -p0 --- 1,3 ---- ! Path: host!foo!user From: user@host Message-ID: <#1@host> *************** *** 4,6 **** Newsgroups: test.a ! ## This should appear in test/a/1 --- 4,6 ---- Newsgroups: test.a ! ## This should appear in test/a/1 and not be sent to foo *** cnpatch/old/relay/regress/master/batch Tue Jun 20 19:00:42 1989 --- relay/regress/master/batch Thu Sep 6 19:03:41 1990 *************** *** 1,4 **** ! #! rnews 108 ! Path: host!user From: user@host Message-ID: <#1@host> --- 1,4 ---- ! #! rnews 135 ! Path: host!foo!user From: user@host Message-ID: <#1@host> *************** *** 5,9 **** Newsgroups: test.a ! ## This should appear in test/a/1 #! rnews 108 Path: host!user --- 5,9 ---- Newsgroups: test.a ! ## This should appear in test/a/1 and not be sent to foo #! rnews 108 Path: host!user *** cnpatch/old/relay/regress/master/sys Tue Jun 20 19:00:45 1989 --- relay/regress/master/sys Thu Sep 6 18:50:14 1990 *************** *** 1,2 **** --- 1,4 ---- ME:all foo:all:f:/dev/null + bar:all:f:/dev/null + baz:all:f:/dev/null *** cnpatch/old/relay/regress/out/art1 Tue Jun 20 19:00:29 1989 --- relay/regress/out/art1 Thu Sep 6 19:03:41 1990 *************** *** 1,3 **** ! Path: host!user From: user@host Message-ID: <#1@host> --- 1,3 ---- ! Path: host!foo!user From: user@host Message-ID: <#1@host> *************** *** 4,6 **** Newsgroups: test.a ! ## This should appear in test/a/1 --- 4,6 ---- Newsgroups: test.a ! ## This should appear in test/a/1 and not be sent to foo *** cnpatch/old/relay/regress/out/batch Tue Jun 20 19:00:31 1989 --- relay/regress/out/batch Thu Sep 6 19:03:42 1990 *************** *** 1,4 **** ! #! rnews 108 ! Path: host!user From: user@host Message-ID: <#1@host> --- 1,4 ---- ! #! rnews 135 ! Path: host!foo!user From: user@host Message-ID: <#1@host> *************** *** 5,9 **** Newsgroups: test.a ! ## This should appear in test/a/1 #! rnews 108 Path: host!user --- 5,9 ---- Newsgroups: test.a ! ## This should appear in test/a/1 and not be sent to foo #! rnews 108 Path: host!user *** cnpatch/old/relay/regress/out/log Tue Jun 20 19:00:33 1989 --- relay/regress/out/log Fri Sep 7 04:01:13 1990 *************** *** 1,5 **** ! TIME host + <#1@host> foo ! TIME host + <#2@host> foo ! TIME host + <#3@host> foo ! TIME host + <#4@host> foo ! TIME host + <#5@host> foo --- 1,5 ---- ! TIME host + <#1@host> bar baz ! TIME host + <#2@host> foo bar baz ! TIME host + <#3@host> foo bar baz ! TIME host + <#4@host> foo bar baz ! TIME host + <#5@host> foo bar baz *** cnpatch/old/relay/regress/out/sys Tue Jun 20 19:00:34 1989 --- relay/regress/out/sys Thu Sep 6 18:53:13 1990 *************** *** 1,2 **** --- 1,4 ---- ME:all foo:all:f:/dev/null + bar:all:f:/dev/null + baz:all:f:/dev/null *** cnpatch/old/relay/regress/out/test/a/1 Tue Jun 20 19:00:36 1989 --- relay/regress/out/test/a/1 Thu Sep 6 19:05:23 1990 *************** *** 1,3 **** ! Path: hostb!host!user From: user@host Message-ID: <#1@host> --- 1,3 ---- ! Path: hostb!host!foo!user From: user@host Message-ID: <#1@host> *************** *** 4,6 **** Newsgroups: test.a ! ## This should appear in test/a/1 --- 4,6 ---- Newsgroups: test.a ! ## This should appear in test/a/1 and not be sent to foo *** cnpatch/old/relay/transmit.c Wed Sep 5 15:46:36 1990 --- relay/transmit.c Thu Sep 6 19:14:47 1990 *************** *** 92,95 **** --- 92,99 ---- nnfree(&canpath); canpath = canonpath(art->h.h_path, art->h.h_approved, art->h.h_sender); + #ifdef notdef /* DEBUG */ + fprintf(stderr, "path=%s canonpath=%s\n", art->h.h_path, + canpath); + #endif } path = canpath; Files that are new: new relay/regress/master/mkbatch (patch can't create, so diff against null): Index: relay/regress/master/mkbatch *** cnpatch/old/relay/regress/master/mkbatch Fri Sep 7 13:58:02 1990 --- relay/regress/master/mkbatch Thu Sep 6 19:03:30 1990 *************** *** 0 **** --- 1,7 ---- + #! /bin/sh + for art + do + bytes=`wc -c <$art` + echo "#! rnews `echo $bytes`" + cat $art + done new relay/regress/out/mkbatch (patch can't create, so diff against null): Index: relay/regress/out/mkbatch *** cnpatch/old/relay/regress/out/mkbatch Fri Sep 7 13:58:03 1990 --- relay/regress/out/mkbatch Fri Sep 7 04:00:57 1990 *************** *** 0 **** --- 1,7 ---- + #! /bin/sh + for art + do + bytes=`wc -c <$art` + echo "#! rnews `echo $bytes`" + cat $art + done end of patch 7-Sep-1990 -- TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology OSI: handling yesterday's loads someday| henry@zoo.toronto.edu utzoo!henry