mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 09:13:37 +01:00
fsck_msdosfs: do not call checksize() if the cluster is bad
PR: 276464 MFC after: 1 week
This commit is contained in:
parent
edec803c5b
commit
deeb1d3402
@ -995,7 +995,7 @@ readDosDirSection(struct fat_descriptor *fat, struct dosDirEntry *dir)
|
|||||||
n->next = pendingDirectories;
|
n->next = pendingDirectories;
|
||||||
n->dir = d;
|
n->dir = d;
|
||||||
pendingDirectories = n;
|
pendingDirectories = n;
|
||||||
} else {
|
} else if (!(mod & FSERROR)) {
|
||||||
mod |= k = checksize(fat, p, &dirent);
|
mod |= k = checksize(fat, p, &dirent);
|
||||||
if (k & FSDIRMOD)
|
if (k & FSDIRMOD)
|
||||||
mod |= THISMOD;
|
mod |= THISMOD;
|
||||||
|
Loading…
Reference in New Issue
Block a user