]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix Win32 bug when pathname length exactly equals MAX_PATH.
authorAllan K. Edwards <ake@apache.org>
Wed, 7 Jun 2000 22:50:15 +0000 (22:50 +0000)
committerAllan K. Edwards <ake@apache.org>
Wed, 7 Jun 2000 22:50:15 +0000 (22:50 +0000)
This bug caused directory index to be displayed rather than
returning an error.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85461 13f79535-47bb-0310-9956-ffa450edef68

os/win32/util_win32.c

index fef9de799b1c5213f920ddd7a5cc61bcb9c62436..330a8573699804bcca4fc00b1e1d7e349d5ec10e 100644 (file)
@@ -497,7 +497,7 @@ API_EXPORT(int) ap_os_is_filename_valid(const char *file)
     };
 
     /* 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;