* 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:
Axel Dörfler 2009-06-17 14:07:24 +00:00
parent 2898a353e2
commit 0bb8521b68

View File

@ -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;
}