diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2014-06-14 15:21:28 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2014-06-14 15:21:28 +0000 |
commit | 6a91ac42626ad0b23e1e7fa9f328a1bb332a1c29 (patch) | |
tree | 45750a2c886a316bd7a7da8dbcc500f8a2f48233 /sbin/fsck_msdos | |
parent | 342e3df149f45ce76828cfd23c10e40c9a0556b4 (diff) |
Fix regression of 1.16: write fsinfo, not block into FSInfo region.
ok krw@
Diffstat (limited to 'sbin/fsck_msdos')
-rw-r--r-- | sbin/fsck_msdos/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_msdos/boot.c b/sbin/fsck_msdos/boot.c index 93ec700300e..528da2b1e8a 100644 --- a/sbin/fsck_msdos/boot.c +++ b/sbin/fsck_msdos/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.17 2013/08/12 13:44:13 rapha Exp $ */ +/* $OpenBSD: boot.c,v 1.18 2014/06/14 15:21:27 tobias Exp $ */ /* $NetBSD: boot.c,v 1.5 1997/10/17 11:19:23 ws Exp $ */ /* @@ -179,7 +179,7 @@ readboot(int dosfs, struct bootblock *boot) xperror("Unable to seek FSInfo"); return FSFATAL; } - n = write(dosfs, block, fsinfosz); + n = write(dosfs, fsinfo, fsinfosz); if (n == -1 || n != fsinfosz) { xperror("Unable to write FSInfo"); return FSFATAL; |