diff options
author | tron <tron> | 1998-05-22 08:34:07 +0000 |
---|---|---|
committer | tron <tron> | 1998-05-22 08:34:07 +0000 |
commit | 95ef23d475236de1e232797e7fe2aa1bd58b9d88 (patch) | |
tree | 8fd9ea45656af833f170c7de0766b6a428c560cd /news | |
parent | f35319d3efa1b6b1b56b3ee8e56595c82bd8bb88 (diff) | |
download | pkgsrc-95ef23d475236de1e232797e7fe2aa1bd58b9d88.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-ab | 26 |
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 |