From 0cf8498fcebe1ec4f652df03200532e39cba81d9 Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Tue, 26 Oct 2021 08:22:58 -0400 Subject: [PATCH] * BugFix: Correct usage of mkdir in posixVolume.cpp to check for the expected successful return value. --- Engine/source/platformPOSIX/posixVolume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/platformPOSIX/posixVolume.cpp b/Engine/source/platformPOSIX/posixVolume.cpp index 6e691dbbc..d06dccd13 100644 --- a/Engine/source/platformPOSIX/posixVolume.cpp +++ b/Engine/source/platformPOSIX/posixVolume.cpp @@ -196,7 +196,7 @@ FileNodeRef PosixFileSystem::create(const Path& path, FileNode::Mode mode) { String file = buildFileName(_volume,path); - if (mkdir(file.c_str(),S_IRWXU | S_IRWXG | S_IRWXO)) + if (mkdir(file.c_str(),S_IRWXU | S_IRWXG | S_IRWXO) == 0) return new PosixDirectory(path,file); }