summaryrefslogtreecommitdiff
path: root/news/nntpclnt/patches
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-03-25 19:31:35 +0000
committertv <tv@pkgsrc.org>1998-03-25 19:31:35 +0000
commitcfef22702edc19bb5cac5ad292ffa77bcb31e3c1 (patch)
tree289ddcb4471f72899057d8ee20e61e9695e22d3b /news/nntpclnt/patches
parent79f33c13bd1a79a9a9903c8759c4456bac3794fc (diff)
downloadpkgsrc-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-aa32
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)