Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck_ffs Correctly detect a UFS1 file system of non-nat...



details:   https://anonhg.NetBSD.org/src/rev/d055adf8ebe9
branches:  trunk
changeset: 545579:d055adf8ebe9
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Apr 11 10:21:40 2003 +0000

description:
Correctly detect a UFS1 file system of non-native endian.

diffstat:

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

diffs (27 lines):

diff -r fa43e68bcd4c -r d055adf8ebe9 sbin/fsck_ffs/setup.c
--- a/sbin/fsck_ffs/setup.c     Fri Apr 11 10:20:35 2003 +0000
+++ b/sbin/fsck_ffs/setup.c     Fri Apr 11 10:21:40 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setup.c,v 1.60 2003/04/06 17:23:26 fvdl Exp $  */
+/*     $NetBSD: setup.c,v 1.61 2003/04/11 10:21:40 enami Exp $ */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)setup.c    8.10 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: setup.c,v 1.60 2003/04/06 17:23:26 fvdl Exp $");
+__RCSID("$NetBSD: setup.c,v 1.61 2003/04/11 10:21:40 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -575,7 +575,7 @@
                        doswap = do_blkswap = do_dirswap = 1;
                }
                return 0;
-       } else if (fs->fs_magic == bswap32(FS_UFS2_MAGIC) ||
+       } else if (fs->fs_magic == bswap32(FS_UFS1_MAGIC) ||
                   fs->fs_magic == bswap32(FS_UFS2_MAGIC)) {
                if (endian == 0 || BYTE_ORDER != endian) {
                        needswap = 1;



Home | Main Index | Thread Index | Old Index