From 90c4f810e4d822a6de3850826404815ad3edb5bb Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 4 Jun 2018 05:47:15 +0000 Subject: [PATCH] MFC r333098: Don't bail out from the check if readboot() returns !FSFATAL. This can happen when the fsinfo signature is invalid, and the user have choose to fix it, in which case the code would return FSBOOTMOD (not FSOK but not FSFATAL either). All other (fatal) cases would return FSFATAL. Obtained from: Android Open Source Project Obtained from: https://android.googlesource.com/platform/external/fsck_msdos/+/d8775a29ea7eac2e5f1504dd21da3725b93b3036 git-svn-id: svn://svn.freebsd.org/base/stable/10@334606 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sbin/fsck_msdosfs/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c index 083389e09..32efd508b 100644 --- a/sbin/fsck_msdosfs/check.c +++ b/sbin/fsck_msdosfs/check.c @@ -72,7 +72,7 @@ checkfilesys(const char *fname) return 8; } - if (readboot(dosfs, &boot) != FSOK) { + if (readboot(dosfs, &boot) == FSFATAL) { close(dosfs); printf("\n"); return 8; -- 2.45.0