* create_directory() did not take the umask into account.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31085 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -980,7 +980,7 @@ create_directory(const char *path, mode_t mode)
|
|||||||
return B_NOT_A_DIRECTORY;
|
return B_NOT_A_DIRECTORY;
|
||||||
} else {
|
} else {
|
||||||
// it doesn't exist -- create it
|
// it doesn't exist -- create it
|
||||||
error = _kern_create_dir(-1, dirPath.Path(), mode);
|
error = _kern_create_dir(-1, dirPath.Path(), mode & ~__gUmask);
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user