Skip to content

Commit c6f9a2f

Browse files
committed
Fail early if the service config cannot be found
If finding the service config fails with an I/O error, bail out promptly.
1 parent 9114fb3 commit c6f9a2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libqrexec/exec.c

+2
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ static int load_service_config_raw(struct qrexec_parsed_command *cmd,
327327
config_full_path, sizeof(config_full_path), NULL);
328328
if (ret == -1)
329329
return 0;
330+
if (ret != 0)
331+
return ret;
330332
return qubes_toml_config_parse(config_full_path, &cmd->wait_for_session, user,
331333
&cmd->send_service_descriptor,
332334
&cmd->exit_on_stdout_eof,

0 commit comments

Comments
 (0)