Module Name: src Committed By: tsutsui Date: Fri Jul 17 20:30:21 UTC 2015
Modified Files: src/sbin/disklabel: bswap.c Log Message: 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. Should be pulled up to netbsd-7. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sbin/disklabel/bswap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.