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