]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Fix checksum calculation:
authormarcel <marcel@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Sep 2014 22:16:20 +0000 (22:16 +0000)
committermarcel <marcel@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Sep 2014 22:16:20 +0000 (22:16 +0000)
commit4de6f9ce56be6dc9c2be6f87dad0b47dc9dfaa46
treec3bdfabe4f1fff0d3b0f3582d97dd6b615932fd5
parent2898617254075bbe14cf1f2621d4589050a20e47
Fix checksum calculation:
1.  Iterate over all partitions counted in the label, which can be more
   than the number of partitions given to mkimg(1).
2.  Start the checksum from the beginning of the label; not the beginning
   of the bootarea.

Tested with bsdlabel(8).

Approved by: re@ (rodrigc)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/mkimg/bsd.c