httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: cvs commit: apache-1.3/src/main http_core.c util.c
Date Sat, 24 Oct 1998 04:48:21 GMT
On 23 Oct 1998 19:06:29 -0000, coar@hyperreal.org wrote:

>  Log:
>  	Fix some more Win32-only problems: treat "{.*/}nul" on Win32
>  	the way we do "/dev/null" on Unix, and mention the inapplicability
>  	of the User directive if encountered on Win32.
>  
>  PR:		2078, 2303
>  Submitted by:	Ken Parzygnat <kparz@raleigh.ibm.com>
>  Reviewed by:	Ken Coar
>  
>  Revision  Changes    Path

[...]

>  1.136     +3 -1      apache-1.3/src/main/util.c
>  
>  Index: util.c
>  ===================================================================
>  RCS file: /export/home/cvs/apache-1.3/src/main/util.c,v
>  retrieving revision 1.135
>  retrieving revision 1.136
>  diff -u -r1.135 -r1.136
>  --- util.c	1998/10/10 00:40:07	1.135
>  +++ util.c	1998/10/23 19:06:27	1.136
>  @@ -760,7 +760,9 @@
>       if (fstat(fileno(file), &stbuf) == 0 &&
>           !S_ISREG(stbuf.st_mode) &&
>   #ifdef WIN32
>  -        strcasecmp(name, "nul") != 0) {
>  +        !(strcasecmp(name, "nul") == 0 ||
>  +          (strlen(name) >= 4 &&
>  +           strcasecmp(name + strlen(name) - 4, "/nul") == 0))) {
>   #else
>           strcmp(name, "/dev/null") != 0) {
>   #endif

This is also true for OS/2, can the #ifdef be made to include it?

--
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message