httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@locus.apache.org
Subject cvs commit: apache-2.0/src/os/win32 util_win32.c
Date Wed, 07 Jun 2000 22:50:15 GMT
ake         00/06/07 15:50:15

  Modified:    src/os/win32 util_win32.c
  Log:
  Fix Win32 bug when pathname length exactly equals MAX_PATH.
  This bug caused directory index to be displayed rather than
  returning an error.
  
  Revision  Changes    Path
  1.11      +1 -1      apache-2.0/src/os/win32/util_win32.c
  
  Index: util_win32.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/os/win32/util_win32.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- util_win32.c	2000/05/01 14:40:03	1.10
  +++ util_win32.c	2000/06/07 22:50:15	1.11
  @@ -497,7 +497,7 @@
       };
   
       /* Test 1 */
  -    if (strlen(file) > MAX_PATH) {
  +    if (strlen(file) >= MAX_PATH) {
   	/* Path too long for Windows. Note that this test is not valid
   	 * if the path starts with //?/ or \\?\. */
   	return 0;
  
  
  

Mime
View raw message