mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Avoid double insertion of interpreter value.
PiperOrigin-RevId: 346985006 Change-Id: Id18346702cee973e487cc608ccf2bd08f40a0da6
This commit is contained in:
parent
2a9320dbac
commit
13ff7a42da
|
@ -436,7 +436,7 @@ absl::Status Mounts::AddMappingsForBinary(const std::string& path,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SAPI_RETURN_IF_ERROR(AddFile(interpreter));
|
imported_libraries.insert(interpreter);
|
||||||
for (const auto& lib : imported_libraries) {
|
for (const auto& lib : imported_libraries) {
|
||||||
SAPI_RETURN_IF_ERROR(AddFile(lib));
|
SAPI_RETURN_IF_ERROR(AddFile(lib));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user