From 7092e693039f44200082695b3d99ff6946f91324 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 26 Apr 2023 11:22:32 +0200 Subject: [PATCH] libmount: (legacy) fix typo in assert() Addresses: https://github.com/util-linux/util-linux/pull/2197 Signed-off-by: Karel Zak --- libmount/src/hook_mount_legacy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libmount/src/hook_mount_legacy.c b/libmount/src/hook_mount_legacy.c index 32d2f17e7b..2c07a015b8 100644 --- a/libmount/src/hook_mount_legacy.c +++ b/libmount/src/hook_mount_legacy.c @@ -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); -- 2.47.3