]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file change; not directly applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:53 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:53 +0000 (11:23 -0700)
open-vm-tools/lib/file/file.c

index 2f14734ff50402c23cf1d7ec714607e0070ff062..01db6aa0584dc1fb444b9a7dd203c244f7ec5609 100644 (file)
@@ -1679,8 +1679,12 @@ File_CreateDirectoryHierarchyEx(const char *pathName,   // IN:
        * Bugfix 1592498, set last error "Access denied" instead of
        * "File not found". File_XXX have different implementations on
        * Windows and Linux, this problem only happens on Windows.
+       *
+       * Bugfix 1878912, working around a problem when we have evidence that
+       * directory exists but we get intermittent errors when we check its
+       * existence.
        */
-      failed = !File_CreateDirectoryEx(temp, mask);
+      failed = !File_EnsureDirectoryEx(temp, mask);
 #if defined(_WIN32)
       status = GetLastError();
       statusNew = ERROR_SUCCESS;