mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 20:10:50 +08:00
Fix some posix assumptions related to running shell commands.
Differential Revision: http://reviews.llvm.org/D6553 Reviewed By: Greg Clayton llvm-svn: 223548
This commit is contained in:
@@ -27,7 +27,7 @@ FileSystem::MakeDirectory(const char *path, uint32_t file_permissions)
|
||||
// On Win32, the mode parameter is ignored, as Windows files and directories support a
|
||||
// different permission model than POSIX.
|
||||
Error error;
|
||||
if (!::CreateDirectory(path, NULL))
|
||||
if (!::CreateDirectory(path, NULL) && GetLastError() != ERROR_ALREADY_EXISTS)
|
||||
error.SetError(::GetLastError(), lldb::eErrorTypeWin32);
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user