projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cad93bd
)
Create archives with the same permissions are ar.
author
Owen Anderson
<resistor@mac.com>
Sat, 24 May 2008 05:42:29 +0000
(
05:42
+0000)
committer
Owen Anderson
<resistor@mac.com>
Sat, 24 May 2008 05:42:29 +0000
(
05:42
+0000)
Patch by Mikael Lepistö.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51540
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Archive/ArchiveWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/Archive/ArchiveWriter.cpp
b/lib/Archive/ArchiveWriter.cpp
index c5d54fba7e02fc5babafaecb246fa85a794f9f0a..2269464c6c5351915e8e90f192612431d1f7ad07 100644
(file)
--- a/
lib/Archive/ArchiveWriter.cpp
+++ b/
lib/Archive/ArchiveWriter.cpp
@@
-467,5
+467,12
@@
Archive::writeToDisk(bool CreateSymbolTable, bool TruncateNames, bool Compress,
if (TmpArchive.renamePathOnDisk(archPath, ErrMsg))
return true;
+ // Set correct read and write permissions after temporary file is moved
+ // to final destination path.
+ if (archPath.makeReadableOnDisk(ErrMsg))
+ return true;
+ if (archPath.makeWriteableOnDisk(ErrMsg))
+ return true;
+
return false;
}