Warn user when a 3rd-party binary isn't executable

This commit notifies the user that the 3rd-party bundle they installed
isn't configured properly so they can know something about the quality
of the 3rd-party repository they are using.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
This commit is contained in:
Castulo Martinez
2020-02-06 10:44:08 -08:00
committed by Otavio Pontes
parent 691f4b45e4
commit a2ec305b46
+1
View File
@@ -118,6 +118,7 @@ static enum swupd_code create_wrapper_script(char *filename)
binary = sys_path_join(globals.path_prefix, filename);
if (!sys_filelink_is_executable(binary)) {
warn("File %s does not have 'execute' permission so it won't be exported\n", filename);
goto close_and_exit;
}