Skip to content

Commit fd1bff7

Browse files
committed
update-done: quit earlier on failure
1 parent 3664cba commit fd1bff7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/update-done/update-done.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ int main(int argc, char *argv[]) {
4747
r = mac_selinux_init();
4848
if (r < 0) {
4949
log_error_errno(r, "SELinux setup failed: %m");
50-
goto finish;
50+
return EXIT_FAILURE;
5151
}
5252

5353
r = apply_timestamp("/etc/.updated", &st.st_mtim);
5454
q = apply_timestamp("/var/.updated", &st.st_mtim);
5555

56-
finish:
5756
return r < 0 || q < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
5857
}

0 commit comments

Comments
 (0)