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 | 79c3c3a1dece6408e45933ba575e05ceb6208235 (patch) | |
tree | 47607f1d32fe90b9ef424fa9bb8a73ec25d0b36f /lib/Support/Unix/PathV2.inc | |
parent | fbd1bbd7fa0ca592d09edea557806da05084a432 (diff) |
Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. Also use
the standard macros instead of octal notation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/PathV2.inc')
-rw-r--r-- | lib/Support/Unix/PathV2.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index 1362237199..c547e6606f 100644 --- a/lib/Support/Unix/PathV2.inc +++ b/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; |