mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
* BugFix: Correct usage of mkdir in posixVolume.cpp to check for the expected successful return value.
This commit is contained in:
parent
14ebeaf3eb
commit
0cf8498fce
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue