]> git.ipfire.org Git - thirdparty/util-linux.git/commit
liblastlog2: fix operator precedence in conditional assignments
authorKarel Zak <kzak@redhat.com>
Tue, 23 Sep 2025 08:46:59 +0000 (10:46 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Sep 2025 08:46:59 +0000 (10:46 +0200)
commit2348237f059ddb8ff4bc255235766771e1af3dd1
treea07f69be75951e360c0394924dc4d1bfdb40391a
parent53a8e762fc58574d453c07edc262e9f613cabf9d
liblastlog2: fix operator precedence in conditional assignments

Fix operator precedence in ll2_rename_user() where != comparison was
taking precedence over assignment, causing retval to be assigned 0 or 1
instead of the actual function return value.

Fixes: https://github.com/util-linux/util-linux/issues/3756
Signed-off-by: Karel Zak <kzak@redhat.com>
liblastlog2/src/lastlog2.c