mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Create archives with the same permissions are ar.
Patch by Mikael Lepistö. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cad93bd1c3
commit
a5464f3659
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user