Changes between v2.41 and v2.41.1 --------------------------------- commit 67b6f19adad289cc4ff4071ae8eceda41bdce9e8 Author: Karel Zak Date: Tue Jun 24 09:55:28 2025 +0200 build-sys: update release dates Signed-off-by: Karel Zak NEWS | 2 +- configure.ac | 2 +- meson.build | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit e621697b81f2b8d8ddf1ae4e631ee0f01da79308 Author: Karel Zak Date: Tue Jun 24 09:54:20 2025 +0200 docs: add v2.41.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.41.1-ReleaseNotes | 134 ++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) commit ccb25b591f2209c6129bf772e21c8a166b4db1ba Author: Yuri Chornoivan Date: Mon Jun 23 13:48:07 2025 +0200 po: update uk.po (from translationproject.org) po/uk.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 685574b9647e8babfdcd1ae336aa9514975636f1 Author: Мирослав Николић Date: Mon Jun 23 13:48:07 2025 +0200 po: update sr.po (from translationproject.org) po/sr.po | 2607 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 1092 insertions(+), 1515 deletions(-) commit b75ef2fde83532b4c35317b82250f0e842cd8293 Author: Remus-Gabriel Chelu Date: Mon Jun 23 13:48:07 2025 +0200 po: update ro.po (from translationproject.org) po/ro.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 38725ad6faa09a9db7a48956cc0128c48c4f70c6 Author: Pedro Albuquerque Date: Mon Jun 23 13:48:07 2025 +0200 po: update pt.po (from translationproject.org) po/pt.po | 3870 +++++++++++++++++++++----------------------------------------- 1 file changed, 1270 insertions(+), 2600 deletions(-) commit e0023adb1a33375c3726b70d9c2adea655ba9e0f Author: Jakub Bogusz Date: Mon Jun 23 13:48:06 2025 +0200 po: update pl.po (from translationproject.org) po/pl.po | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) commit fdac1b2cf3f8e2dd8f9d1c2e97c115f1dadddeed Author: Benno Schulenberg Date: Mon Jun 23 13:48:06 2025 +0200 po: update nl.po (from translationproject.org) po/nl.po | 2802 +++++++++++++++++++------------------------------------------- 1 file changed, 856 insertions(+), 1946 deletions(-) commit e3f1edbace69da4cddbc5e5518d73ba145eb9382 Author: YOSHIDA Hideki Date: Mon Jun 23 13:48:06 2025 +0200 po: update ja.po (from translationproject.org) po/ja.po | 1332 +++++++++++++++++++++----------------------------------------- 1 file changed, 457 insertions(+), 875 deletions(-) commit 33f957bdc50eccf173646040b7c5622b1ee3e6ed Author: Božidar Putanec Date: Mon Jun 23 13:48:06 2025 +0200 po: update hr.po (from translationproject.org) po/hr.po | 236 +++++++++++++++++++++++++++++---------------------------------- 1 file changed, 109 insertions(+), 127 deletions(-) commit 0309a3ea300337589475d7b75ae76438bca6adb5 Author: Frédéric Marchal Date: Mon Jun 23 13:48:06 2025 +0200 po: update fr.po (from translationproject.org) po/fr.po | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) commit f868a8a54f4d3c93fbcf9205932539d6aa0edc37 Author: Antonio Ceballos Roa Date: Mon Jun 23 13:48:06 2025 +0200 po: update es.po (from translationproject.org) po/es.po | 4726 ++++++++++---------------------------------------------------- 1 file changed, 748 insertions(+), 3978 deletions(-) commit 4c08b4801b9e52706bebe5901fbad184680b311a Author: Mario Blättermann Date: Mon Jun 23 13:48:06 2025 +0200 po: update de.po (from translationproject.org) po/de.po | 235 ++++++++++++++++++++++++++------------------------------------- 1 file changed, 96 insertions(+), 139 deletions(-) commit 9354f15b07f44180bb43bee8fa4d369370423e11 Author: Petr Písař Date: Mon Jun 23 13:48:06 2025 +0200 po: update cs.po (from translationproject.org) po/cs.po | 1353 ++++++++++++++++++++++---------------------------------------- 1 file changed, 487 insertions(+), 866 deletions(-) commit 89aa8bf5ed2b3409ca9f6106377def76f6092a01 Author: Karel Zak Date: Mon Jun 23 13:48:04 2025 +0200 po-man: merge changes po-man/cs.po | 1247 +- po-man/de.po | 31940 ++++++++++++++++++++++++++++++++--------- po-man/es.po | 1242 +- po-man/fr.po | 1226 +- po-man/ko.po | 1242 +- po-man/pl.po | 1266 +- po-man/pt_BR.po | 1226 +- po-man/ro.po | 1273 +- po-man/sr.po | 33588 ++++++++++++++++++++++++++++++++++---------- po-man/uk.po | 1268 +- po-man/util-linux-man.pot | 1240 +- 11 files changed, 57525 insertions(+), 19233 deletions(-) commit 633c39c851d5f1b1ff327077ca98c3edcb1da955 Author: Мирослав Николић Date: Mon Jun 23 13:47:54 2025 +0200 po-man: update sr.po (from translationproject.org) po-man/sr.po | 34140 +++++++++++++-------------------------------------------- 1 file changed, 7355 insertions(+), 26785 deletions(-) commit b8b066c821c9784fb550dda9bac499ddbfd282fd Author: Mario Blättermann Date: Mon Jun 23 13:47:54 2025 +0200 po-man: update de.po (from translationproject.org) po-man/de.po | 32307 ++++++++++++--------------------------------------------- 1 file changed, 6420 insertions(+), 25887 deletions(-) commit ee0fc3cf4e4d980b2f0d9fe34aaeb0f2d838ec31 Author: Karel Zak Date: Tue Apr 29 12:50:48 2025 +0200 hardlink: define more function as inline The functions are called many times. Signed-off-by: Karel Zak (cherry picked from commit 5ef57d519fed61c501f1868348dcdfb31d3e2426) misc-utils/hardlink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 6e4f4a2359d7d1f69642271fb86db04147703952 Author: Karel Zak Date: Tue Apr 29 12:29:32 2025 +0200 hardlink: fix performance regression (inefficient signal evaluation) During work on better verbose output, I found a regression between v2.40 and v2.41 (and v2.42). In the new version, hardlink is 3-4 times slower. The problem is in the function where we verify signals. It calls the function signal() even though no signal is delivered. It's called in code loops where hardlink scans files, making it a performance-sensitive area. Another significant performance improvement is using an inline function for handle_interrupt(). This simple patch improves hardlink performance by 10 times. Fixes: http://github.com/util-linux/util-linux/commit/1453200e22dd4ec858be027653c167225f2fb358 Signed-off-by: Karel Zak (cherry picked from commit 87831fa19e241803f93556cbeaad153e6ba89b6c) misc-utils/hardlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 68cbde108e25ae2cb40ff60ef8670b22d385374d Author: Karel Zak Date: Tue Apr 29 11:49:23 2025 +0200 hardlink: Use macro for verbose output Now that jlog() is a function, all gettext() arguments are evaluated in all cases, including when output is unnecessary due to --quiet or low verbose mode. Fixes: https://github.com/util-linux/util-linux/issues/3548 Signed-off-by: Karel Zak (cherry picked from commit 5a2600c55f278c1252708cb3bdede92e27ccd04e) misc-utils/hardlink.c | 132 +++++++++++++++++++++++++------------------------- 1 file changed, 65 insertions(+), 67 deletions(-) commit 4288a28d35f77e3238735a1431206ed909e13ae8 Author: Stanislav Brabec Date: Fri May 16 03:10:14 2025 +0200 libblkid: Fix crash while parsing config with libeconf As the whole econf_file structure is freed by econf_free(file) at the end of blkid_read_config(), econf_file structure cannot be defined as static and initialized only once. The econf_free() is not robust enough and keeps a pointer to the garbage after the first call of blkid_read_config(). And if /etc/blkid.conf does not exist, it is called second time. Signed-off-by: Stanislav Brabec Cc: Stefan Schubert Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1242705 (cherry picked from commit 284527cff2bd22da2924881a4a4833049dca0d2e) libblkid/src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b75b2c9b9e068cfb13f25ea38a78e2202e38c192 Author: Cristian Rodríguez Date: Sat May 17 15:07:02 2025 -0400 Do not call exit() on code ending in shared libraries It is not cool to call atexit() handlers of unknown applications from shared libraries, use _exit instead. Signed-off-by: Cristian Rodríguez (cherry picked from commit 765b9259fa75e7cab64de4bcfdd2f49cb63efedb) lib/canonicalize.c | 2 +- libblkid/src/topology/dm.c | 2 +- libblkid/src/topology/lvm.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) commit 637501ad1b1b04012d4f8cd3c67426f9d0f84e72 Author: Karel Zak Date: Tue May 20 10:10:59 2025 +0200 lscpu: fix possible buffer overflow in cpuinfo parser Addresses: https://github.com/util-linux/util-linux/pull/3577 Signed-off-by: Karel Zak (cherry picked from commit ea04d719352add738251446315cebdada90171a9) sys-utils/lscpu-cputype.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit b12fd4ebe3fa41a8470ec37c05fa0ffb21dfd1da Author: Karel Zak Date: Thu May 22 10:01:03 2025 +0200 lsblk: use ID_PART_ENTRY_SCHEME as fallback for PTTYPE The udev database typically inherits the ID_PART_TABLE_TYPE property from the entire disk device to its partitions. However, in some cases, this property may be missing. Fortunately, blkid/udev also provides ID_PART_ENTRY_SCHEME for all partitions. Fixes: https://github.com/util-linux/util-linux/issues/3570 Signed-off-by: Karel Zak (cherry picked from commit 23a7e0865ad56c46a69084974182b9979592b867) misc-utils/lsblk-properties.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit 798239213dba5984986f05f43ed4de0c52c218a3 Author: Xi Ruoyao Date: Thu May 22 13:04:48 2025 +0800 lscpu: Fix loongarch op-mode output with recent kernel Since Linux-6.12, the "loongarch32" item in the ISA field is separated to "loongarch32r" and "loongarch32s," breaking our expectation. Link: https://git.kernel.org/torvalds/c/34e3c4500cdc Signed-off-by: Xi Ruoyao (cherry picked from commit 5aa7ad17fc17b9458ff4381294c27d176c651d5d) sys-utils/lscpu-cputype.c | 4 +- .../lscpu/lscpu-loongarch-kvm_on_loongson_3c6000 | 108 +++++++++++++++++++++ .../dumps/loongarch-kvm_on_loongson_3c6000.tar.gz | Bin 0 -> 50753 bytes 3 files changed, 111 insertions(+), 1 deletion(-) commit 2ae2525dfb3550585b86275f057d10e4c2371b48 Author: Benno Schulenberg Date: Mon Jun 2 16:14:31 2025 +0200 remove two leftover license lines from colors.{c,h} Last March, commit 549a517857 replaced the SPDX line in three files with a "No copyright is claimed" phrase, but forgot to remove from two of those files the text lines that correspond to the SPDX. Signed-off-by: Benno Schulenberg (cherry picked from commit ca7b55217d3100ee2a1a7874fd643726bb2df04f) include/colors.h | 3 --- lib/colors.c | 3 --- 2 files changed, 6 deletions(-) commit 0f468c83148cee039686eb172fa5cbea9d4598bd Author: Benno Schulenberg Date: Mon Jun 2 16:14:32 2025 +0200 remove "Copyright (C) ...." notes from files that claim no copyright Replace them with a "Written by" or "Authors:" label. Signed-off-by: Benno Schulenberg (cherry picked from commit 44da1cb11db3db73898918969a5c33f825458278) include/color-names.h | 2 +- include/procfs.h | 2 +- include/sysfs.h | 2 +- lib/color-names.c | 2 +- lib/langinfo.c | 8 ++++---- lib/mangle.c | 2 +- lib/path.c | 2 +- lib/procfs.c | 2 +- lib/strutils.c | 6 +++--- lib/sysfs.c | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) commit 6be947370bd2004718e155b1d1fbf90fa8a8276e Author: Benno Schulenberg Date: Mon Jun 2 16:14:33 2025 +0200 correct the full name of the GPL in various files Last year, commit f4cb44bd11 corrected the full name of the GPL in a dozen files, but still left the mistaken name in eight places. (Also, in the first file, just reshuffle the license line, to be in the same position as in other files.) Signed-off-by: Benno Schulenberg (cherry picked from commit c4b2b66bad23e605dd6392921d0750770145e4a1) disk-utils/swaplabel.c | 7 +++---- include/ismounted.h | 4 ++-- include/pager.h | 3 ++- lib/ismounted.c | 4 ++-- lib/pager.c | 4 ++-- misc-utils/findfs.c | 4 ++-- misc-utils/uuidd.c | 4 ++-- misc-utils/uuidgen.c | 4 ++-- sys-utils/eject.1.adoc | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) commit 12226514ac2d316c5042f1c89a816df46fe337b5 Author: FeRD (Frank Dana) Date: Mon Jun 9 04:55:00 2025 -0400 Make scols_column_set_data_func docs visible The documentation comment for scols_column_set_data_func was missing the second asterisk in its opening marker, causing the contents to be omitted from the rendered documentation. Signed-off-by: FeRD (Frank Dana) (cherry picked from commit 84de06882e925b98b9cf7ffae2a37ae55931894d) libsmartcols/src/column.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 48fbe43a5f2a252342fb4dea24702847608b3db1 Author: Mingjie Shen Date: Wed Jun 11 17:11:35 2025 -0400 libblkid/src/topology/dm: fix fscanf return value check to match expected number of parsed items (cherry picked from commit 51c0697e5551fe3c2d481a4ac71d81695e5374ba) libblkid/src/topology/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f1f7a1cbfb40f6f8b7bc15bd1a9680e1022df461 Author: Karel Zak Date: Tue May 13 11:32:14 2025 +0200 treewide: add ul_ to parse_timestamp() function name Signed-off-by: Karel Zak include/timeutils.h | 2 +- lib/timeutils.c | 4 ++-- login-utils/last.c | 6 +++--- misc-utils/cal.c | 2 +- sys-utils/dmesg.c | 4 ++-- sys-utils/hwclock.c | 2 +- sys-utils/rtcwake.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) commit 96895a40c015af1adc81d1ef390a0fea9b083959 Author: Stanislav Brabec Date: Tue May 13 11:26:49 2025 +0200 treewide: add ul_ to parse_switch() function name Signed-off-by: Karel Zak include/strutils.h | 2 +- lib/strutils.c | 4 ++-- sys-utils/eject.c | 4 ++-- sys-utils/losetup.c | 2 +- sys-utils/tunelp.c | 8 ++++---- term-utils/setterm.c | 24 ++++++++++++------------ 6 files changed, 22 insertions(+), 22 deletions(-) commit b041bc9647fc116454005f5acd89654c1b0ab76e Author: Karel Zak Date: Tue May 13 11:25:39 2025 +0200 treewide: add ul_ to parse_size() function name Signed-off-by: Karel Zak disk-utils/cfdisk.c | 2 +- disk-utils/fdisk.c | 2 +- include/strutils.h | 2 +- lib/strutils.c | 4 ++-- libfdisk/src/gpt.c | 2 +- libfdisk/src/script.c | 8 ++++---- sys-utils/lscpu-topology.c | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) commit 6b8aea8c6a17a0e45d8308136ab74a8517225d7a Author: Karel Zak Date: Tue May 13 11:24:48 2025 +0200 treewide: add ul_ to parse_range() function name Signed-off-by: Karel Zak disk-utils/partx.c | 2 +- include/strutils.h | 2 +- lib/strutils.c | 2 +- text-utils/column.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 22b91501d30a65d25ecf48ce5169ec70848117b8 Author: Karel Zak Date: Wed Apr 9 12:15:57 2025 +0200 libmount: (subdir) restrict for real mounts only It's now possible to use, for example, for bind operations, but it does not make sense as you can specify the target with the subdirectory. Signed-off-by: Karel Zak (cherry picked from commit 437a271f7108f689d350f1b3d837490d3d283c3c) libmount/src/hook_subdir.c | 21 ++++++++++++++++----- sys-utils/mount.8.adoc | 6 ++++-- 2 files changed, 20 insertions(+), 7 deletions(-) commit cfb80587da7bf3d6a8eeb9b846702d6d731aa1c6 Author: Karel Zak Date: Wed Apr 9 11:32:08 2025 +0200 libmount: (subdir) remove unused code The optlist already handles quoted values, so there's no need to do it in the callers. Signed-off-by: Karel Zak (cherry picked from commit 5462fa3435544344727b8644205ae427dfd5fcba) libmount/src/hook_subdir.c | 3 --- 1 file changed, 3 deletions(-) commit 10cfa4f144135e4a595c3fc4a3ec52be88834295 Author: Karel Zak Date: Thu Apr 24 19:25:11 2025 +0200 Wipefs: improve --all descriptions for whole-disks Addresses: https://github.com/util-linux/util-linux/issues/3544 Signed-off-by: Karel Zak (cherry picked from commit 1806792d4fd4928e09228ca6cc776fb46b196d89) misc-utils/wipefs.8.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 15f72204593e529bff11115e4703c48c4b2c3ea3 Author: Karel Zak Date: Thu Apr 24 18:32:35 2025 +0200 libmount: avoid calling memset() unnecessarily This is primarily to satisfy static analyzers, as memset() is defined as a non-null function (although it does nothing when bufsiz=0). Signed-off-by: Karel Zak (cherry picked from commit 9e96e6ed9cce4cbaf3b9ca6e61d0b0ee070685e9) libmount/src/fs_statmount.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit d828cc20fbbc8daec3e046a6ce2f877fae3d31d9 Author: Milan Broz Date: Sat Apr 19 15:54:40 2025 +0200 libblkid: befs: fix underflow Fix segfault caused by underflow while parsing a corrupted metadata. Found by OSS-Fuzz by cryptsetup project fuzzers (issue 411003898). Signed-off-by: Milan Broz (cherry picked from commit 588eed1a1de13150750e8a50d855001b27e07357) libblkid/src/superblocks/befs.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 1f7a5b3c3cc1ad1ab1b72e68d0ae49cb171c5c45 Author: Cristian Rodríguez Date: Sun Apr 13 09:22:47 2025 -0400 Do not use strerror on shared libraries Using strerror is not safe in shared libraries as it is unknown what the calling apps may do with the storage behind the scenes. Using %m is ok, except in contexts that need to be as-safe. (cherry picked from commit c5850c36e14085cddf8db9e19d447d928fa153d0) libblkid/src/verify.c | 8 ++++---- liblastlog2/src/lastlog2.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) commit 6f3d5e86467d1b3bccb31125d728e87455613e34 Author: Jakub Wilk Date: Wed Apr 9 19:53:34 2025 +0200 mount: (man) add missing word Signed-off-by: Jakub Wilk (cherry picked from commit 1f106f63c5c9ab6779621f42c280d1f23792f898) sys-utils/mount.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7e9665e31d57d16efa304d4421eb8c9d98d8eaf1 Author: Thomas Weißschuh Date: Sat Apr 19 22:02:11 2025 +0200 include/mount-api-utils: include linux/unistd.h If SYS_statmount/SYS_listmount is not provided by the libc, util-linux will fall back to __NR_statmount/__NR_listmount from the kernel UAPI headers. However it is not guaranteed that these symbols are actually visible in mount-api-utils. Include linux/unistd.h which provides syscall numbers. While this header is specific to Linux, the code is already using linux/mount.h. Signed-off-by: Thomas Weißschuh (cherry picked from commit 0033f97482a7979e0de71de0a16b583e8d74dbdc) include/mount-api-utils.h | 1 + 1 file changed, 1 insertion(+) commit fa3aeb51e14190ecc084c1ba03037fc2a9403343 Author: Thomas Weißschuh Date: Mon Apr 14 23:32:36 2025 +0200 meson: add feature for translated documentation Translating the documentation is slow. Add a feature which can be used to disable this step. Signed-off-by: Thomas Weißschuh (cherry picked from commit 188f3af3e8f3c7effbdb4b91994f1b16db4874b5) meson_options.txt | 2 ++ po-man/meson.build | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) commit 616f4ecea6172814e87aebe191903d607b65e76b Author: Thomas Weißschuh Date: Mon Apr 14 23:19:06 2025 +0200 meson: remove tinfo dependency from 'more' The more utility does not need libtinfo and it is not specified in autotools either. Signed-off-by: Thomas Weißschuh (cherry picked from commit 363e48da01956321fb9337c59d78865c97c711a2) meson.build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit f59b47d44ecef8a7697d5e1cbfa2038a11a11373 Author: Eugene Gershnik Date: Mon May 6 09:29:39 2024 -0700 libuuid: fix uuid_time on macOS without attribute((alias)) Weak aliases are not supported by clang on Darwin. Instead this fix uses inline asm to make `_uuid_time` an alias to `___uuid_time` It appears that on macOS the time API is purely 32 or 64 bit depending on the build type. There is no ABI issue on that platform and `uuid_time` can be unconditionally aliased to `_uuid_time`. This is all conjectural, however, since I have no ability to make 32-bit builds for macOS - the Apple toolchain doesn't support this since 2019. Fixes util-linux/util-linux#2873 (cherry picked from commit e47c6f751a7ef87640c61316ada774e8e9cc6b07) libuuid/src/uuid_time.c | 4 ++++ 1 file changed, 4 insertions(+) commit 9d4df7905ec03c3ea6e9bdf0aaa91e862168d29a Author: Karel Zak Date: Mon Apr 7 12:35:02 2025 +0200 findmnt: fix -k option parsing regression It's a really bad idea to change any existing short option to support optional arguments. Fixes: https://github.com/util-linux/util-linux/issues/3512 References: 841d15e5d13dd0cc56e450c8dcc592211d66be27 Signed-off-by: Karel Zak (cherry picked from commit 0ecaef693ea60aab709e79dd4a8eb2865ec08967) misc-utils/findmnt.8.adoc | 2 +- misc-utils/findmnt.c | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) commit a3cff26d4b01ef19763964527e4270a105dc48e5 Author: Karel Zak Date: Mon Apr 7 13:49:43 2025 +0200 treewide: fix optional arguments usage In some parts of the code, the optional argument handling is missing for cases where the argument starts with '='. This is particularly important for short options with optional arguments, as suggested by our man pages. The libc getopt_long() handles this for long options, but for short options, it's our responsibility. Note that some argument parsing functions (mostly colormode_or_err()) already implement this, as they are usually used with optional arguments. Signed-off-by: Karel Zak (cherry picked from commit c4a24f5301ec9779a0492dd110824c2ce813f3eb) lsfd-cmd/lsfd.c | 2 ++ misc-utils/enosys.c | 2 ++ misc-utils/uuidd.c | 6 ++++-- misc-utils/wipefs.c | 2 ++ sys-utils/ipcrm.c | 2 ++ sys-utils/nsenter.c | 14 ++++++++++---- 6 files changed, 22 insertions(+), 6 deletions(-) commit e28ce84b2ebec03082dd9045e9be18785ec4dbd2 Author: Thomas Devoogdt Date: Mon Apr 7 14:20:12 2025 +0200 namespace.h: fix compilation on Linux < 4.10 sys-utils/lsns.c: In function ‘add_namespace_from_sock’: sys-utils/lsns.c:580:19: error: ‘SIOCGSKNS’ undeclared (first use in this function) nsfd = ioctl(sk, SIOCGSKNS); ^~~~~~~~~ SIOCGSKNS was added in https://github.com/torvalds/linux/commit/c62cce2caee558e18aa05c01c2fd3b40f07174f2. Fixes: https://github.com/util-linux/util-linux/issues/3502 Signed-off-by: Thomas Devoogdt (cherry picked from commit 10ee66ed1b08586bde42582e34355418eef33ef5) include/namespace.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) commit 138117a83e79956fb23410ab3dca82ac247add6f Author: Karel Zak Date: Tue Mar 25 12:44:13 2025 +0100 fdisk: fix possible memory leak Signed-off-by: Karel Zak (cherry picked from commit 71719680968c86a09ad0ba76339447f18996610b) disk-utils/fdisk.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) commit b5787cce25e0dcc8efff7315b6be1df032191c8a Author: Karel Zak Date: Tue Mar 25 12:23:35 2025 +0100 fdformat: use size_t and ssize_t Signed-off-by: Karel Zak (cherry picked from commit 310806a25f1da9e1e6819c57d2e358bb439ed56d) disk-utils/fdformat.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 9a918daa48616cad9e576a8f84004247b9eeff5f Author: Karel Zak Date: Tue Mar 25 12:14:14 2025 +0100 cfdisk: fix memory leak and possible NULL dereference [gcc-analyzer] Signed-off-by: Karel Zak (cherry picked from commit 33ca468b67d34dead8fb8b41dc9f328971e5fe70) disk-utils/cfdisk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 5566da37e7dd0ceaa64ee8d612abab337fea2387 Author: cgoesche Date: Sat Apr 5 01:43:04 2025 -0400 more: fix broken ':!command' command key Addresses: #3509 Signed-off-by: Christian Goeschel Ndjomouo (cherry picked from commit 3f3bb6f9103daaf7a8f47ebe57cbe90bac852e6e) text-utils/more.c | 3 +++ 1 file changed, 3 insertions(+) commit 250f1fc717dd13b040d30b2c0d9b67944867d343 Author: cgoesche Date: Sat Apr 5 01:29:35 2025 -0400 more: fix implicit previous shell_line execution #3508 run_shell() will implicitly execute the previous ctl->shell_line not only if the function was indirectly invoked by the '.' command but also by a subsequent '!' command. Addresses: #3508 Signed-off-by: Christian Goeschel Ndjomouo (cherry picked from commit b6f9362988dbe5427d52b31ac3add37a7ddb6b12) text-utils/more.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit f997901f8c5e753c483d01b7b36a7e5c77a210f8 Author: Karel Zak Date: Tue Apr 1 17:45:01 2025 +0200 treewide: 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 (cherry picked from commit 107293a68206f24e531fd906e8114b578911bb7a) lib/blkdev.c | 7 ++++--- lib/colors.c | 3 ++- lib/logindefs.c | 7 ++++--- lib/match.c | 5 +++-- lib/sysfs.c | 3 ++- libsmartcols/src/filter-param.c | 5 +++-- login-utils/chfn.c | 3 ++- login-utils/lslogins.c | 3 ++- lsfd-cmd/lsfd.c | 3 ++- misc-utils/fincore.c | 3 ++- misc-utils/findmnt.c | 11 ++++++----- misc-utils/logger.c | 3 ++- misc-utils/lsclocks.c | 3 ++- misc-utils/lslocks.c | 3 ++- misc-utils/uuidparse.c | 3 ++- misc-utils/wipefs.c | 3 ++- schedutils/ionice.c | 3 ++- sys-utils/chmem.c | 7 ++++--- sys-utils/dmesg.c | 5 +++-- sys-utils/irq-common.c | 11 ++++++----- sys-utils/ldattach.c | 3 ++- sys-utils/losetup.c | 3 ++- sys-utils/lscpu.c | 5 +++-- sys-utils/lsipc.c | 3 ++- sys-utils/lsmem.c | 27 +++++++++++++++------------ sys-utils/lsns.c | 3 ++- sys-utils/prlimit.c | 3 ++- sys-utils/rfkill.c | 3 ++- sys-utils/swapon.c | 3 ++- sys-utils/wdctl.c | 5 +++-- sys-utils/zramctl.c | 3 ++- term-utils/script.c | 5 +++-- tests/helpers/test_mkfds.c | 7 ++++--- 33 files changed, 101 insertions(+), 66 deletions(-) commit 79b5a97f90004f021291cd4550ab8cc7b66988c4 Author: Karel Zak Date: Tue Apr 1 17:45:01 2025 +0200 fdisk,partx: 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. Signed-off-by: Karel Zak (cherry picked from commit 7efdcd75f041fa1cb9a7c05e22dea3567d48bf9e) disk-utils/cfdisk.c | 3 ++- disk-utils/fdisk-list.h | 4 +++- disk-utils/partx.c | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) commit 590fde75bc2ec50a0ef24eb8c5b1bcda4d78a974 Author: Karel Zak Date: Tue Apr 1 17:45:01 2025 +0200 libmount: 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. Signed-off-by: Karel Zak (cherry picked from commit ea694f8b91b82474c018dac2250b03cb00685b26) libmount/src/tab.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit aa3d057fc1bc2aa5896bbc2ec3b9586b64586b49 Author: Karel Zak Date: Tue Apr 1 17:45:01 2025 +0200 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 (cherry picked from commit b5ae9e8d0234738f381c56aa797aeba81a05d587) misc-utils/lsblk-properties.c | 11 ++++++----- misc-utils/lsblk.c | 7 ++++--- 2 files changed, 10 insertions(+), 8 deletions(-) commit bb9d4ef9ea363007c43a0ba6c6c18e088487d2bc Author: Karel Zak Date: Tue Apr 1 17:45:01 2025 +0200 libfdisk: 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. Signed-off-by: Karel Zak (cherry picked from commit 8ec0c305e9f6ab904119201a13873faedb30da57) libfdisk/src/context.c | 9 +++++---- libfdisk/src/label.c | 3 ++- libfdisk/src/parttype.c | 3 ++- libfdisk/src/script.c | 21 +++++++++++---------- 4 files changed, 20 insertions(+), 16 deletions(-) commit 41a6df798517ba0a3a4a809d6fa60a35951049ca Author: Karel Zak Date: Tue Apr 1 17:45:01 2025 +0200 libblkid: 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. Signed-off-by: Karel Zak (cherry picked from commit 7eb663503c77d739f2cc80d78ee9d380b11b6eb9) libblkid/src/config.c | 3 ++- libblkid/src/partitions/partitions.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit e6a7001bb539256cdd71e4f032c2842151814556 Author: Karel Zak Date: Wed Apr 2 11:00:47 2025 +0200 include/cctype: fix string comparison Reimplement c_strcasecmp() and c_strncasecmp() to be libc compatible and fix c_strncasecmp() to avoid \0 misinterpretation. The original implementation was pretty stupid (sorry). Signed-off-by: Karel Zak (cherry picked from commit 259157b0c1a00806ff75188325e40ba10adf12ce) include/cctype.h | 55 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 18 deletions(-) commit 798e4da071a96b14c7449bced9f16dc351dc5d84 Author: Masatake YAMATO Date: Mon Jan 6 03:30:25 2025 +0900 lsfd: (bug fix) scan the protocol field of /proc/net/packet as a hex number Signed-off-by: Masatake YAMATO (cherry picked from commit 0da7e8201aa7b9b2c5d0e901c0ccfd6f3bdc54d3) lsfd-cmd/sock-xinfo.c | 2 +- tests/expected/lsfd/mkfds-mapped-packet-socket | 4 ++-- tests/ts/lsfd/mkfds-mapped-packet-socket | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) commit 0ae934f11fe23693d75784d712d491161668335b Author: Masatake YAMATO Date: Mon Jan 6 03:49:46 2025 +0900 tests: (test_mkfds::mapped-packet-socket) add a new parameter, protocol Signed-off-by: Masatake YAMATO (cherry picked from commit a6584a456835bbef703d7aae1f51d4e07177f8cb) tests/helpers/test_mkfds.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) commit b7b96894c2f27f8a361f5bab2a239c9f64034557 Author: Masatake YAMATO Date: Mon Jan 6 02:55:19 2025 +0900 lsfd: fix the description for PACKET.PROTOCOL column Signed-off-by: Masatake YAMATO (cherry picked from commit df3b38fab56001537364302479b33cb104ef7411) lsfd-cmd/lsfd.1.adoc | 2 +- lsfd-cmd/lsfd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6ad9b9b502b651a89c0994e450573701cfcd3d09 Author: pls-no-hack <107148611+pls-no-hack@users.noreply.github.com> Date: Fri Mar 28 13:52:49 2025 +0000 Fix typo in blkdiscard docs (cherry picked from commit 7d181e8f1ecdeca764b62f1daf0bb13cec349e7e) sys-utils/blkdiscard.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 05d494d32bd9941ae0edbe591cefc047de3e9052 Author: Karel Zak Date: Tue Apr 1 14:36:36 2025 +0200 lsns: enhance compilation without USE_NS_GET_API - Move add_namespace_for_nsfd() declaration to the #ifdef block (based on c62ed3d58602fd29fe12085f7caf03761ed91b81) References: 2ced43400f35f7bd45b29364e04166a63a06e16a Signed-off-by: Karel Zak sys-utils/lsns.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit bd36a077e16eca888d843a0c30e77379aedfe350 Author: Thomas Devoogdt Date: Tue Mar 25 11:58:18 2025 +0100 lsns: fix undefined reference to add_namespace_for_nsfd #3483 Fixes: sys-utils/lsns-lsns.o: In function `read_process': lsns.c:(.text+0x9e8): undefined reference to `add_namespace_for_nsfd' collect2: error: ld returned 1 exit status Signed-off-by: Thomas Devoogdt (cherry picked from commit 2ced43400f35f7bd45b29364e04166a63a06e16a) sys-utils/lsns.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 77723beaaaca654f72ac9538772e69fbafa8835d Author: Karel Zak Date: Mon Mar 24 14:31:05 2025 +0100 libmount: fix --no-canonicalize regression Fixes: https://github.com/util-linux/util-linux/issues/3474 Signed-off-by: Karel Zak (cherry picked from commit 7dbfe31a83f45d5aef2b508697e9511c569ffbc8) libmount/src/context.c | 3 --- sys-utils/mount.8.adoc | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) commit 5fdfbb50a40a874832caa80f7afe671ee843c53b Author: Karel Zak Date: Mon Mar 24 15:18:24 2025 +0100 meson: fix manadocs for libsmartcols and libblkid Fixes: https://github.com/util-linux/util-linux/issues/3475 Signed-off-by: Karel Zak (cherry picked from commit 531b2afd4ef3016b14fff41eef208ead5213138e) meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 5a9a737ce8d334415028bcd95026747e109cdd2c Author: Karel Zak Date: Thu Mar 20 13:15:26 2025 +0100 meson: fix po-man installation * in po-man/meson.build use already defined mandir * make sure $DESTDIR is used in the install script Addresses: https://github.com/util-linux/util-linux/pull/3378 Signed-off-by: Karel Zak (cherry picked from commit 56b97db03a56d90f0480885a35b0383afabc2e18) po-man/meson.build | 3 ++- tools/poman-install.sh | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) commit 778fbe77eff16fb33b222224275fc329e6435cc2 Author: Karel Zak Date: Thu Mar 20 11:57:06 2025 +0100 misc: never include wchar.h We have a portable "widechar.h" that follows --disable-widechar and provides portability. It is a bug to directly include libc's wchar.h or wctype.h. Fixes: https://github.com/util-linux/util-linux/issues/3470 Signed-off-by: Karel Zak (cherry picked from commit 5c0888dde3cc296d06b8243dcc78248ff90526e5) disk-utils/cfdisk.c | 6 +----- include/carefulputc.h | 5 +---- include/fgetwc_or_err.h | 6 +----- lib/idcache.c | 2 +- sys-utils/irqtop.c | 7 ++----- sys-utils/lsns.c | 2 +- tests/helpers/test_sysinfo.c | 2 +- 7 files changed, 8 insertions(+), 22 deletions(-) commit 906b597b5781b007116c5cbe51bb75b53024f173 Author: Karel Zak Date: Thu Mar 20 11:56:07 2025 +0100 autotools: don't use wide-character ncurses if --disable-widechar Signed-off-by: Karel Zak (cherry picked from commit 23aa09d7baec72cf6bac9d32c844a5bd2a6ef609) configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 5b237d26baf063009ad2e8bea930947b1153c5d9 Author: Karel Zak Date: Thu Mar 20 11:53:59 2025 +0100 column: fix compiler warning for non-widechar compilation text-utils/column.c: In function ‘ansi_esc_width’: text-utils/column.c:212:17: warning: case label value exceeds maximum value for type [-Wswitch-outside-range] Signed-off-by: Karel Zak (cherry picked from commit 0e28ab361375036f62dbba9d589576d38f43f157) text-utils/column.c | 2 ++ 1 file changed, 2 insertions(+) commit f5e79a429ec331509ba55449b7fdeb3cba1bfc54 Author: Masanari Iida Date: Mon Mar 24 16:21:44 2025 +0900 lib/fileeq.c Fix a typo in message. This patch fixes a spelling typo in a command message. Signed-off-by: Masanari Iida (cherry picked from commit ccda6b9abde4425c03bf9c8da967fa02a64d0887) lib/fileeq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 11a5728bf5f729a8244cd8d999641fe2722e15ea Author: Karel Zak Date: Thu Mar 20 14:18:14 2025 +0100 irqtop,lsirq: use scols debug Signed-off-by: Karel Zak (cherry picked from commit b7f5e6bba0b77c50eff53d5a9079403cde4cfc18) sys-utils/irqtop.c | 2 ++ sys-utils/lsirq.c | 2 ++ 2 files changed, 4 insertions(+)