]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix copy & past bug in lock initialization
authorKarel Zak <kzak@redhat.com>
Wed, 7 Feb 2024 09:56:19 +0000 (10:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 13 Feb 2024 19:20:45 +0000 (20:20 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit ed4d3e26a5fbe790107e3064e51dc34484b3656f)

libmount/src/tab_update.c

index f0c99b82da5b63993152eedaab69b0e39dfbb730..87512af740542d024b156c1fc42d73bef4a52388 100644 (file)
@@ -894,7 +894,7 @@ static int update_init_lock(struct libmnt_update *upd, struct libmnt_lock *lc)
                upd->lock = mnt_new_lock(upd->filename, 0);
                if (!upd->lock)
                        return -ENOMEM;
-               mnt_lock_block_signals(lc, TRUE);
+               mnt_lock_block_signals(upd->lock, TRUE);
        }
 
        return 0;