]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fsck: use symbolic names where we have them
authorLennart Poettering <lennart@poettering.net>
Sun, 23 Dec 2018 18:24:40 +0000 (19:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Jan 2019 16:50:39 +0000 (17:50 +0100)
src/fsck/fsck.c

index ba39f596fc75b4a320a5ec3d127fc927cd3d14b0..524327c4da04c87e6d38561e5731baef57756c37 100644 (file)
@@ -414,7 +414,7 @@ static int run(int argc, char *argv[]) {
         exit_status = wait_for_terminate_and_check("fsck", pid, WAIT_LOG_ABNORMAL);
         if (exit_status < 0)
                 return exit_status;
-        if (exit_status & ~1) {
+        if ((exit_status & ~FSCK_ERROR_CORRECTED) != FSCK_SUCCESS) {
                 log_error("fsck failed with exit status %i.", exit_status);
 
                 if ((exit_status & FSCK_SYSTEM_SHOULD_REBOOT) && root_directory) {