]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: (legacy) fix typo in assert()
authorKarel Zak <kzak@redhat.com>
Wed, 26 Apr 2023 09:22:32 +0000 (11:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Apr 2023 09:22:32 +0000 (11:22 +0200)
Addresses: https://github.com/util-linux/util-linux/pull/2197
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_mount_legacy.c

index 32d2f17e7bdbc581cffe0203f4e4d3802b181f2b..2c07a015b8c5d3a6ed9217433667f09947bcd90f 100644 (file)
@@ -194,8 +194,9 @@ static int prepare_bindremount(struct libmnt_context *cxt,
                return -ENOMEM;
 
        mnt_context_get_mflags(cxt, &data->flags);
-       assert(cxt->flags & MS_BIND);
-       assert(!(cxt->flags & MS_REMOUNT));
+
+       assert(data->flags & MS_BIND);
+       assert(!(data->flags & MS_REMOUNT));
 
        data->flags |= (MS_REMOUNT | MS_BIND);