From cfef22702edc19bb5cac5ad292ffa77bcb31e3c1 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 25 Mar 1998 19:31:35 +0000 Subject: Addition of "nntpclnt", the reference implementation of RFC977 and the popularly used inews posting program. --- news/nntpclnt/patches/patch-aa | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 news/nntpclnt/patches/patch-aa (limited to 'news/nntpclnt/patches') diff --git a/news/nntpclnt/patches/patch-aa b/news/nntpclnt/patches/patch-aa new file mode 100644 index 00000000000..da3b6300f26 --- /dev/null +++ b/news/nntpclnt/patches/patch-aa @@ -0,0 +1,32 @@ +*** uname.c.orig Wed Mar 25 11:12:00 1998 +--- uname.c Wed Mar 25 13:51:09 1998 +*************** +*** 66,79 **** + char *uptr; + { + FILE * uucpf; +! char * hostname; + if ((uucpf = fopen(HOSTFILE,"r")) == NULL) { + fprintf(stderr,"Couldn't open %s to determine hostname. Contact your system administrator.\n", + HOSTFILE); + exit(1); + } else { + fgets(uptr, 256, uucpf); +- fclose(tmpfp); + } + p = index(uptr, '\n'); + if (p) +--- 66,78 ---- + char *uptr; + { + FILE * uucpf; +! char * p; + if ((uucpf = fopen(HOSTFILE,"r")) == NULL) { + fprintf(stderr,"Couldn't open %s to determine hostname. Contact your system administrator.\n", + HOSTFILE); + exit(1); + } else { + fgets(uptr, 256, uucpf); + } + p = index(uptr, '\n'); + if (p) -- cgit v1.2.3