]> 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>
Thu, 3 Apr 2025 08:16:11 +0000 (10:16 +0200)
commitaa3d057fc1bc2aa5896bbc2ec3b9586b64586b49
treeb24d9287121bf63b227243f7f90c93c2e1532877
parentbb9d4ef9ea363007c43a0ba6c6c18e088487d2bc
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>
(cherry picked from commit b5ae9e8d0234738f381c56aa797aeba81a05d587)
misc-utils/lsblk-properties.c
misc-utils/lsblk.c