From: Allan K. Edwards Date: Wed, 7 Jun 2000 22:50:15 +0000 (+0000) Subject: Fix Win32 bug when pathname length exactly equals MAX_PATH. X-Git-Tag: APACHE_2_0_ALPHA_5~413 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75f76def88194ea3d2dda052eea38852d6bce46d;p=thirdparty%2Fapache%2Fhttpd.git Fix Win32 bug when pathname length exactly equals MAX_PATH. 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 --- diff --git a/os/win32/util_win32.c b/os/win32/util_win32.c index fef9de799b1..330a8573699 100644 --- a/os/win32/util_win32.c +++ b/os/win32/util_win32.c @@ -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;