diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-22 20:40:22 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-22 22:22:30 +0100 |
commit | fd1bff7db5da18fe9ec52bef2b2fdcea742e8ab2 (patch) | |
tree | 24fb75d62cb6f035c03f7dbc16719f22820b1795 /src/update-done | |
parent | update-utmp: use _cleanup_ attribute to finalize process (diff) | |
download | systemd-fd1bff7db5da18fe9ec52bef2b2fdcea742e8ab2.tar.xz systemd-fd1bff7db5da18fe9ec52bef2b2fdcea742e8ab2.zip |
update-done: quit earlier on failure
Diffstat (limited to 'src/update-done')
-rw-r--r-- | src/update-done/update-done.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/update-done/update-done.c b/src/update-done/update-done.c index 953e0fad21..c76c2d1f51 100644 --- a/src/update-done/update-done.c +++ b/src/update-done/update-done.c @@ -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; } |