diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:23:29 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:23:29 +0000 |
commit | e5755beb47ddd28b6a7d948cea34a896fa1732d3 (patch) | |
tree | b2647c30fd217345415035d4c75e7a70dafcb16b /llvm/lib/Support/Unix/PathV2.inc | |
parent | 98c7a114de14b80bfc1741a11e87394e79b70c48 (diff) | |
download | bcm5719-llvm-e5755beb47ddd28b6a7d948cea34a896fa1732d3.tar.gz bcm5719-llvm-e5755beb47ddd28b6a7d948cea34a896fa1732d3.zip |
Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. Also use
the standard macros instead of octal notation.
llvm-svn: 121093
Diffstat (limited to 'llvm/lib/Support/Unix/PathV2.inc')
-rw-r--r-- | llvm/lib/Support/Unix/PathV2.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc index 1362237199b..c547e6606f7 100644 --- a/llvm/lib/Support/Unix/PathV2.inc +++ b/llvm/lib/Support/Unix/PathV2.inc @@ -157,7 +157,7 @@ error_code create_directory(const Twine &path, bool &existed) { 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; |