HomeFreeBSD

Fix division by zero when reading boot block by postponing division

Description

Fix division by zero when reading boot block by postponing division
until it is necessary and after we validated bytes per sector is non-
zero.

Obtained from: Android https://android-review.googlesource.com/c/platform/external/fsck_msdos/+/36362
MFC after: 2 weeks

Details

Provenance
delphijAuthored on
Parents
rS335654: config(8): part of patch disappeared, don't close ifp at the end
Branches
Unknown
Tags
Unknown