httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Tatarinov <tatar...@prairie.NoDak.edu>
Subject Re: problem with DOS fix patch
Date Tue, 30 Dec 1997 20:44:30 GMT
> Okay, the current CVS tree for 1.3 gives a 501 "Method not Implemented"
> error, "can not do GE on /statu" when trying to access "/status", and
> similar errors trying to access anything else.  However, backing out the
> DOS fix (reverting to rev 1.79 of util.c) doesn't fix the problem, so it
> was something else committed to CVS recently which started causing this,
> probably ap_cpystrn.  So the DOS patch is probably okay, but we need to
> look at ap_cpystrn again.
> 
>         Brian

Seems like the problem is in getword_white. Here is a patch:
 

Index: util.c
===================================================================
RCS file: /cvs/apachen/src/main/util.c,v
retrieving revision 1.80
diff -c -r1.80 util.c
*** util.c      1997/12/30 19:03:18     1.80
--- util.c      1997/12/30 20:37:29
***************
*** 540,546 ****
      }

      res = palloc(atrans, pos + 1);
!     ap_cpystrn(res, *line, pos);

      while (isspace((*line)[pos]))
        ++pos;
--- 540,546 ----
      }

      res = palloc(atrans, pos + 1);
!     ap_cpystrn(res, *line, pos + 1);

      while (isspace((*line)[pos]))
        ++pos;

Mime
View raw message