forked from OSchip/llvm-project
parent
7301d39401
commit
9268a5d552
|
@ -343,12 +343,9 @@ static void doDisplayTable(StringRef Name, const object::Archive::Child &C) {
|
||||||
static void doExtract(StringRef Name, const object::Archive::Child &C) {
|
static void doExtract(StringRef Name, const object::Archive::Child &C) {
|
||||||
// Retain the original mode.
|
// Retain the original mode.
|
||||||
sys::fs::perms Mode = C.getAccessMode();
|
sys::fs::perms Mode = C.getAccessMode();
|
||||||
SmallString<128> Storage = Name;
|
|
||||||
|
|
||||||
int FD;
|
int FD;
|
||||||
failIfError(
|
failIfError(sys::fs::openFileForWrite(Name, FD, sys::fs::F_None, Mode), Name);
|
||||||
sys::fs::openFileForWrite(Storage.c_str(), FD, sys::fs::F_None, Mode),
|
|
||||||
Storage.c_str());
|
|
||||||
|
|
||||||
{
|
{
|
||||||
raw_fd_ostream file(FD, false);
|
raw_fd_ostream file(FD, false);
|
||||||
|
|
Loading…
Reference in New Issue