From fd1bff7db5da18fe9ec52bef2b2fdcea742e8ab2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 23 Nov 2018 04:40:22 +0900 Subject: [PATCH] update-done: quit earlier on failure --- src/update-done/update-done.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/update-done/update-done.c b/src/update-done/update-done.c index 953e0fa..c76c2d1 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; } -- 2.7.4