update-done: quit earlier on failure

This commit is contained in:
Yu Watanabe 2018-11-23 04:40:22 +09:00
parent 3664cbabdd
commit fd1bff7db5
1 changed files with 1 additions and 2 deletions

View File

@ -47,12 +47,11 @@ int main(int argc, char *argv[]) {
r = mac_selinux_init();
if (r < 0) {
log_error_errno(r, "SELinux setup failed: %m");
goto finish;
return EXIT_FAILURE;
}
r = apply_timestamp("/etc/.updated", &st.st_mtim);
q = apply_timestamp("/var/.updated", &st.st_mtim);
finish:
return r < 0 || q < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}