Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa ufs_open(): Check fs->lfs_version ifdef LIBSA_...



details:   https://anonhg.NetBSD.org/src/rev/2f33ab979d70
branches:  trunk
changeset: 979181:2f33ab979d70
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Dec 19 07:19:30 2020 +0000

description:
ufs_open(): Check fs->lfs_version ifdef LIBSA_*L*FS, not LIBSA_*F*FS.

This was harmless for FFS variants, that define LIBSA_FFSv[12], not LIBSA_FFS.

diffstat:

 sys/lib/libsa/ufs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 691cf29f0d41 -r 2f33ab979d70 sys/lib/libsa/ufs.c
--- a/sys/lib/libsa/ufs.c       Sat Dec 19 01:18:58 2020 +0000
+++ b/sys/lib/libsa/ufs.c       Sat Dec 19 07:19:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs.c,v 1.76 2019/04/02 22:25:10 christos Exp $        */
+/*     $NetBSD: ufs.c,v 1.77 2020/12/19 07:19:30 rin Exp $     */
 
 /*-
  * Copyright (c) 1993
@@ -582,7 +582,7 @@
                if (rc)
                        goto out;
                if (buf_size != SBLOCKSIZE ||
-#ifdef LIBSA_FFS
+#ifdef LIBSA_LFS
                    fs->lfs_version != REQUIRED_LFS_VERSION ||
 #endif
                    fs->fs_magic != FS_MAGIC) {



Home | Main Index | Thread Index | Old Index