summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2000-04-25 09:59:51 +0000
committermjl <mjl@pkgsrc.org>2000-04-25 09:59:51 +0000
commit4bdc820deefd3e65363b56c75383680272a8da25 (patch)
tree70b8f22b91ff8fea0a4497d991833c1581ae4c2d /news
parentee60aa74aee572fc7beedf6baeb40dd805533e70 (diff)
downloadpkgsrc-4bdc820deefd3e65363b56c75383680272a8da25.tar.gz
Add a patch to make the newgroups NNTP command actually work.
Diffstat (limited to 'news')
-rw-r--r--news/nntpcache/files/patch-sum7
-rw-r--r--news/nntpcache/patches/patch-aa33
2 files changed, 35 insertions, 5 deletions
diff --git a/news/nntpcache/files/patch-sum b/news/nntpcache/files/patch-sum
index e62b4e6cc52..81b3cf5f230 100644
--- a/news/nntpcache/files/patch-sum
+++ b/news/nntpcache/files/patch-sum
@@ -1,6 +1,3 @@
-$NetBSD: patch-sum,v 1.2 2000/02/27 21:38:39 dmcmahill Exp $
+$NetBSD: patch-sum,v 1.3 2000/04/25 09:59:51 mjl Exp $
-This placeholder file is generated by the ``makepatchsum'' target
-whenever the patches directory is empty or missing. Its purpose
-is to ensure that the presence of any obsolete patches will cause
-the proper error to be emitted at build time.
+MD5 (patch-aa) = 22a6e7c50f944d31bea5f9acd26ceca2
diff --git a/news/nntpcache/patches/patch-aa b/news/nntpcache/patches/patch-aa
new file mode 100644
index 00000000000..1c80493e2de
--- /dev/null
+++ b/news/nntpcache/patches/patch-aa
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.4 2000/04/25 09:59:51 mjl Exp $
+
+--- src/newgroups.c.orig Fri Mar 3 20:15:48 2000
++++ src/newgroups.c Fri Mar 3 20:36:25 2000
+@@ -25,7 +25,7 @@
+ char gmt[4]="";
+ char dist[128]="";
+ int i;
+- int t[4];
++ int t[5];
+ char arg1[9];
+ int len;
+ int yr;
+@@ -39,15 +39,15 @@
+ len = strlen(arg1);
+ if (len < 6 || atoi(arg1) == 0)
+ goto bad;
+- strncpy(arg1+len-4, d, 4);
+- for (i=0; i<4; i++)
++ strncpy(d, arg1+len-4, 4);
++ for (i=0; i<5; i++)
+ if ((t[i]=c2i(d+2*i))==-1)
+ goto bad;
+ /* deal with y2k bugged readers */
+- arg1[len-4] = '0';
++ arg1[len-4] = '\0';
+ yr = atoi(arg1);
+ if (yr>19100)
+- yr-=1900;
++ yr-=19000;
+ if (yr>1900)
+ yr-=1900;
+ if (yr <70)