diff options
| author | Karel Zak <kzak@redhat.com> | 2023-04-26 11:22:32 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2023-04-26 11:22:32 +0200 |
| commit | 7092e693039f44200082695b3d99ff6946f91324 (patch) | |
| tree | 888d007636b847c78c86828486648f30e313d6b1 /libmount/src | |
| parent | b00f024861b5f79d549d71c9936c62aeb59955bf (diff) | |
| download | util-linux-7092e693039f44200082695b3d99ff6946f91324.tar.gz | |
libmount: (legacy) fix typo in assert()
Addresses: https://github.com/util-linux/util-linux/pull/2197
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src')
| -rw-r--r-- | libmount/src/hook_mount_legacy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmount/src/hook_mount_legacy.c b/libmount/src/hook_mount_legacy.c index 32d2f17e7..2c07a015b 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); |
