* 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:
parent
2898a353e2
commit
0bb8521b68
@ -980,7 +980,7 @@ create_directory(const char *path, mode_t mode)
|
||||
return B_NOT_A_DIRECTORY;
|
||||
} else {
|
||||
// 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)
|
||||
return error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user