You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ak...@locus.apache.org on 2000/06/02 18:30:27 UTC
cvs commit: apache-1.3/src/os/win32 util_win32.c
ake 00/06/02 09:30:27
Modified: src CHANGES
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.1545 +3 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.1544
retrieving revision 1.1545
diff -u -r1.1544 -r1.1545
--- CHANGES 2000/06/02 14:49:58 1.1544
+++ CHANGES 2000/06/02 16:30:25 1.1545
@@ -1,4 +1,7 @@
Changes with Apache 1.3.13
+ *) Fix Win32 bug when pathname length exactly equals MAX_PATH.
+ This bug caused directory index to be displayed rather than
+ returning an error. [Allan Edwards <ak...@raleigh.ibm.com>]
*) Correct mod_proxy Win95 dynamic link __declspec(thread) bug.
David Whitmarsh <da...@dial.pipex.com>
1.34 +1 -1 apache-1.3/src/os/win32/util_win32.c
Index: util_win32.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/os/win32/util_win32.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- util_win32.c 1999/02/18 11:07:14 1.33
+++ util_win32.c 2000/06/02 16:30:27 1.34
@@ -580,7 +580,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;