[Haiku-commits] r31085 - haiku/trunk/src/kits/storage

axeld at BerliOS axeld at mail.berlios.de
Wed Jun 17 16:07:25 CEST 2009


Author: axeld
Date: 2009-06-17 16:07:24 +0200 (Wed, 17 Jun 2009)
New Revision: 31085
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31085&view=rev

Modified:
   haiku/trunk/src/kits/storage/Directory.cpp
Log:
* create_directory() did not take the umask into account.


Modified: haiku/trunk/src/kits/storage/Directory.cpp
===================================================================
--- haiku/trunk/src/kits/storage/Directory.cpp	2009-06-17 13:45:07 UTC (rev 31084)
+++ haiku/trunk/src/kits/storage/Directory.cpp	2009-06-17 14:07:24 UTC (rev 31085)
@@ -980,7 +980,7 @@
 				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;
 		}




More information about the Haiku-commits mailing list