]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: avoid strcasecmp() for ASCII-only strings
authorKarel Zak <kzak@redhat.com>
Tue, 1 Apr 2025 15:45:01 +0000 (17:45 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 Apr 2025 09:06:17 +0000 (11:06 +0200)
commitb5ae9e8d0234738f381c56aa797aeba81a05d587
tree8bacad98069d88f9c48be038482ab32cba2fc2c9
parent8ec0c305e9f6ab904119201a13873faedb30da57
lsblk: avoid strcasecmp() for ASCII-only strings

Use cctype.h for locale-independent string comparison and to avoid
tricky string conversions like in tr_TR locales.

Fixes: https://github.com/util-linux/util-linux/issues/3490
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk-properties.c
misc-utils/lsblk.c