summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-05-22 08:34:07 +0000
committertron <tron@pkgsrc.org>1998-05-22 08:34:07 +0000
commitabb74522fd5645bb621fc68f0ecbe7028101d193 (patch)
tree8fd9ea45656af833f170c7de0766b6a428c560cd /news
parent69c4bb08973f8c829fc737f1a0df529a0970376b (diff)
downloadpkgsrc-abb74522fd5645bb621fc68f0ecbe7028101d193.tar.gz
Teach "nntpclnt" library how to get from "INN" to "NNRPD" if necessary.
Diffstat (limited to 'news')
-rw-r--r--news/nntpclnt/patches/patch-ab26
1 files changed, 26 insertions, 0 deletions
diff --git a/news/nntpclnt/patches/patch-ab b/news/nntpclnt/patches/patch-ab
new file mode 100644
index 00000000000..268bb056ad0
--- /dev/null
+++ b/news/nntpclnt/patches/patch-ab
@@ -0,0 +1,26 @@
+--- nntpclnt.c.orig Thu Aug 11 23:37:51 1994
++++ nntpclnt.c Fri May 22 10:20:49 1998
+@@ -199,7 +199,7 @@
+ server_init(machine)
+ char *machine;
+ {
+- int sockt_rd, sockt_wr;
++ int sockt_rd, sockt_wr, result[2];
+ char line[256];
+ char *index();
+ #if defined(DECNET) || defined(SGI4DDN)
+@@ -248,7 +248,13 @@
+ /* Now get the server's signon message */
+
+ (void) get_server(line, sizeof(line));
+- return (atoi(line));
++ result[0] = atoi(line);
++
++ put_server("MODE READER");
++ (void) get_server(line, sizeof(line));
++ result[1] = atoi(line);
++
++ return ((result[1] != ERR_COMMAND) ? result[1] : result[0]);
+ }
+
+ #ifdef DATAKIT