diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/disk_interface.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc index 3233144..090e94e 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -146,6 +146,9 @@ bool RealDiskInterface::WriteFile(const string& path, const string& contents) { bool RealDiskInterface::MakeDir(const string& path) { if (::MakeDir(path) < 0) { + if (errno == EEXIST) { + return true; + } Error("mkdir(%s): %s", path.c_str(), strerror(errno)); return false; } |