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:	d8775a29ea
MFC after:	2 weeks
This commit is contained in:
Xin LI 2018-04-30 05:57:55 +00:00
parent 7113af0f51
commit 3e855e9c21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333098

View File

@ -74,7 +74,7 @@ checkfilesys(const char *fname)
return 8;
}
if (readboot(dosfs, &boot) != FSOK) {
if (readboot(dosfs, &boot) == FSFATAL) {
close(dosfs);
printf("\n");
return 8;