summaryrefslogtreecommitdiff
path: root/news/nntpcache
diff options
context:
space:
mode:
authormjl <mjl>2000-01-26 20:16:15 +0000
committermjl <mjl>2000-01-26 20:16:15 +0000
commit68858ce631cc6de09f17afa2a790bec4722725cd (patch)
tree09260d03041b256252d14606043de6f7797e5ec3 /news/nntpcache
parent4aed0aff71c3fe14c9659811a36018e26a58f2ee (diff)
downloadpkgsrc-68858ce631cc6de09f17afa2a790bec4722725cd.tar.gz
Patch for minor y2k problem, from nntpcache 2.4.0b2.
Diffstat (limited to 'news/nntpcache')
-rw-r--r--news/nntpcache/files/patch-sum3
-rw-r--r--news/nntpcache/patches/patch-y2k14
2 files changed, 17 insertions, 0 deletions
diff --git a/news/nntpcache/files/patch-sum b/news/nntpcache/files/patch-sum
new file mode 100644
index 00000000000..808d6790aa2
--- /dev/null
+++ b/news/nntpcache/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1 2000/01/26 20:16:15 mjl Exp $
+
+MD5 (patch-y2k) = 01027dbc31903a7ae3034f1c81e004b8
diff --git a/news/nntpcache/patches/patch-y2k b/news/nntpcache/patches/patch-y2k
new file mode 100644
index 00000000000..d9c12332b1d
--- /dev/null
+++ b/news/nntpcache/patches/patch-y2k
@@ -0,0 +1,14 @@
+$NetBSD: patch-y2k,v 1.1 2000/01/26 20:16:18 mjl Exp $
+
+--- src/newgroups.c.orig Wed Jan 26 20:55:05 2000
++++ src/newgroups.c Wed Jan 26 20:56:21 2000
+@@ -36,6 +36,9 @@
+ if ((t[i]=c2i(d+2*i))==-1)
+ goto bad;
+ memset(&tm, 0, sizeof tm);
++ if(t[0] < 50)
++ tm.tm_year = t[0] + 100;
++ else
+ tm.tm_year = t[0];
+ tm.tm_mon = t[1]-1;
+ tm.tm_mday = t[2];