From e356800b5b46c325a9ab53741bf410621d6d9f66 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 7 May 2024 11:11:51 +0000 Subject: [PATCH] The behavior of Create must be closer to mkdir -p. --- p2p/source/load.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }