Ted Unangst <[EMAIL PROTECTED]> wrote on Mon 23.Jan'06 at 19:19:46 -0800

> > fix. Basically, just go into /usr/src /sbin/fsck_msdos/boot.c and
> > change
> > if(memcmp(block, backup, DOSBOOTBLOCKSIZE ))
> > to
> > if(memcmp(block, backup, 52))
> 
> looking at netbsd, they changed it to
> +             backup[65] = block[65];                         /* XXX */
> +             if (memcmp(block + 11, backup + 11, 79)) {
> 
> which is entirely different.

and a look at freebsd, wich is the same as netbsd:
        backup[65] = block[65];             /* XXX */
        if (memcmp(block + 11, backup + 11, 79)) {
                /* Correct?                 XXX */

Did some very unsientific test regarding this and can
(well, not really) confirm that this borkes with DOSBOOTBLOCKSIZE
wich is 512.

Should openbsd go with the flow here ?

-- 
Thordur I. Bjornsson
Humppa!

Reply via email to