From 1f498772b46088666bf766b4f73d2bfd26e55dc9 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Sat, 23 Feb 2019 18:01:47 +0100 Subject: [PATCH] Properly handle nonexisting files --- src/core/appdir.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/appdir.cpp b/src/core/appdir.cpp index f42cc4a..12057e5 100644 --- a/src/core/appdir.cpp +++ b/src/core/appdir.cpp @@ -332,6 +332,10 @@ namespace linuxdeploy { return true; } + if (!bf::exists(path)) { + ldLog() << LD_ERROR << logPrefix << LD_NO_SPACE << "Cannot deploy non-existing library file:" << path << std::endl; + return false; + } static auto isInExcludelist = [&logPrefix](const bf::path& fileName) { for (const auto& excludePattern : generatedExcludelist) {