From: Lennart Poettering Date: Sun, 23 Dec 2018 18:24:40 +0000 (+0100) Subject: fsck: use symbolic names where we have them X-Git-Tag: v241-rc1~107^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbf13087cc0db191e9ab0f70bef9f1f64d6bb340;p=thirdparty%2Fsystemd.git fsck: use symbolic names where we have them --- diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index ba39f596fc7..524327c4da0 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -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) {