From 6874ebd3447dd0265a634640e2174f74f52ba402 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 7 Dec 2010 01:23:29 +0000 Subject: [PATCH] Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. Also use the standard macros instead of octal notation. llvm-svn: 121093 --- lib/Support/Unix/PathV2.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index 1362237199b..c547e6606f7 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;