httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aram W. Mirzadeh" <...@qosina.com>
Subject Re: Votes for 0.8.12...
Date Tue, 29 Aug 1995 17:45:21 GMT
At 11:57 AM 8/29/95 EDT, you wrote:
>>-1 patch11.access_cleanup --- Eliminate compiler warning from mod_access.c.
>>   [Robert Thau]
>                This didn't work for me.... I'm still having a problem with it.
>
>What sort of problem?  (This patch adds one #include to mod_access.c;
>its sole purpose is to eliminate a compiler warning, and it's been included
>with a bunch of the block patches we've got from other people.  It surely
>has nothing to do with whatever problems you're having with includes...).
>

Sorry, wrong patch, change that to a +1.  Here is what I need for the linux
system
to work properly.  I know it's stupid, but it seems to be what's causing the
problem.
I'm not sure if I did it right or not... could someone please check it
before putting it
up as a patch though. ( It does work, I'm not sure of the impact on other
systems).

patch1:

*** util.c	Mon Aug 28 15:47:29 1995
--- util.c.orig	Mon Aug 28 15:47:08 1995
***************
*** 765,771 ****
  #ifndef MINIMAL_DNS
      hptr = gethostbyaddr((char *)iaddr, sizeof(struct in_addr), AF_INET);
      if(hptr) {
!         conn->remote_host = pstrdup(conn->pool, (void *)hptr->h_name);
          conn->remote_name = conn->remote_host;
          str_tolower (conn->remote_host);
      }
--- 765,771 ----
  #ifndef MINIMAL_DNS
      hptr = gethostbyaddr((char *)iaddr, sizeof(struct in_addr), AF_INET);
      if(hptr) {
!         conn->remote_host = pstrdup(conn->pool, hptr->h_name);
          conn->remote_name = conn->remote_host;
          str_tolower (conn->remote_host);
      }
***************
*** 835,841 ****
                  return pstrdup(a, p->h_aliases[x]);
          }
          return NULL;
!     } else return pstrdup(a, (void *)p->h_name);
  }
  
  char *get_local_host(pool *a)
--- 835,841 ----
                  return pstrdup(a, p->h_aliases[x]);
          }
          return NULL;
!     } else return pstrdup(a, p->h_name);
  }
  
  char *get_local_host(pool *a)


patch2:

*** http_main.c	Mon Aug 28 15:46:58 1995
--- http_main.c.orig	Mon Aug 28 15:46:45 1995
***************
*** 662,668 ****
  	    struct hostent *h = gethostbyaddr ((char *)&(s->host_addr),
  					       sizeof (struct in_addr),
  					       AF_INET);
! 	    s->server_hostname = pstrdup (pconf, (void *)h->h_name);
  	}
  }
  	
--- 662,668 ----
  	    struct hostent *h = gethostbyaddr ((char *)&(s->host_addr),
  					       sizeof (struct in_addr),
  					       AF_INET);
! 	    s->server_hostname = pstrdup (pconf, h->h_name);
  	}
  }
  	


--
Aram W. Mirzadeh, MIS Manager, Qosina Corporation
http://www.qosina.com/~awm/, awm@qosina.com




Mime
View raw message