Read ldd error message from both stdout and stderr

This commit is contained in:
Joker_
2020-09-23 11:49:24 +08:00
committed by GitHub
parent e4fff0a5b7
commit 76f1d8fee5

View File

@@ -162,7 +162,7 @@ namespace linuxdeploy {
const auto result = lddProc.run();
if (result.exit_code() != 0) {
if (result.stdout_string().find("not a dynamic executable") != std::string::npos) {
if (result.stdout_string().find("not a dynamic executable") != std::string::npos || result.stderr_string().find("not a dynamic executable") != std::string::npos) {
ldLog() << LD_WARNING << this->d->path << "is not linked dynamically" << std::endl;
return {};
}