From 0bb8521b687a586a897fdf96fffb4da24399eb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 17 Jun 2009 14:07:24 +0000 Subject: [PATCH] * 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 --- src/kits/storage/Directory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/storage/Directory.cpp b/src/kits/storage/Directory.cpp index 7b7be681d8..537625fa06 100644 --- a/src/kits/storage/Directory.cpp +++ b/src/kits/storage/Directory.cpp @@ -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; }