summaryrefslogtreecommitdiff
path: root/news/nn
diff options
context:
space:
mode:
authortron <tron>1998-05-21 09:37:59 +0000
committertron <tron>1998-05-21 09:37:59 +0000
commitd9064585aae60d9cd5ae8b729b2d340d57b45afd (patch)
tree500c25a07a80f3c001a3a9ac9712c5777da7f327 /news/nn
parent2ef1ebbd6b36820ba439a9dc786bc5bb83868a0e (diff)
downloadpkgsrc-d9064585aae60d9cd5ae8b729b2d340d57b45afd.tar.gz
Teach "inews" how to get from "INN" to "NNRPD" if necessary.
Diffstat (limited to 'news/nn')
-rw-r--r--news/nn/patches/patch-ae35
1 files changed, 35 insertions, 0 deletions
diff --git a/news/nn/patches/patch-ae b/news/nn/patches/patch-ae
new file mode 100644
index 00000000000..f8af95d1305
--- /dev/null
+++ b/news/nn/patches/patch-ae
@@ -0,0 +1,35 @@
+--- inews/clientlib.c.orig Thu Nov 25 10:28:59 1993
++++ inews/clientlib.c Thu May 21 11:20:24 1998
+@@ -56,6 +56,8 @@
+ FILE *ser_rd_fp = NULL;
+ FILE *ser_wr_fp = NULL;
+
++void put_server(char *);
++
+ /*
+ * getserverbyfile Get the name of a server from a named file.
+ * Handle white space and comments.
+@@ -124,7 +126,7 @@
+ server_init(machine)
+ char *machine;
+ {
+- int sockt_rd, sockt_wr;
++ int sockt_rd, sockt_wr, result[2];
+ char line[256];
+ char *index();
+ #ifdef DECNET
+@@ -166,7 +168,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]);
+ }
+
+