[llvm-commits] [llvm] r121093 - /llvm/trunk/lib/Support/Unix/PathV2.inc
Michael J. Spencer
bigcheesegs at gmail.com
Mon Dec 6 17:23:29 PST 2010
Author: mspencer
Date: Mon Dec 6 19:23:29 2010
New Revision: 121093
URL: http://llvm.org/viewvc/llvm-project?rev=121093&view=rev
Log:
Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. Also use
the standard macros instead of octal notation.
Modified:
llvm/trunk/lib/Support/Unix/PathV2.inc
Modified: llvm/trunk/lib/Support/Unix/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/PathV2.inc?rev=121093&r1=121092&r2=121093&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Unix/PathV2.inc Mon Dec 6 19:23:29 2010
@@ -157,7 +157,7 @@
SmallString<128> path_storage;
StringRef p = path.toNullTerminatedStringRef(path_storage);
- if (::mkdir(p.begin(), 0700) == -1) {
+ if (::mkdir(p.begin(), S_IRWXU | S_IRWXG) == -1) {
if (errno != errc::file_exists)
return error_code(errno, system_category());
existed = true;
More information about the llvm-commits
mailing list