mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
update-done: quit earlier on failure
This commit is contained in:
parent
3664cbabdd
commit
fd1bff7db5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user