Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fsck_ffs Swap the right blocks in an inode in the bytes...



details:   https://anonhg.NetBSD.org/src/rev/13f59324ab0a
branches:  trunk
changeset: 545413:13f59324ab0a
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Apr 08 14:59:52 2003 +0000

description:
Swap the right blocks in an inode in the byteswapping case.

diffstat:

 sbin/fsck_ffs/inode.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2a4d0118aae5 -r 13f59324ab0a sbin/fsck_ffs/inode.c
--- a/sbin/fsck_ffs/inode.c     Tue Apr 08 14:56:49 2003 +0000
+++ b/sbin/fsck_ffs/inode.c     Tue Apr 08 14:59:52 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inode.c,v 1.37 2003/04/02 10:39:25 fvdl Exp $  */
+/*     $NetBSD: inode.c,v 1.38 2003/04/08 14:59:52 fvdl Exp $  */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)inode.c    8.8 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: inode.c,v 1.37 2003/04/02 10:39:25 fvdl Exp $");
+__RCSID("$NetBSD: inode.c,v 1.38 2003/04/08 14:59:52 fvdl Exp $");
 #endif
 #endif /* not lint */
 
@@ -214,7 +214,7 @@
                } else {
                        for (i = 0; i < nif; i++)
                                bp->b_un.b_indir1[i] =
-                                   bswap32(bp->b_un.b_indir2[i]);
+                                   bswap32(bp->b_un.b_indir1[i]);
                }
                dirty(bp);
                flush(fswritefd, bp);



Home | Main Index | Thread Index | Old Index