Procházet zdrojové kódy

* BugFix: Correct usage of mkdir in posixVolume.cpp to check for the expected successful return value.

Robert MacGregor před 4 roky
rodič
revize
0cf8498fce
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Engine/source/platformPOSIX/posixVolume.cpp

+ 1 - 1
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);
    }