summaryrefslogtreecommitdiff
path: root/src/update-done
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-23 04:40:22 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-23 06:22:30 +0900
commitfd1bff7db5da18fe9ec52bef2b2fdcea742e8ab2 (patch)
tree24fb75d62cb6f035c03f7dbc16719f22820b1795 /src/update-done
parent3664cbabdd96413b433deb1f480a9509c5f10ce8 (diff)
downloadsystemd-fd1bff7db5da18fe9ec52bef2b2fdcea742e8ab2.tar.gz
update-done: quit earlier on failure
Diffstat (limited to 'src/update-done')
-rw-r--r--src/update-done/update-done.c3
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;
}