aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Windows
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-11 00:07:44 +0000
committerEric Christopher <echristo@apple.com>2012-05-11 00:07:44 +0000
commit61aef8bdf7a60bb1ab510fee0c5b2792468aadd3 (patch)
treec88c6fc2fc6e7bb51391a594dcff6ed4fbdb0df3 /lib/Support/Windows
parent620ee81fa0bef312d711688c86b73aa16f088509 (diff)
downloadexternal_llvm-61aef8bdf7a60bb1ab510fee0c5b2792468aadd3.zip
external_llvm-61aef8bdf7a60bb1ab510fee0c5b2792468aadd3.tar.gz
external_llvm-61aef8bdf7a60bb1ab510fee0c5b2792468aadd3.tar.bz2
Allow unique_file to take a mode for file permissions, but default
to user only read/write. Part of rdar://11325849 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows')
-rw-r--r--lib/Support/Windows/PathV2.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc
index 66b8d84..4868b18 100644
--- a/lib/Support/Windows/PathV2.inc
+++ b/lib/Support/Windows/PathV2.inc
@@ -497,9 +497,11 @@ handle_status_error:
return error_code::success();
}
+// FIXME: mode should be used here and default to user r/w only,
+// it currently comes in as a UNIX mode.
error_code unique_file(const Twine &model, int &result_fd,
- SmallVectorImpl<char> &result_path,
- bool makeAbsolute) {
+ SmallVectorImpl<char> &result_path,
+ bool makeAbsolute, unsigned mode) {
// Use result_path as temp storage.
result_path.set_size(0);
StringRef m = model.toStringRef(result_path);