freebsd-src/usr.sbin/fdread
Matt Jacobson 4c8bf76893 fdread: Fix logic bug when reading by sector
When reading by sector (because reading a whole track failed), we can
accidentally fall into the "should not happen" path, which both
(a) emits a spurious error message and (b) fouls up our position
accounting going forward.  Ensure we do not inappropriately fall into
that path.

Avoid obscuring the "short after" message in cases where it happens.

Signed-off-by: Matt Jacobson <mhjacobson@me.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1897
2025-11-25 11:17:26 -07:00
..
fdread.1 Deprecate fdc(4) and floppy utilities 2025-11-16 17:46:12 -05:00
fdread.c fdread: Fix logic bug when reading by sector 2025-11-25 11:17:26 -07:00
fdutil.c
fdutil.h
Makefile packages: move floppy utilities into a new package 2025-05-15 01:02:52 +01:00
Makefile.depend