Skip to content

Commit cbf1308

Browse files
committed
fsck: use symbolic names where we have them
1 parent aebfc8f commit cbf1308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fsck/fsck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int run(int argc, char *argv[]) {
414414
exit_status = wait_for_terminate_and_check("fsck", pid, WAIT_LOG_ABNORMAL);
415415
if (exit_status < 0)
416416
return exit_status;
417-
if (exit_status & ~1) {
417+
if ((exit_status & ~FSCK_ERROR_CORRECTED) != FSCK_SUCCESS) {
418418
log_error("fsck failed with exit status %i.", exit_status);
419419

420420
if ((exit_status & FSCK_SYSTEM_SHOULD_REBOOT) && root_directory) {

0 commit comments

Comments
 (0)