diff --git a/p2p/source/load.cpp b/p2p/source/load.cpp index bc148f5b9..4408a6279 100644 --- a/p2p/source/load.cpp +++ b/p2p/source/load.cpp @@ -39,7 +39,7 @@ void Create(const std::string &path) { #ifdef _WIN32 orc_syscall(mkdir(path.c_str()), ERROR_ALREADY_EXISTS); #else - orc_syscall(mkdir(path.c_str(), 0755)); + orc_syscall(mkdir(path.c_str(), 0755), EEXIST); #endif }