Changes between v2.40.2 and v2.40.3 -------------------------------------------- commit 42eb5aadd56d72102335759c27a21a59b9b31940 Author: Karel Zak Date: Thu Jan 9 12:53:48 2025 +0100 build-sys: release++ (v2.40.3) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- meson.build | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) commit 44f6e4b38455d5359ef223a538ed0d1e23925511 Author: Karel Zak Date: Thu Jan 9 12:51:51 2025 +0100 docs: add v2.40.3-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.40.3-ReleaseNotes | 109 ++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) commit 9b72e47c740fc88793ccb60133ee2eb805fe6514 Author: Karel Zak Date: Thu Jan 9 12:34:46 2025 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) commit 2a9727abd81933a96be07dcd0182f7bc7f4c98c2 Author: Karel Zak Date: Thu Jan 9 12:32:21 2025 +0100 po-man: merge changes Signed-off-by: Karel Zak po-man/cs.po | 1433 +- po-man/de.po | 1491 +- po-man/es.po | 1456 +- po-man/fr.po | 48556 +++++++++++++++++++++++++++++++++++--------- po-man/ko.po | 15184 +++++++++++--- po-man/pt_BR.po | 17241 ++++++++++++---- po-man/ro.po | 30254 +++++++++++++++++++++------ po-man/sr.po | 1498 +- po-man/uk.po | 1477 +- po-man/util-linux-man.pot | 1411 +- 10 files changed, 93719 insertions(+), 26282 deletions(-) commit 3792e8997c5a0612aaa1b9c20e0b7611ac129511 Author: Karel Zak Date: Thu Jan 9 12:32:15 2025 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 626 +++++++++++++++---------------- po/cs.po | 628 +++++++++++++++---------------- po/da.po | 628 +++++++++++++++---------------- po/de.po | 1058 +++++++++++++++++++++++++++-------------------------- po/es.po | 628 +++++++++++++++---------------- po/et.po | 626 +++++++++++++++---------------- po/eu.po | 626 +++++++++++++++---------------- po/fi.po | 626 +++++++++++++++---------------- po/fr.po | 628 +++++++++++++++---------------- po/gl.po | 626 +++++++++++++++---------------- po/hr.po | 628 +++++++++++++++---------------- po/hu.po | 626 +++++++++++++++---------------- po/id.po | 626 +++++++++++++++---------------- po/it.po | 626 +++++++++++++++---------------- po/ja.po | 1058 +++++++++++++++++++++++++++-------------------------- po/ka.po | 626 +++++++++++++++---------------- po/ko.po | 628 +++++++++++++++---------------- po/nl.po | 628 +++++++++++++++---------------- po/pl.po | 628 +++++++++++++++---------------- po/pt.po | 628 +++++++++++++++---------------- po/pt_BR.po | 1058 +++++++++++++++++++++++++++-------------------------- po/ro.po | 628 +++++++++++++++---------------- po/ru.po | 628 +++++++++++++++---------------- po/sk.po | 626 +++++++++++++++---------------- po/sl.po | 626 +++++++++++++++---------------- po/sr.po | 1058 +++++++++++++++++++++++++++-------------------------- po/sv.po | 628 +++++++++++++++---------------- po/tr.po | 628 +++++++++++++++---------------- po/uk.po | 628 +++++++++++++++---------------- po/util-linux.pot | 632 ++++++++++++++++---------------- po/vi.po | 628 +++++++++++++++---------------- po/zh_CN.po | 1058 +++++++++++++++++++++++++++-------------------------- po/zh_TW.po | 626 +++++++++++++++---------------- 33 files changed, 11447 insertions(+), 11407 deletions(-) commit b68bd2a787fabc47f53c8946276bfa574fc0a762 Author: Rafael Fontenelle Date: Thu Jan 9 12:28:39 2025 +0100 po-man: update pt_BR.po (from translationproject.org) po-man/pt_BR.po | 16460 +++++++++++------------------------------------------- 1 file changed, 3275 insertions(+), 13185 deletions(-) commit 3c3ca3fbe9813ff90ec0446e2ff98c1c3630d60a Author: Frédéric Marchal Date: Thu Jan 9 12:28:39 2025 +0100 po-man: update fr.po (from translationproject.org) po-man/fr.po | 48308 ++++++++++----------------------------------------------- 1 file changed, 8614 insertions(+), 39694 deletions(-) commit 7f4fcb605e461a086c2ce2335c84804a5825afd6 Author: Mingye Wang (Artoria2e5) Date: Thu Jan 9 12:27:53 2025 +0100 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 1719 +++++++++++++++++++++++------------------------------------ 1 file changed, 659 insertions(+), 1060 deletions(-) commit a647d8cc9928fef79564a4a762c699212f45b716 Author: Мирослав Николић Date: Thu Jan 9 12:27:52 2025 +0100 po: update sr.po (from translationproject.org) po/sr.po | 1858 ++++++++++++++++++++++++-------------------------------------- 1 file changed, 701 insertions(+), 1157 deletions(-) commit d9ba7a42c7ca5ec993030a056d15b84bed034106 Author: Rafael Fontenelle Date: Thu Jan 9 12:27:52 2025 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 2264 ++++++++++++++++++++++------------------------------------- 1 file changed, 834 insertions(+), 1430 deletions(-) commit e2ea9b383170faae9a93892aa7eda39e5903b157 Author: Hideki Yoshida Date: Thu Jan 9 12:27:52 2025 +0100 po: update ja.po (from translationproject.org) po/ja.po | 7501 ++++++++++++++++++++------------------------------------------ 1 file changed, 2408 insertions(+), 5093 deletions(-) commit 370919ec36f8373ad722e2f71d5425dcbf5f1041 Author: Mario Blättermann Date: Thu Jan 9 12:27:52 2025 +0100 po: update de.po (from translationproject.org) po/de.po | 1212 +++++++++++++++++++++----------------------------------------- 1 file changed, 404 insertions(+), 808 deletions(-) commit 65077f28f0eae364d34c1c4f07bf3fd197bb1d87 Author: Karel Zak Date: Wed Jan 8 11:35:03 2025 +0100 ci: bump coveralls compiler version to gcc 13 coverall CI output: COMPILER=gcc COMPILER_VERSION=10 ... Found gcov version: 13.2.0 ... geninfo: ERROR: Incompatible GCC/GCOV version found Signed-off-by: Karel Zak (cherry picked from commit d8532ef299c2dc5e13489df19fc483a67d45f8f5) .github/workflows/cibuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5ce6f636b3f77784925a95185686f092b469a44e Author: Karel Zak Date: Wed Jul 24 09:13:08 2024 +0200 agetty: fix ambiguous ‘else’ [-Werror=dangling-else] Signed-off-by: Karel Zak (cherry picked from commit 6a14f8d1727035a68b1fef167499930e09a2b234) term-utils/agetty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit ae5a369286e0e2d10fe7420c5f4ce832a75d0bf5 Author: Karel Zak Date: Mon Jul 29 10:21:28 2024 +0200 lscpu: make code more readable Signed-off-by: Karel Zak (cherry picked from commit 5d1129e6879a05aa9ac5804ffc8ace22cda735c1) sys-utils/lscpu-arm.c | 6 +++--- sys-utils/lscpu-cputype.c | 8 ++++---- sys-utils/lscpu-virt.c | 2 +- sys-utils/lscpu.h | 3 +++ 4 files changed, 11 insertions(+), 8 deletions(-) commit 57daa7e29af9eeb079fe10b124c85f54e1d6ce39 Author: Stanislav Brabec Date: Wed Jun 19 17:31:34 2024 +0200 umount, losetup: Document loop destroy behavior The loop device detach runs asynchronously in the background. It can cause unexpected errors. Document the possible existence of the loop device after exit of losetup -d or umount and need of "udevadm settle". Signed-off-by: Stanislav Brabec Signed-off-by: Karel Zak (cherry picked from commit fc67f18be51f57ee9a59a0f8f7ad16f284a24a3e) sys-utils/losetup.8.adoc | 2 +- sys-utils/umount.8.adoc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) commit e0f3d0fc6097c921261a74372a3a47f27d834e75 Author: Pratik R. Sampat Date: Mon Jul 22 16:00:46 2024 +0000 lscpu: Skip aarch64 decode path for rest of the architectures lscpu behaves differently when run sudo vs non-sudo on AMD architectures. On sudo runs, it adds a BIOS model name and BIOS CPU family which it does not add for the latter. However since this parsing from the DMI is primarily catered to aarch64, for AMD platform the BIOS model name is printed out as follows "AMD XXX Processor *Unknown* CPU @ X.XGHz" due to the part number is not populated on the platform. The issue boils down to an unconditional call to arm_decode() which attempts to read the DMI path and populate the processor information such as processor version and part number which is set to Unknown on AMD CPUs. 81d6de9 (lscpu: remove the old code) changed the DMI path from /sys/firmware/dmi/entries/4-0/raw (non-existent) to /sys/firmware/dmi/tables/dmi (existent) which has brought this latent issue to light as DMI was starting to be parsed incorrectly. Therefore, do not perform aarch64 parsing for other architectures. Before ------ $ lscpu Vendor ID: AuthenticAMD Model name: AMD EPYC XXXX X-Core Processor CPU family: 26 $ sudo lscpu Vendor ID: AuthenticAMD BIOS Vendor ID: Advanced Micro Devices, Inc. Model name: AMD EPYC XXXX X-Core Processor BIOS Model name: AMD EPYC XXXX X-Core Processor Unknown CPU @ X.XGHz BIOS CPU family: 107 CPU family: 26 After ----- $ lscpu Vendor ID: AuthenticAMD Model name: AMD EPYC XXXX X-Core Processor CPU family: 26 $ sudo lscpu Vendor ID: AuthenticAMD Model name: AMD EPYC XXXX X-Core Processor CPU family: 26 Fixes: 81d6de9 ("lscpu: remove the old code") Co-developed-by: Karel Zak Signed-off-by: Karel Zak Signed-off-by: Pratik R. Sampat (cherry picked from commit 50a3efab6d126b28fcdcc28f1a0cd5cd596ae357) sys-utils/lscpu-arm.c | 37 ++++++++++++++++++++++++++++++++++++- sys-utils/lscpu.c | 3 ++- sys-utils/lscpu.h | 2 ++ 3 files changed, 40 insertions(+), 2 deletions(-) commit 7b90601fc1925c7be155e7e9317ef412ae4e7edb Author: Stanislav Brabec Date: Sun Jul 21 15:01:42 2024 +0200 agetty: Prevent cursor escape Starting with 5de97519, it is possible to escape the login dialog on the screen by arrow characters or using escape sequences. Since full processing of escape sequences and ignore them would be complicated, use a work around: instead of sending ESC to output, send a printable character. It could cause a rendering regression in a very obscure condition: compiled without IUTF8, encoding is ISO-11548-1 and BRAILLE PATTERN DOTS-1245 is part of login name. I believe that it is out of supported combinations. Signed-off-by: Stanislav Brabec (cherry picked from commit 20b405c0fea29675e1fb54b894eb1c18459f9d50) term-utils/agetty.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 859a1e49a7ab2b1df453c2537f461a87d299936c Author: John Keeping Date: Tue Aug 6 18:17:29 2024 +0100 libmount: propagate first error of multiple filesystem types Use the same error handling logic as do_mount_by_pattern() to better handle the case where EROFS is returned from the first filesystem in a list but subsequent filesystems overwrite this status with, for example, ENODEV. This allows read-only devices to mount without the user needing to explicitly specify "ro" while specifying a list of potential filesystems, some of which may not be available. Signed-off-by: John Keeping (cherry picked from commit e2b3f9915333b6e423e1f47d3f5e7cc6ea0ff482) libmount/src/context_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4fc642f4cbbc3ce9ca9d791d9c5369f018f5c9c7 Author: John Keeping Date: Tue Aug 6 18:16:00 2024 +0100 libmount: extract common error handling function Extract the logic for whether to continue trying more filesystem types to a function so that it can be reused to make this consistent between do_mount_by_pattern() and do_mount_by_types(). Signed-off-by: John Keeping (cherry picked from commit 7903560fa34fe1810cdaf3dcda7cafbdefb488ac) libmount/src/context_mount.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit d5094029ba8cc9baf7504b84e61723d5464f3c1e Author: Karel Zak Date: Thu Dec 26 12:45:31 2024 +0100 hardlink: fix memory corruption (size calculation) The current code rounds down the values for readsiz and blocksmax, which is incorrect. The sizes must be large enough to match the files. Addresses: https://github.com/util-linux/util-linux/issues/3330 Signed-off-by: Karel Zak (cherry picked from commit 70c1ffbdf4ecac30536e1af13764adbd883a161d) lib/fileeq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9857dbe5d9a841bac3b74cbafeafe9ad9e7fe023 Author: John Paul Adrian Glaubitz Date: Wed Dec 25 14:08:32 2024 +0100 tests: fdisk/bsd: Update expected output for alpha Fixes #3332 Signed-off-by: John Paul Adrian Glaubitz (cherry picked from commit 851a168e82a1264e2693acba5746ec30eee0c43b) tests/expected/fdisk/bsd_0_64_alpha.LE | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) commit 3f0323db6583469d0fc7222dd57ee4eca16a8553 Author: John Paul Adrian Glaubitz Date: Wed Dec 25 16:21:13 2024 +0100 fincore: Use correct syscall number for cachestat on alpha Fixes #3331, #3333 Signed-off-by: John Paul Adrian Glaubitz (cherry picked from commit a0ce085c261a1d981bfa0acd4272b6ba77bfa3be) misc-utils/fincore.c | 4 ++++ 1 file changed, 4 insertions(+) commit e237f330a68546656cf4817efc343d6d63fa2505 Author: Karel Zak Date: Thu Dec 26 11:34:10 2024 +0100 fstab.5 mount.8: add note about field separator The value of the mount option X-mount.idmap= can contain spaces as separators between mappings. Unfortunately, this conflicts with the fstab format where fields are separated by spaces. Using quotes does not solve this issue because fields are separated before they are parsed. This limitation of the fstab parser within libmount is due to backward compatibility. The fstab format is a de-facto standard and is parsed by many tools and libraries, including third-party shell scripts. It would not be practical to introduce any improvements in libmount that would make fstabs unparseable in other places. Users must understand that in-field spaces must be escaped by \040. For example, X-mount.idmap="0:0:1\040500:1000:1". Addresses: https://github.com/util-linux/util-linux/issues/2829 Signed-off-by: Karel Zak (cherry picked from commit 52dc9260d469a3731f49c5a78b23f38f2314789e) sys-utils/fstab.5.adoc | 4 +++- sys-utils/mount.8.adoc | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) commit ba556a1f11f5d640482e8d20c79eeed7e3357957 Author: Chris Hofstaedtler Date: Wed Nov 13 14:51:37 2024 +0100 Skip tmpfs-sensitive tests if fstype cannot be determined In certain isolation environments (f.e. Debian's sbuild+unshare), `/proc/mounts` does not have an entry for the directory we're building in. Then, findmnt as used in the tests returns nothing. As the build directory might very well be on tmpfs (and often is, in Debian), disable the two tests known to fail on tmpfs. In yet another scenario, if ran in a Docker/podman container, the fstype will read "overlay", which in the end can also be tmpfs, and we see problems there, too. This was noticed because torvalds/linux@e88e0d366f9cfbb810b0c8509dc5d130d5a53e02 changed the behaviour of the underlying syscalls on tmpfs in Linux 6.6. Closes: #3266 Debian bug #1086706 Signed-off-by: Chris Hofstaedtler (cherry picked from commit 83359a297911f39245343e270f8b9ea587df23f2) tests/ts/fadvise/drop | 6 +++--- tests/ts/fincore/count | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) commit c49120f6547d5d59124c210d78ff01b828696aa6 Author: наб Date: Mon Oct 28 19:19:14 2024 +0100 hardlink.1: directory|file is mandatory (cherry picked from commit 2d2e78720440a611656ec0ce7fdb3e2e5a5f24eb) misc-utils/hardlink.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3a1cbe8c25c0ec1a9b8aeafd2e7eaebb4f181eb9 Author: bearhoney <34187569+bearhoney@users.noreply.github.com> Date: Sun Oct 20 23:21:02 2024 +0200 Update chsh.1.adoc to avoid duplicates in man page Excluded man-common/help-version.adoc to avoid duplicate -h and -V option descriptions in the man page for chsh(1). (cherry picked from commit 3dc249abb2685f42c84323ae758d5e1ba8d9d02a) login-utils/chsh.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a727a86ca54fd8ae402d65852aac514446314ae9 Author: Geoffrey Casper Date: Sat Oct 19 01:34:35 2024 -0400 doc: fsck.8.adoc - fix email typo (cherry picked from commit 4acd71d2495159d18ea326d43be1bfe97d13d383) disk-utils/fsck.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 916494ae24480044d0f10815f2ad63c9260f4348 Author: Karel Zak Date: Mon Oct 14 15:47:03 2024 +0200 fdisk: (man) improve --sector-size description Signed-off-by: Karel Zak (cherry picked from commit 54f9a79301dcf492cab8e07134f96a921d367aa0) disk-utils/fdisk.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3ae06e966d183900a87ac72aa4fb4803d8a7df24 Author: Karel Zak Date: Mon Oct 14 11:45:32 2024 +0200 libfdisk: make sure libblkid uses the same sector size Libfdisk uses libblkid to check for filesystems on the device. It makes sense for both libraries to share the logical sector size setting, as this setting can be modified by using the fdisk command line. We do not see this as an issue, as filesystem detection rarely depends on sector size (with the exception of some RAIDs). Additionally, libblkid is usually intelligent enough to check multiple locations independently of the current device's sector size setting. Addresses: https://github.com/util-linux/util-linux/pull/3235 Signed-off-by: Karel Zak (cherry picked from commit 7ada6547fcd1f649fadaa8021ff21e3e0f431459) libfdisk/src/wipe.c | 3 +++ 1 file changed, 3 insertions(+) commit d0adb1c01c273e0210f348f0bb549bea4f2165af Author: Karel Zak Date: Wed Oct 9 09:54:41 2024 +0200 libblkid: add FSLASTBLOCK for swaparea Suggested-by: Peter Rajnoha Signed-off-by: Karel Zak (cherry picked from commit 0567efc790d4426df3001c6f8a19e276f114a450) libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/swap.c | 3 +++ tests/expected/blkid/low-probe-swap-luks | 1 + tests/expected/blkid/low-probe-swap1 | 1 + tests/expected/blkid/low-probe-swap1-big | 1 + 5 files changed, 7 insertions(+) commit e5421cc1b7d2c1628184f349650634d1b54ad565 Author: Thomas Weißschuh Date: Thu Oct 3 09:14:57 2024 +0200 libblkid: (exfat): validate fields used by prober The exFAT specification lists valid value ranges for the superblock fields. Validate the fields interpreted by the libblkid prober to avoid undefined behaviour. Signed-off-by: Thomas Weißschuh (cherry picked from commit 1bdfbe9a7af4f5897624ec1ab14e9f60a5b72c61) libblkid/src/superblocks/exfat.c | 33 +++++++++++++++++++++ .../test_blkid_fuzz_files/oss-fuzz-371061095 | Bin 0 -> 1025 bytes 2 files changed, 33 insertions(+) commit a48fe46565412b2f05c0c6dbbde2d66c639f494c Author: Henrik Lindström Date: Sat Sep 21 10:23:10 2024 +0200 autotools: allow enabling dmesg with --disable-all-programs Signed-off-by: Henrik Lindström (cherry picked from commit 42aa4cd4f6383875d4163620b0590c4ab659b68b) configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 6eca2df5891509de45755f2eafb4868bcf2b401d Author: Henrik Lindström Date: Sat Sep 21 10:23:09 2024 +0200 autotools: allow enabling lsblk with --disable-all-programs Signed-off-by: Henrik Lindström (cherry picked from commit d87ac5c6f2df44987528e03f603a35ab457f052c) configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 8b0366ba3db0d43326409cb8a986c50fc601422a Author: Michal Suchanek Date: Tue Sep 24 09:19:39 2024 +0200 partx: Fix example in man page The example is: partx -d --nr :-1 /dev/sdd Removes the last partition on _/dev/sdd_. The documentation says: M: Specifies the lower limit only (e.g. --nr 2:). :N Specifies the upper limit only (e.g. --nr :4). In the above example the lower limit is not set and the upper is set to the last partition, meaning all partitions. The lower limit should be set instead. partx -d --nr -1: /dev/sdd (cherry picked from commit 50ff6cbfe5bf0fa20dc61631346b2d6ccafc0b41) disk-utils/partx.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d86c00ffeeee420f9aee49a9eb59f44f5f0db6fb Author: Firas Khalil Khana Date: Mon Sep 23 21:17:42 2024 +0300 Update description of --disable-poman in configure.ac (cherry picked from commit ff8752841ddc94f8867088b0c0002ed830f3300b) configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 61d627a2c56410d6372591eda9302446c75a482b Author: Firas Khalil Khana Date: Mon Sep 23 23:41:01 2024 +0300 Fix typos in TODO (cherry picked from commit 937c13872cb6a4d9f3e10537f00e1af3abfa8e8a) Documentation/TODO | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit e143539d30fd18afb3ba6d3c6e50a260d4219895 Author: Karel Zak Date: Mon Sep 23 12:01:40 2024 +0200 autotools: add Libs.private to uuid.pc Addresses: https://github.com/util-linux/util-linux/issues/3210 Signed-off-by: Karel Zak (cherry picked from commit 81ea117e0396274808a77d40bf11af44ea047285) Makefile.am | 1 + libuuid/uuid.pc.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit 605385e42ca86ade95f9364e819eb6707d427448 Author: Mete Durlu Date: Mon Sep 2 17:05:53 2024 +0200 chcpu(8): Document CPU deconfiguring behavior If architecture supports (de)configuring CPUs, the user should deconfigure disabled CPUs to prevent performance penalties. Signed-off-by: Mete Durlu (cherry picked from commit 5be86d47ad6d1bbdf6699e7cabc8dc663abfa1d7) sys-utils/chcpu.8.adoc | 2 ++ 1 file changed, 2 insertions(+) commit a900d517d512d3bdf1cbf6052a39619e298d3a8a Author: Mete Durlu Date: Mon Sep 2 17:05:52 2024 +0200 chcpu(8): Fix typo Signed-off-by: Mete Durlu (cherry picked from commit d4c819768fe5a666902d50a961cab770f81b5247) sys-utils/chcpu.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5f861361e86bb4bb8304b897eba2a9387424a5e6 Author: Karel Zak Date: Tue Aug 27 12:00:21 2024 +0200 autotools: fix securedir and pam_lastlog2 install Addresses: https://github.com/util-linux/util-linux/pull/3173 Signed-off-by: Karel Zak (cherry picked from commit 9c787eaac43f5f01146f792b0239f587e4b81202) Makefile.am | 6 +++--- configure.ac | 6 +++--- pam_lastlog2/src/Makemodule.am | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) commit e582814e1281da9b7177dccbfa5eff2a5b8795c4 Author: Yang Kun <91833768+ikspress@users.noreply.github.com> Date: Sat Aug 24 22:15:16 2024 +0800 libblkid: improve portability (cherry picked from commit 6dd59417e81967036037d430cc56b3e64d45f5a3) libblkid/src/probe.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) commit 209e17be97ff5d955728515ea0c66628ed30e07d Author: Karel Zak Date: Thu Aug 22 08:56:52 2024 +0200 more: make sure we have data on stderr more(1) uses more_poll() to monitor data on stdin, stderr, and signals. It is used before read_command(), but this function only reads from stderr. Therefore, if any other non-stderr event occurs, this function will wait on read(). In this case, more(1) will not react to signals anymore. We need to ensure that more(1) only waits in more_poll(). Try  for x in {1..1000}; do echo "line $x"; done | more to reproduce. Reported-by: Radka Skvarilova Signed-off-by: Karel Zak (cherry picked from commit 640b9480bd3efc0f4bc7f38a785d02cda70ec5c3) text-utils/more.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) commit 3de9ae363cd2881575825fdc2e01cf0886e50feb Author: mr-bronson Date: Sun Aug 18 01:32:00 2024 +0000 fdisk: fix sgi_menu_cb return value Would otherwise return -EINVAL even on success after fdisk_sgi_set_bootfile. (cherry picked from commit d2cf3cd6137d5612a3984b301e6c25d429976886) disk-utils/fdisk-menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d71109f1f7c19acdfcb87dc31baf5e8a7f1db977 Author: mr-bronson Date: Sun Aug 18 01:06:44 2024 +0000 fdisk: fix fdisk_sgi_set_bootfile return value Supposed to be '0 on success, <0 on error'. (cherry picked from commit d10b038506936f3ad584fa2e017d2d860ed6d133) libfdisk/src/sgi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit c4b155cbf48e80328626b6c94ee6f9c121765d59 Author: mr-bronson Date: Sun Aug 18 00:54:08 2024 +0000 fdisk: fix sgi_check_bootfile name size minimum The name does not contain newline, so the comment and logic was wrong. (cherry picked from commit 6dfc07a7189eea461d52ff85620b286a4817a658) libfdisk/src/sgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 37923ef6ad5431d61bedba96c64c74c0aa91c158 Author: mr-bronson Date: Sun Aug 18 00:49:27 2024 +0000 fdisk: fix SGI boot file prompt Prompt was clearly missing something. (cherry picked from commit 50f2c94846d737afc00692ed440e5e1f02281f6e) libfdisk/src/sgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4d3758d70515cf6deb2b5a76e647c83e6fd06d46 Author: Karel Zak Date: Thu Jul 11 13:26:30 2024 +0200 agetty: add "systemd" to --version output Signed-off-by: Karel Zak (cherry picked from commit 6fc5b5af4bfea4e3115cddb2c1716b3120bb3d4f) term-utils/agetty.c | 3 +++ 1 file changed, 3 insertions(+) commit 170201a9af65ebe848480ab2b15acff2f7008b0e Author: Chris Hofstaedtler Date: Tue Apr 9 10:34:59 2024 +0200 audit-arch.h: add defines for m68k, sh John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0, too. Reviewed-by: John Paul Adrian Glaubitz Reviewed-by: Thomas Weißschuh Signed-off-by: Chris Hofstaedtler (cherry picked from commit 5ebf0edb0a0531cba801c7791543c610725bf944) include/audit-arch.h | 8 ++++++++ 1 file changed, 8 insertions(+) commit dbf8956dffac96d5b73e103e531629ca229ab49d Author: Thomas Weißschuh Date: Tue Apr 9 11:00:26 2024 +0200 logger: correctly format tv_usec tv_usec is an unspecified signed integer type. The format string %u assumes an unsigned int, which is incorrect. Especially on 32bit big-endian, where it can lead to invalid values. Reported-by: John Paul Adrian Glaubitz Link: https://lore.kernel.org/util-linux/afef1b770ad80d50660bb2c53a0a8330b88d1049.camel@physik.fu-berlin.de/ Signed-off-by: Thomas Weißschuh (cherry picked from commit 6227b2b0585ee2ccf224cf70c7144296a814a4ab) misc-utils/logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 48e85a37a2ef7023e39d5e14848998a1eab61562 Author: Masatake YAMATO Date: Sat Jun 8 04:54:03 2024 +0900 lsns: ignore ESRCH errors reported when accessing files under /proc Fix #2799. If a process is gone, system calls accessing files under /proc can return ESRCH. [kzak@redhat.com: - backport to stable/v2.40] Suggested by Johannes Edmeier (@joshiste). Signed-off-by: Masatake YAMATO Signed-off-by: Karel Zak sys-utils/lsns.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 34eb1f6daac0bf5b36bf9072773b007a1615e923 Author: Zhaoming Luo Date: Mon Dec 9 10:11:54 2024 +0800 hwclock: Remove ioperm declare as it causes nested extern declare warning The extern declaration causes the following warning: ``` CC sys-utils/hwclock-hwclock-cmos.o sys-utils/hwclock-cmos.c: In function 'i386_iopl': sys-utils/hwclock-cmos.c:356:20: warning: nested extern declaration of 'ioperm' [-Wnested-externs] 356 | extern int ioperm(unsigned long from, unsigned long num, int turn_on); | ^~~~~~ sys-utils/hwclock-cmos.c:356:20: warning: redundant redeclaration of 'ioperm' [-Wredundant-decls] In file included from sys-utils/hwclock-cmos.c:68: /usr/include/i386-gnu/sys/io.h:29:12: note: previous declaration of 'ioperm' with type 'int(long unsigned int, long unsigned int, int)' 29 | extern int ioperm (unsigned long int __from, unsigned long int __num, | ^~~~~~ CCLD hwclock ``` (cherry picked from commit 5763e74d3cea008c31bfd48bc88660a1a32ecfa6) sys-utils/hwclock-cmos.c | 1 - 1 file changed, 1 deletion(-) commit 74a88250bdec3f83048de90594319e6e4c5cc1e2 Author: Thomas Weißschuh Date: Sun Dec 8 09:55:27 2024 +0100 libblkid: (gpt) use blkid_probe_verify_csum() for partition array checksum All checksums should be tests with this function to keep checksum validation configurable. Signed-off-by: Thomas Weißschuh (cherry picked from commit fce366c4982273cd73df727338ed02d9f357b6c6) libblkid/src/partitions/gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 474f2599a3786d4359b8f5abe7416cdf6321c002 Author: nilfsuser5678 <189666860+nilfsuser5678@users.noreply.github.com> Date: Fri Nov 29 17:27:12 2024 +0000 libmount: exec mount helpers with posixly correct argument order This improves compatibility with non-gnu userspaces. On systems where the libc provides posix getopt instead of gnu getopt, mount helpers which use getopt to parse arguments will not parse options which appear after non-option arguments. This patch ensures mount/unmount work as expected in this situation. mount: fix expected argument order for mount helpers in tests (cherry picked from commit 2d680b72ac61644e4ba177e6569d8ca13580c248) libmount/src/context_mount.c | 26 ++++++++++++++------------ libmount/src/context_umount.c | 21 +++++++++++---------- tests/expected/mount/special-basic | 2 +- tests/expected/mount/special-multi-types | 2 +- tests/expected/mount/special-options | 2 +- tests/expected/mount/special-user | 2 +- tests/expected/mount/special-username | 2 +- 7 files changed, 30 insertions(+), 27 deletions(-) commit d6d1bec40182cc7a95a37201ba633a4de5c36fe4 Author: nilfsuser5678 <189666860+nilfsuser5678@users.noreply.github.com> Date: Fri Nov 29 17:22:57 2024 +0000 libmount/context_mount: fix argument number comments (cherry picked from commit d2f7e308f4507dadc213e293771d627a0fd41f9c) libmount/src/context_mount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit d12810d42303e001a174493abf8b03fdda294d38 Author: Christoph Anton Mitterer Date: Mon Nov 25 02:42:27 2024 +0100 man pages: document `--user` option for `runuser` Signed-off-by: Christoph Anton Mitterer (cherry picked from commit 2a562a5f5f56f6afb87ee7521f486248cb21aab6) login-utils/runuser.1.adoc | 3 +++ 1 file changed, 3 insertions(+) commit b55938df6f21e98c4f8e97774842ec254ac42e4f Author: Christoph Anton Mitterer Date: Mon Nov 25 02:41:13 2024 +0100 man pages: use `user` rather than `username` This are also the terms used in the usage outputs of the programs and the rest of the man pages. Signed-off-by: Christoph Anton Mitterer (cherry picked from commit c8506371c644dc057d9f933cf2b0b48799a720bc) login-utils/runuser.1.adoc | 2 +- login-utils/su.1.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6ac49b777c03ee15ad5999bd4f79c42f3733b026 Author: Christoph Anton Mitterer Date: Mon Nov 25 02:38:14 2024 +0100 bash-completion: add `--pty` and `--no-pty` options for `su` and `runuser` Signed-off-by: Christoph Anton Mitterer (cherry picked from commit 4c60f0a0f80169840eba42d9a55bd2f920000921) bash-completion/su | 2 ++ 1 file changed, 2 insertions(+) commit de58f981095fc0c298cf6f6ed49369607882d1de Author: Christoph Anton Mitterer Date: Mon Nov 25 02:35:34 2024 +0100 bash-completion: complete `--user` only for `runuser`, not for `su` Signed-off-by: Christoph Anton Mitterer (cherry picked from commit 364f87a474ed9945e5b5527ebefe2bb15a721237) bash-completion/su | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit 6c31b7f43c543860b03422dc5c5b0a9ed30c17f3 Author: Karel Zak Date: Mon Nov 25 10:51:41 2024 +0100 po-man: fix typo, update .gitignore * remove "po" from po4a.cfg (it's not lang) * add ko/, ro/ and sr/ to .gitignore * add po/ to .gitignore (it's directory with generic po stuff) Signed-off-by: Karel Zak (cherry picked from commit 9902cf42b8c5140aae163598c3228f2a63a417de) po-man/.gitignore | 3 +++ po-man/README.md | 2 ++ po-man/po4a.cfg | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) commit 0d29a1237ecccf4075f0ebe6b26e38e3fa3032d4 Author: Karel Zak Date: Wed Nov 20 23:45:50 2024 +0100 po-man: add missing langs to po4a.cfg Signed-off-by: Karel Zak (cherry picked from commit 23a4dc0a35ec9d77653dfca509210ee6bb4c96e6) po-man/po4a.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2543548b8c4ce40d64d15ca8d7b473c3e104502a Author: Zbigniew Jędrzejewski-Szmek Date: Sun Nov 17 19:04:49 2024 +0100 mkswap: set selinux label also when creating file With --file, shen the file is created by mkswap, stat() fails with -ENOENT and the st_mode field is not populated, so the IS_REG() check fails. But if we created by mkswap, we know it's just a regular file and we should apply the selinux label. Reported in https://bugzilla.redhat.com/show_bug.cgi?id=2324811#c56. (cherry picked from commit 1dd27d1fa733f97b3a94822ccfd406e1a572867d) disk-utils/mkswap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit ee8235a65edd01a4899f2557dc9aa2cb9c6de7bc Author: Karel Zak Date: Thu Nov 7 12:26:25 2024 +0100 nsenter: support empty environ[] There is no error when the /proc/#/environ file does not contain any NAME=value items. Backport from master (v2.41) branch. Fixes: https://github.com/util-linux/util-linux/issues/3270 Signed-off-by: Karel Zak lib/env.c | 1 + sys-utils/nsenter.c | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) commit 10a7ce1a048f7f5d9b610e37c271e0cf42cd3791 Author: Karel Zak Date: Thu Nov 7 11:31:07 2024 +0100 lib/env: fix env_list_setenv() for strings without '=' If there is no '=' in the string, the function will not move to the next list item and will loop indefinitely. Fixes: https://github.com/util-linux/util-linux/issues/3270 Signed-off-by: Karel Zak lib/env.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 8c8e5137b7249b40ec256a2b2e26a49484b689e0 Author: Mark Harfouche Date: Wed Aug 28 22:02:06 2024 -0400 Define EXIT_ENOSYS in test helpers (cherry picked from commit 8d66c53d34f4d79ba4d84ab868e3aabd722aa073) tests/helpers/test_mkfds.c | 1 + 1 file changed, 1 insertion(+) commit 1dc5dd58ccceebe1cc1a0596b764e8c84979f494 Author: Karel Zak Date: Mon Aug 26 14:23:16 2024 +0200 meson: check for BPF_OBJ_NAME_LEN and linux/bpf.h Signed-off-by: Karel Zak (cherry picked from commit 1399c75764811398086b9e7bbb59c5ebfccf2310) meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit f8aa8e94e152d97d003b0ddc466d91adfe11977a Author: Karel Zak Date: Mon Aug 26 14:12:44 2024 +0200 autotools: Check for BPF_OBJ_NAME_LEN (required by lsfd) Addresses: https://github.com/util-linux/util-linux/issues/2945 Signed-off-by: Karel Zak (cherry picked from commit 036d72749ca274294051b43fd66727061a772b9c) configure.ac | 5 +++++ 1 file changed, 5 insertions(+) commit d512dbf00c4ecb11cb1f30f728ad05e73e45b441 Author: Karel Zak Date: Wed Apr 10 11:50:58 2024 +0200 autotools: add --disable-enosys, check for linux/audit.h Signed-off-by: Karel Zak (cherry picked from commit ba05b9ffa7544c2fa5f88147acc85f704d4785de) configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 07af224c338e1ff7a09899bc501e17f803511ffb Author: Karel Zak Date: Wed Apr 10 11:44:49 2024 +0200 autotools: check for sys/vfs.h and linux/bpf.h Addresses: https://github.com/util-linux/util-linux/pull/2933 Addresses: https://github.com/util-linux/util-linux/issues/2945 Signed-off-by: Karel Zak (cherry picked from commit 0c44599f92dc556364c18bd8c1e65808776dd614) configure.ac | 5 +++++ 1 file changed, 5 insertions(+) commit f22aa4beb9ae9d502e28dd4a66d0683e1ecfec8a Author: Satadru Pramanik, DO, MPH, MEng Date: Fri Jul 19 13:52:26 2024 -0400 Add thread dep to libuuid meson.build Fixes: https://github.com/util-linux/util-linux/issues/3131 (cherry picked from commit 51369aa1e11b14af26cdb91f5fff6bbbf1d306af) libuuid/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit b8251d2aab2af52adedc3f24e300203952180bfc Author: Victor Westerhuis Date: Thu Jul 25 12:58:34 2024 +0200 libblkid: bitlocker: add image for Windows 7+ BitLocker (cherry picked from commit 63d3b78b67123da942edc084bc2257ed20874be2) tests/expected/blkid/low-probe-bitlocker-win7 | 3 +++ tests/ts/blkid/images-fs/bitlocker-win7.img.xz | Bin 0 -> 6084 bytes 2 files changed, 3 insertions(+) commit e0dec3cc5c7cd171e34eddb9769aa2da84a79154 Author: Victor Westerhuis Date: Thu Jul 25 15:10:16 2024 +0200 libblkid: bitlocker: fix version on big-endian systems (cherry picked from commit a4d0f18f46b9968a02653a5a7b5332f8c0466ba9) libblkid/src/superblocks/bitlocker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2993f460a2414db197414d3094d34def63207bbf Author: Karel Zak Date: Wed Apr 17 12:46:50 2024 +0200 lslocks: remove deadcode [coverity scan] Signed-off-by: Karel Zak (cherry picked from commit 82af9ab04fd31eef71f207d344fbf893a6ef4765) misc-utils/lslocks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit ae548d972ddd3fe8089af3f799a2e35925859685 Author: Karel Zak Date: Wed Jul 10 15:55:35 2024 +0200 uuidd: fix typo in tmpfiles.conf Let's change 2755 to 2775. The directory must be writable for the 'uuidd' group. Addresses: http://github.com/util-linux/util-linux/commit/e0c41735aa13a7a62e42c0428823537d3edc02a8 Signed-off-by: Karel Zak (cherry picked from commit 7af2539f58b3bd3bb2f5e44138595be116c8d76c) misc-utils/uuidd-tmpfiles.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 555152c36b1026ea97eb06a9a57fac154fa36ed0 Author: Karel Zak Date: Tue Jul 9 17:04:09 2024 +0200 uuidd: fix /var/lib/libuuid mode uuidd-tmpfiles.conf The directory can be directly used by libuuid, for example, by running "uuidgen --time" as root, even if the uuidd daemon is not installed. In this case, we must create a clock.txt file with the uuidd group to prevent any potential ownership mismatch if the uuidd daemon is installed later. The 2xxx mode (setgid) forces open(O_CREAT) in libuuid to create the file with the uuidd group. Please note that mode 2755 is the standard used for years in RHEL. Signed-off-by: Karel Zak (cherry picked from commit e0c41735aa13a7a62e42c0428823537d3edc02a8) misc-utils/uuidd-tmpfiles.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)