Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sbin/fsck_lfs



Module Name:    src
Committed By:   perseant
Date:           Sun Oct 12 01:44:26 UTC 2025

Modified Files:
        src/sbin/fsck_lfs: lfs.c

Log Message:
Look at the superblock magic number before attempting to read the address
of the first alternate out of it.  If the magic number doesn't match one
of our known numbers, the primary is invalid and we have no way of locating
an alternate.  Bail out in that case.

Makes fsck_lfs work for LFS64, at least in the minimal sense of being able
to report that a newly created LFS64 has no errors.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sbin/fsck_lfs/lfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index