From 221da3e9212d4cc1e370721493922de232fe3918 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 29 Sep 2022 01:44:34 -0700 Subject: [PATCH] Fix an incorrectly placed parenthesis. While syntactically correct and even looking correct, it was definitely not providing the desired result. And it has been this way for nearly twenty years. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation --- sys/ufs/ffs/ffs_snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index 84983a111fe4..bcdf94a10cda 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -689,7 +689,7 @@ ffs_snapshot(struct mount *mp, char *snapfile) *blkp++ = lblkno(fs, fs->fs_sblockloc); blkno = fragstoblks(fs, fs->fs_csaddr); for (cg = 0; cg < fs->fs_ncg; cg++) { - if (fragstoblks(fs, cgtod(fs, cg) > blkno)) + if (fragstoblks(fs, cgtod(fs, cg)) > blkno) break; *blkp++ = fragstoblks(fs, cgtod(fs, cg)); }