Source-Changes archive

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

CVS commit: [netbsd-7] src/sbin/disklabel



Module Name:    src
Committed By:   martin
Date:           Thu Jul 30 09:45:24 UTC 2015

Modified Files:
        src/sbin/disklabel [netbsd-7]: bswap.c

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #891):
        sbin/disklabel/bswap.c: revision 1.3-1.4

Fix botch in "make disklabel a MI tool" changes in rev 1.2.

After that chanage, "MAXPARTITIONS" constant is not for the target port.
If host's MAXPARTITIONS is larger than a value of the target label and
target endianness is different from the build host, bswaplabel() could
overwrite data beyond the disklabel and primary boot stored after
LABELSECTOR in images might be corrupted.

This fixes boot failure of sun2 liveimage built by
"build.sh -U -m sun2 release live-image"
on TME.

Fix build.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.6.1 src/sbin/disklabel/bswap.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