summaryrefslogtreecommitdiff
path: root/news/nntpclnt/patches/patch-aa
blob: da3b6300f260ffb2236ce6a1257b13f27a4c7d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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)