From 59e0a38e2425017e3db4dd76b453574687eecbb8 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 11 Jul 2014 22:23:21 +0000 Subject: Fix on big-endian arches after the inode change. --- sbin/newfs_ext2fs/ext2fs_bswap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/newfs_ext2fs') 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)); -- cgit v1.2.3