Date: Sun, 23 Mar 2014 01:17:03 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r263654 - user/marcel/mkimg Message-ID: <201403230117.s2N1H3Qu009448@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Sun Mar 23 01:17:02 2014 New Revision: 263654 URL: http://svnweb.freebsd.org/changeset/base/263654 Log: And the magic number is... necessary. Modified: user/marcel/mkimg/mbr.c Modified: user/marcel/mkimg/mbr.c ============================================================================== --- user/marcel/mkimg/mbr.c Sun Mar 23 01:10:05 2014 (r263653) +++ user/marcel/mkimg/mbr.c Sun Mar 23 01:17:02 2014 (r263654) @@ -68,6 +68,7 @@ mbr_write(int fd, lba_t imgsz __unused, memset(mbr + DOSPARTOFF, 0, secsz - DOSPARTOFF); } else memset(mbr, 0, secsz); + le16enc(mbr + DOSMAGICOFFSET, DOSMAGIC); dpbase = (void *)(mbr + DOSPARTOFF); STAILQ_FOREACH(part, &partlist, link) { dp = dpbase + part->index;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403230117.s2N1H3Qu009448>