diff options
author | tv <tv@pkgsrc.org> | 1998-03-25 19:31:35 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1998-03-25 19:31:35 +0000 |
commit | cfef22702edc19bb5cac5ad292ffa77bcb31e3c1 (patch) | |
tree | 289ddcb4471f72899057d8ee20e61e9695e22d3b /news/nntpclnt/patches | |
parent | 79f33c13bd1a79a9a9903c8759c4456bac3794fc (diff) | |
download | pkgsrc-cfef22702edc19bb5cac5ad292ffa77bcb31e3c1.tar.gz |
Addition of "nntpclnt", the reference implementation of RFC977 and the
popularly used inews posting program.
Diffstat (limited to 'news/nntpclnt/patches')
-rw-r--r-- | news/nntpclnt/patches/patch-aa | 32 |
1 files changed, 32 insertions, 0 deletions
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) |