]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Quick test on AIX indicates that stat("",&info) returns ENOENT (2).
authorBill Stoddard <stoddard@apache.org>
Wed, 26 Sep 2001 21:17:43 +0000 (21:17 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 26 Sep 2001 21:17:43 +0000 (21:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91156 13f79535-47bb-0310-9956-ffa450edef68

src/os/win32/os.c

index 87e5a64207731b60d2f4193d7d296fb177261d45..f8a9dcf6e17b6e9ba09093d202af032fe75624f1 100755 (executable)
@@ -81,7 +81,12 @@ API_EXPORT(int) os_stat(const char *szPath, struct stat *pStat)
     int n;
     int len = strlen(szPath);
     
-    if ((len == 0) || (len >= MAX_PATH)) {
+    if (len == 0) {
+        errno = ENOENT;
+        return -1;
+    }
+
+    if (len >= MAX_PATH) {
         errno = ENAMETOOLONG;
         return -1;
     }