Create archives with the same permissions are ar.
Patch by Mikael Lepistö. llvm-svn: 51540
This commit is contained in:
parent
65d18feef5
commit
3f4ebba1fa
|
@ -467,5 +467,12 @@ Archive::writeToDisk(bool CreateSymbolTable, bool TruncateNames, bool Compress,
|
||||||
if (TmpArchive.renamePathOnDisk(archPath, ErrMsg))
|
if (TmpArchive.renamePathOnDisk(archPath, ErrMsg))
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue