summaryrefslogtreecommitdiff
path: root/sbin/newfs_ext2fs
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-07-11 22:23:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-07-11 22:23:21 +0000
commit59e0a38e2425017e3db4dd76b453574687eecbb8 (patch)
treedc1800ed0941c231af2b36f215f8a1cd93f8159c /sbin/newfs_ext2fs
parentdf7a018c0a00e86a70738ab8934019397abc4e2d (diff)
Fix on big-endian arches after the inode change.
Diffstat (limited to 'sbin/newfs_ext2fs')
-rw-r--r--sbin/newfs_ext2fs/ext2fs_bswap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs_ext2fs/ext2fs_bswap.c b/sbin/newfs_ext2fs/ext2fs_bswap.c
index d39dcdf3968..844d8cb1596 100644
--- a/sbin/newfs_ext2fs/ext2fs_bswap.c
+++ b/sbin/newfs_ext2fs/ext2fs_bswap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_bswap.c,v 1.1 2010/02/17 19:26:48 otto Exp $ */
+/* $OpenBSD: ext2fs_bswap.c,v 1.2 2014/07/11 22:23:20 miod Exp $ */
/* $NetBSD: ext2fs_bswap.c,v 1.6 2000/07/24 00:23:10 mycroft Exp $ */
/*
@@ -117,7 +117,7 @@ e2fs_i_bswap(struct ext2fs_dinode *old, struct ext2fs_dinode *new)
new->e2di_flags = swap32(old->e2di_flags);
new->e2di_gen = swap32(old->e2di_gen);
new->e2di_facl = swap32(old->e2di_facl);
- new->e2di_dacl = swap32(old->e2di_dacl);
+ new->e2di_size_hi = swap32(old->e2di_size_hi);
new->e2di_faddr = swap32(old->e2di_faddr);
memcpy(&new->e2di_blocks[0], &old->e2di_blocks[0],
(NDADDR+NIADDR) * sizeof(int));