This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master in repository gfs2-utils.
commit 1886142f9267edec75c903a899f1431f61b54281 Author: Andrew Price anprice@redhat.com AuthorDate: Mon Mar 15 09:55:21 2021 +0000
libgfs2: Fix a format version check in check_sb()
Make sure the minimum format version we check against is the minimum possible and not the current format version.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/libgfs2/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfs2/libgfs2/super.c b/gfs2/libgfs2/super.c index f38c3d72..2fc83fea 100644 --- a/gfs2/libgfs2/super.c +++ b/gfs2/libgfs2/super.c @@ -36,7 +36,7 @@ int check_sb(struct gfs2_sb *sb) return 1; } /* It's gfs2. Check format number is in a sensible range. */ - if (sb->sb_fs_format < GFS2_FORMAT_FS || + if (sb->sb_fs_format < LGFS2_FS_FORMAT_MIN || sb->sb_fs_format > 1899) { errno = EINVAL; return -1;
cluster-commits@lists.fedorahosted.org