From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:53 +0000 (-0700) Subject: Common source file change; not directly applicable to open-vm-tools. X-Git-Tag: stable-10.2.0~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb819650082a6714d0435831bf2bbf31c66718c5;p=thirdparty%2Fopen-vm-tools.git Common source file change; not directly applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/file/file.c b/open-vm-tools/lib/file/file.c index 2f14734ff..01db6aa05 100644 --- a/open-vm-tools/lib/file/file.c +++ b/open-vm-tools/lib/file/file.c @@ -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;