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/a4103627032f
branches:  trunk
changeset: 957957:a4103627032f
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 54ba69bcf982 -r a4103627032f 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