]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
update-done: quit earlier on failure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Nov 2018 19:40:22 +0000 (04:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Nov 2018 21:22:30 +0000 (06:22 +0900)
src/update-done/update-done.c

index 953e0fad211413ba5d80bd85d5626e8953c1002e..c76c2d1f5180f5353518fa96fcfc62c2a9d0ea03 100644 (file)
@@ -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;
 }