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:
parent
7113af0f51
commit
3e855e9c21
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user