Avoid double insertion of interpreter value.

PiperOrigin-RevId: 346985006
Change-Id: Id18346702cee973e487cc608ccf2bd08f40a0da6
This commit is contained in:
Sandboxed API Team 2020-12-11 06:11:19 -08:00 committed by Copybara-Service
parent 2a9320dbac
commit 13ff7a42da

View File

@ -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));
} }