Skip to content

Commit

Permalink
Treat unreadable service files as invalid
Browse files Browse the repository at this point in the history
This is a followup to a0869bd.
If we return 0 the parsing is considered complete and bad things
happen in manager_load_service_file.
  • Loading branch information
yaneti committed Jan 22, 2019
1 parent bd1e9eb commit e999440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/launch/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ static int manager_ini_reader_parse_file(CIniGroup **groupp, const char *path) {
fprintf(stderr, "Unable to open service file '%s' (%d): %m\n", path, errno);

*groupp = NULL;
return 0;
return MANAGER_E_INVALID_SERVICE_FILE;
}

r = c_ini_reader_new(&reader);
Expand Down

0 comments on commit e999440

Please sign in to comment.