Paul Smith wrote:
+      size_t plen = strlen (path);
+
+      /* If path ends in /. make sure it is a directory.  This is because
+         'lstat' on Windows normalizes the argument foo/. => foo without
+         checking first that foo is a directory.  */
+      if (plen > 1 && path[plen - 1] == '.'
+          && (path[plen - 2] == '/' || path[plen - 2] == '\\')
+          && !_S_ISDIR (buf->st_mode))
+        return -1;

Isn't part of the problem that MS-Windows also mishandles names like "foo/" that end in "/" as opposed to ending in "/."? (I don't use MS-Windows so perhaps I should keep my mouth shut here, but still...

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to