mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-08-19 03:47:26 +00:00
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:
committed by
Otavio Pontes
parent
691f4b45e4
commit
a2ec305b46
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user