Changes between v2.40-rc1 and v2.40-rc2 -------------------------------------------- commit 53d14ef4e3b80147900dd038c1aefe3f9c4135a8 Author: Karel Zak Date: Thu Feb 29 21:38:32 2024 +0100 build-sys: release++ (v2.40-rc2) Signed-off-by: Karel Zak NEWS | 6 +++++- configure.ac | 2 +- meson.build | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) commit a0be276db3082864ad555dea45db28a8666fac69 Author: Karel Zak Date: Thu Feb 29 21:35:28 2024 +0100 docs: update v2.40-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.40-ReleaseNotes | 83 ++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) commit 27a54fb6a7fd032ddbb8e4304ed775132cccc973 Author: Karel Zak Date: Thu Feb 29 21:30:28 2024 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 6 ++++++ 1 file changed, 6 insertions(+) commit 6bd976206f420a233a179906565bb6abf2bdf2bc Author: Karel Zak Date: Thu Feb 29 21:03:42 2024 +0100 po-man: merge changes Signed-off-by: Karel Zak po-man/cs.po | 2138 ++++++++++++++++++++++--------------------- po-man/de.po | 2169 +++++++++++++++++++++++--------------------- po-man/es.po | 2114 ++++++++++++++++++++++--------------------- po-man/fr.po | 2214 +++++++++++++++++++++++---------------------- po-man/pt_BR.po | 2117 ++++++++++++++++++++++--------------------- po-man/sr.po | 2169 +++++++++++++++++++++++--------------------- po-man/uk.po | 2160 ++++++++++++++++++++++--------------------- po-man/util-linux-man.pot | 2115 ++++++++++++++++++++++--------------------- 8 files changed, 8827 insertions(+), 8369 deletions(-) commit 1c225833a8446ca3d0d11127ff6f98f64878c69d Author: Karel Zak Date: Thu Feb 29 21:03:36 2024 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 567 ++-- po/cs.po | 565 ++-- po/da.po | 569 ++-- po/de.po | 569 ++-- po/es.po | 569 ++-- po/et.po | 561 ++-- po/eu.po | 564 ++-- po/fi.po | 561 ++-- po/fr.po | 569 ++-- po/gl.po | 567 ++-- po/hr.po | 569 ++-- po/hu.po | 561 ++-- po/id.po | 561 ++-- po/it.po | 561 ++-- po/ja.po | 565 ++-- po/ko.po | 569 ++-- po/nl.po | 563 ++-- po/pl.po | 569 ++-- po/pt.po | 569 ++-- po/pt_BR.po | 565 ++-- po/ru.po | 567 ++-- po/sk.po | 581 ++-- po/sl.po | 561 ++-- po/sr.po | 569 ++-- po/sv.po | 569 ++-- po/tr.po | 8857 +++++++++++++++++++++++++++++++---------------------- po/uk.po | 569 ++-- po/util-linux.pot | 556 ++-- po/vi.po | 563 ++-- po/zh_CN.po | 565 ++-- po/zh_TW.po | 562 ++-- 31 files changed, 13885 insertions(+), 11947 deletions(-) commit 053639c55ff63bc8af35d04e225e97c92554a314 Author: Emir SARI Date: Thu Feb 29 20:58:56 2024 +0100 po: update tr.po (from translationproject.org) po/tr.po | 8911 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 3769 insertions(+), 5142 deletions(-) commit 8a8696be24ee686e8ae890521ae98ebea14582c5 Author: Karel Zak Date: Thu Feb 29 20:55:53 2024 +0100 lscpu: remove redundant include Signed-off-by: Karel Zak sys-utils/lscpu-virt.c | 1 - 1 file changed, 1 deletion(-) commit f030775ffeaa8627c88434f7d0cba1a454aa0ffa Author: Karel Zak Date: Thu Feb 29 20:43:35 2024 +0100 lslocks: fix buffer overflow * don't use memset() to init variables * use xreaddir() to reduce code * use ssize_t for readlinkat() return value to avoid buffer overflow Signed-off-by: Karel Zak misc-utils/lslocks.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) commit 30eb9e10698c8431de08e8be3cfe0102b7dbe495 Author: Masatake YAMATO Date: Wed Jan 3 16:33:19 2024 +0900 lsfd: read /proc/$pid/ns/mnt earlier The change fba9898fd5b1d20a2ed350b7b542d9f8a3597a0c I introduced unexpectedly canceled the optimization technique introduced in a7f70ce17a925f1085bfa4b292427f8741d7e2a2 that reduced the number of times reading /proc/$pid/mountinfo. This change reenables the technique. Signed-off-by: Masatake YAMATO (cherry picked from commit a99427e9c4e4b1ab57df1f94f6addc1769426f5a) misc-utils/lsfd.c | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) commit 7a8881c63cf0b0ed9ccbc68f255812e4cd597032 Author: Masatake YAMATO Date: Wed Jan 3 15:54:03 2024 +0900 lsfd: (refactor) rename add_nodevs to read_mountinfo Signed-off-by: Masatake YAMATO (cherry picked from commit 18a1403401112665f5015770c99f96ced5c6e38e) misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0964276250613c790d0cc8ebb0eac76c1811ac43 Author: Masatake YAMATO Date: Thu Jan 4 02:19:28 2024 +0900 lsfd: make the way to read /proc/$pid/mountinfo robust Signed-off-by: Masatake YAMATO (cherry picked from commit 80b3c8ccdb35f862c02934ddeeadedcc60e310e8) misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit fc930b52e795c7fd86688c5d451c8924919773f8 Author: Masatake YAMATO Date: Thu Jan 4 04:57:25 2024 +0900 lsfd: (cosmetic) normalize whitespaces Signed-off-by: Masatake YAMATO (cherry picked from commit d967f8e6e3c7eb93cd4c7302718e234488f90683) misc-utils/lsfd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit c0b2650acab9ec0aa1ab9473bf422afa920ed262 Author: Stanislav Brabec Date: Wed Feb 28 15:06:14 2024 +0100 setterm: Document behavior of redirection Debugging an error of setterm, I realized that setterm --powerdown operates on stdout but setterm --powersave operates on stdin. Such unexpected behavior should be documented. I prefer a less accurate generic "always redirect both stdin and stdout" over recommending of the correct I/O stream for each option separately. Signed-off-by: Stanislav Brabec (cherry picked from commit 4aa584a0e7482b89599c01986cd4ea69a397f808) term-utils/setterm.1.adoc | 4 ++++ 1 file changed, 4 insertions(+) commit d36a8b1db7d9a5b3d5e3b52c09fe347a0c524b2f Author: Karel Zak Date: Thu Feb 29 11:09:11 2024 +0100 meson: fix LIBBLKID_VERSION definition Fixes: https://github.com/util-linux/util-linux/issues/2802 Signed-off-by: Karel Zak (cherry picked from commit 311ea4e73b8b35788e1bbc784350082e45e9d445) meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 436a95d2ac237538f5d0a3a7b9c2e5290040522b Author: Karel Zak Date: Wed Feb 28 13:07:39 2024 +0100 build-sys: introduce localstatedir The directory is already used by ./configure.ac, but it has never been exported to the Makefile.am or used by meson. Signed-off-by: Karel Zak Signed-off-by: Christian Hesse (cherry picked from commit 107b2fbeac3cd6b64c7b2fb40f8ecd0feee220ad) Makefile.am | 2 ++ configure.ac | 3 ++- libuuid/src/uuidP.h | 4 ++-- meson.build | 3 +++ misc-utils/uuidd-tmpfiles.conf.in | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) commit 3a26244fe275ba52c942c70870673894ba4c5eeb Author: Christian Hesse Date: Tue Feb 27 22:36:13 2024 +0100 lastlog2: rename tmpfiles Signed-off-by: Christian Hesse (cherry picked from commit 306cd7c7ce2920bbc204c6e404e3480e132ff1dd) misc-utils/.gitignore | 2 +- misc-utils/Makemodule.am | 4 ++-- misc-utils/{lastlog2.conf.in => lastlog2-tmpfiles.conf.in} | 0 misc-utils/meson.build | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) commit eabd237457cca1d856e093d8e5a75629cf295b02 Author: Christian Hesse Date: Thu Feb 22 08:50:52 2024 +0100 tmpfiles: depend on systemd... ... as systemd-tmpfiles is required to handle this. Signed-off-by: Christian Hesse (cherry picked from commit ffd6db8951c2ee6d7fd9ca2491da819dec3f3286) misc-utils/meson.build | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) commit 0acc8e1876f8270b34c8cf03645c7820b480adae Author: Christian Hesse Date: Tue Feb 27 13:07:30 2024 +0100 uuidd.rc: create localstatedir in init script Signed-off-by: Christian Hesse (cherry picked from commit b3fdc48a5672ae39b6ceceb7e46a5e1351f06fb6) misc-utils/uuidd.rc.in | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit 0ab09c9b09826057a80b28092d30c6dd1453fbbb Author: Christian Hesse Date: Thu Feb 22 08:48:55 2024 +0100 tmpfiles: add and install for uuidd, generate /run/uuidd & /var/lib/libuuid These directories are requird for uuidd, so let systemd-tmpfiles create them. Signed-off-by: Christian Hesse (cherry picked from commit 2b7410544c90f56fbb9abca999ed48feffbe31ef) misc-utils/.gitignore | 3 ++- misc-utils/Makemodule.am | 4 +++- misc-utils/meson.build | 8 ++++++++ misc-utils/uuidd-tmpfiles.conf.in | 6 ++++++ 4 files changed, 19 insertions(+), 2 deletions(-) commit 1ea0695525dc89afaf3ef78807426e494683dc33 Author: Karel Zak Date: Wed Feb 28 14:37:25 2024 +0100 docs: move GPL-2.0 license text to Docimentation directory Signed-off-by: Karel Zak (cherry picked from commit 69b9215a4e50a77f3663ee00f382c438ccc62ac9) COPYING.GPL-2.0-only => Documentation/licenses/COPYING.GPL-2.0-only | 0 1 file changed, 0 insertions(+), 0 deletions(-) commit 9769e7b9562d5b856e95a93d0935f864be00baf9 Author: Karel Zak Date: Wed Feb 28 13:22:51 2024 +0100 docs: use proper XSPD identifier for GPL-2.0 Signed-off-by: Karel Zak (cherry picked from commit ea35ab0a08552a3be19ee8a964bfdd53a98d4f03) COPYING.GPL-2.0-only | 339 ++++++++++++++++++++++++++++++++++++++++++++++++++ README.licensing | 2 +- sys-utils/lscpu-dmi.c | 2 +- sys-utils/nsenter.c | 2 +- 4 files changed, 342 insertions(+), 3 deletions(-) commit 0901569a94dc42855e57b8e2aea859e287662263 Author: Karel Zak Date: Wed Feb 28 12:21:56 2024 +0100 meson: avoid future-deprecated feature Based on b837ab02711d1a9352232ed2ba6ffbd47c201446 Signed-off-by: Karel Zak meson_options.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 95aacefe18fa1ccb1296c752d292279a2f84fb51 Author: Karel Zak Date: Tue Feb 27 18:38:02 2024 +0100 hexdump: check blocksize when display data hexdump(1) stores input to buffer and apply format unit when prints the output. The unit can move pointer which points to the buffer, but code does not check for limits. Fixes: https://github.com/util-linux/util-linux/issues/2806 Signed-off-by: Karel Zak (cherry picked from commit dfa1ad272528a92384adac523cf2f2949b767d8d) text-utils/hexdump-display.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit 277e3a872036d959b63317d15f7009dba3507c54 Author: Karel Zak Date: Mon Feb 26 12:44:10 2024 +0100 libmount: report kernel message from new API This is a very minimalistic implementation for v2.40 designed to print error messages from the kernel. It exclusively displays errors, and the patch does not introduce any new library interface for this purpose. Instead, it simply replaces hardcoded messages within libmount with kernel messages. It's worth noting that the final implementation will necessitate per-hook error handling in libmount and likely a new library API to access other types of messages (warnings, notices, etc.). Signed-off-by: Karel Zak (cherry picked from commit 9da5644e414cdc318f0311260dabc6035c85b58e) libmount/src/context.c | 2 ++ libmount/src/context_mount.c | 7 +++++++ libmount/src/hook_mount.c | 46 ++++++++++++++++++++++++++------------------ libmount/src/mountP.h | 4 ++++ 4 files changed, 40 insertions(+), 19 deletions(-) commit 0e78f7c1b25e0390befe0c1d252420dab44b3488 Author: Karel Zak Date: Mon Feb 26 14:30:55 2024 +0100 dmesg: fix wrong size calculation * don't use string based function strspn() if work with non-zero terminated buffer * make sure that message size is calculated from within buffer pointers Fixes: https://github.com/util-linux/util-linux/issues/2807 Signed-off-by: Karel Zak (cherry picked from commit 0e5031a425c727b16831c108a92271e240c29595) sys-utils/dmesg.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit 7be163aa1657c4bd854bde84a83a8c5fcffd25dd Author: Thomas Kaiser Date: Mon Feb 26 12:20:11 2024 +0100 Adding Neoverse-V3/-N3 ARM cores (cherry picked from commit c91694dd066d07c2ca7d68cbe212b2e1f893e942) sys-utils/lscpu-arm.c | 2 ++ 1 file changed, 2 insertions(+) commit 7645148907592c0fb98373f07e1c887ebc9b376f Author: Thomas Weißschuh Date: Fri Feb 23 08:15:32 2024 +0100 meson: run compiler checks with -D_GNU_SOURCE when necessary Through the addition of default_options: c_std=c99 some build-time checks were incorrect. Explicitly add -D_GNU_SOURCE where necessary. Fixes: 6240e4458cdf ("build: use -std=c99 and -std=c++11 by default") Signed-off-by: Thomas Weißschuh (cherry picked from commit 1eeabbb42649f8334b6330689fec54325591fe2f) meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 511947e5e5a3eefa4055842aa85ebeced1975414 Author: Jan Kara Date: Wed Feb 21 18:30:50 2024 +0100 libmount: don't hold write fd to mounted device Avoid holding writeable fd to a loop device that is being mounted. In the hardened configurations (CONFIG_BLK_DEV_WRITE_MOUNTED = n) the kernel wants to make sure nobody else has the block device writeably open when mounting so this makes the mount fail. Reported-by: JunChao Sun Signed-off-by: Jan Kara Acked-by: Christian Brauner (cherry picked from commit 1cde32f323e0970f6c7f35940dcc0aea97b821e5) libmount/src/hook_loopdev.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit 187bae5140d083d5ee96ba02c639e728ab71d1ff Author: Karel Zak Date: Wed Feb 21 10:13:50 2024 +0100 docs: cleanup public domain license texts The absence of an official 'Public domain' definition is the reason why, for example, the Fedora distribution aggregates all variants from various projects to make them reviewable. This commit unifies the 'Public domain' statements to make it simple. Signed-off-by: Karel Zak include/crc32.h | 4 ++-- include/crc32c.h | 4 ++-- include/pty-session.h | 3 ++- lib/sha1.c | 3 +++ lib/sha256.c | 3 +++ login-utils/newgrp.1.adoc | 6 +++++- misc-utils/mcookie.c | 6 +++++- misc-utils/rename.1.adoc | 6 +++++- sys-utils/setpgid.1.adoc | 4 ++++ text-utils/line.1.adoc | 6 +++++- text-utils/line.c | 7 +++---- 11 files changed, 39 insertions(+), 13 deletions(-) commit 22f83602a4e466bfec705d149f4a34f56b25414d Author: Karel Zak Date: Tue Feb 20 12:26:33 2024 +0100 more: fix poll() use The more(1) command utilizes signalfd() to monitor signals and reads commands from the user via stderr (as stdin is typically used for piping and not for user interaction). However, the current more_poll() implementation ignores stderr. As a result, more(1) waits on read(stderr) while completely ignoring signals. This issue becomes evident when using commands like: grep foo /path/file | more In such cases, it's only possible to exit 'more' by pressing 'q'; CTRL+C does not work. Changes: - Refactor more_poll() code: - Introduce an enum to access pfd[] items instead of using magical constants. - Implement a while() loop to handle EAGAIN or POLLHUP. - Ignore stdin after POLLHUP (indicating that the pipe's peer closed). - Ensure stderr is also checked. - Use return codes akin to classic poll(). Note: I have doubts regarding the usability of stdin in more_poll(), as the function is primarily used to wait for user input (via stderr) and to monitor signals. Nevertheless, it is retained for potential use in detecting when the pipe's peer (or the entire session) has been terminated (see commit 68e14d3d5f4116ad3aca0e392d008645ea90cf70). Signed-off-by: Karel Zak text-utils/more.c | 126 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 82 insertions(+), 44 deletions(-) commit e457cf097d8d6a1e5d9fe72caabd908aedfc2c19 Author: Karel Zak Date: Tue Feb 20 10:37:02 2024 +0100 lastlog2: convert check_user() to boolean-like macro Let's make simple and stupid. Signed-off-by: Karel Zak (cherry picked from commit af93603e52d56fdd6246a038139a5d0e83a5c6a2) misc-utils/lastlog2.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) commit cfbe236dae22772009656cfb72e8a0c539046c7f Author: Karel Zak Date: Tue Feb 20 10:28:06 2024 +0100 lastlog: cleanup function definitions - let's make it more compatible with the rest of util-linux - don't initialize global static variables (it's unnecessary) Signed-off-by: Karel Zak (cherry picked from commit c71f38287c81cb06433e3949dadba8bc74dc8588) misc-utils/lastlog2.c | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) commit 5ccda5faea795c4971c0993f8eea0f0a4cbe897d Author: Karel Zak Date: Tue Feb 20 10:20:10 2024 +0100 lastlog2: make longopts[] static-const Signed-off-by: Karel Zak (cherry picked from commit 76fcb1c65afd7bbcd5f27b3f3b3408bc7d40ca00) misc-utils/lastlog2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 85f213c8f85935aa500f71ddda8b299d62e35528 Author: Karel Zak Date: Tue Feb 20 10:12:19 2024 +0100 lastlog: improve errors printing - single exit by goto - always print specific error (e.g. "Couldn't update login time ...") and then optionally generic ll2 error Signed-off-by: Karel Zak (cherry picked from commit 4e86ac6f7faef64831da5b2dfcd2b40bb7179bc4) misc-utils/lastlog2.c | 75 ++++++++++++++++++++------------------------------- 1 file changed, 29 insertions(+), 46 deletions(-) commit 375833806db9747c3a7206ba8d33afc53e038768 Author: Karel Zak Date: Tue Feb 20 09:55:48 2024 +0100 lastlog2: improve coding style - use space around operators - remove unnecessary line breaks from errx() calls Signed-off-by: Karel Zak (cherry picked from commit d2203ae361c228d232b2fa77d7503d1cc3526f75) misc-utils/lastlog2.c | 58 +++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 30 deletions(-) commit b9fd1ff9076c5f9db643b7c2e8084505bf433b19 Author: Miika Alikirri Date: Mon Feb 19 12:09:13 2024 +0200 lastlog2: Don't print space if Service column is not printed (cherry picked from commit 1c14996da1e132830bcc024c2ca7430fe3c2ac28) misc-utils/lastlog2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit e713047ab6dddbca71db82ef36d88180221c907c Author: Karel Zak Date: Mon Feb 19 10:10:56 2024 +0100 docs: improve howto-pull-request * improve branch naming suggestions * recommend GitHub, make Mailing-List optional Signed-off-by: Karel Zak (cherry picked from commit 0f749c8fde9462350c6194a7689a79aecc337477) Documentation/howto-pull-request.txt | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) commit d293dfe1aedc8891a8aad72c1ed8add9db4da703 Author: Thomas Kaiser Date: Mon Feb 19 00:16:54 2024 +0100 Add Microsoft as vendor and Cobalt 100 core https://lore.kernel.org/linux-arm-kernel/b99a7196-011e-4f08-83ec-e63a690ab919@linux.microsoft.com/T/ (cherry picked from commit 7712004e1306fdd0f6931ac110f5238fd3bf86f5) sys-utils/lscpu-arm.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 8a21aa852004554acf7dc5a770a576c113bdb237 Author: Emanuele Torre Date: Sun Feb 18 04:43:09 2024 +0100 docs: remove duplicated author name in namei.1.adoc This was being rendered in the man page as: The program was rewritten by Karel Zak Karel Zak . Instead of as: The program was rewritten by Karel Zak . (cherry picked from commit 59993a27826cdf4891962caf2db3bd94288f6ee9) misc-utils/namei.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fe61e56cd3e7e90c657af042dfb9767ea90e3b37 Author: Milan Broz Date: Fri Feb 16 16:44:12 2024 +0100 libblkid: Check offset in LUKS2 header LUKS2 binary header contains offset field that describes where the header should be located. If this offset is not correct, blkid should tread this header as invalid. This patch fixes problem when both swap and LUKS headers are present (LUKS header was swapped out) and detected LUKS header is at a wrong offset. As LUKS has higher priority, it confuses detection. Signed-off-by: Milan Broz (cherry picked from commit e49de00f4a22f91ec5af08d97e30a198cd64e00d) libblkid/src/superblocks/luks.c | 20 +++++++++++++++++--- tests/expected/blkid/low-probe-swap-luks | 8 ++++++++ tests/ts/blkid/images-fs/swap-luks.img.xz | Bin 0 -> 388 bytes 3 files changed, 25 insertions(+), 3 deletions(-) commit d8318d5961cedbe96e09f446268bd0f6562e54d8 Author: Karel Zak Date: Thu Feb 15 10:33:42 2024 +0100 docs: add hints about systemd Suggested-by: Stanislav Brabec Signed-off-by: Karel Zak (cherry picked from commit 9cb7b7671d903573d6c3b9d8112ec13953cdcdc6) disk-utils/fsck.8.adoc | 5 +++++ sys-utils/fstab.5.adoc | 2 ++ 2 files changed, 7 insertions(+) commit 09e65ff7c37887068e995fb8793f17582298be07 Author: Karel Zak Date: Tue Feb 13 19:09:38 2024 +0100 tests: update dmesg deltas See commit a355f2b78a8c486f7721371d9010f4f1bafcee00. Signed-off-by: Karel Zak (cherry picked from commit 1a0ce945ae3dc3394a96ad2731c4f28829c7c9d4) tests/expected/dmesg/cid-kmsg-delta | 110 ++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 55 deletions(-) commit 34379fc97852f1fd9ac1bfb1b31acc2bc123699d Author: Karel Zak Date: Tue Feb 13 10:56:41 2024 +0100 dmesg: fix delta calculation Old: ./dmesg --nopager --color=never --decode --time-format delta --kernel --since "@$t" kern :info : [<18446744098961.000000>] bash (40091): drop_caches: 3 Fixed: ./dmesg --nopager --color=never --decode --time-format delta --kernel --since "@$t" kern :info : [<25251.997673>] bash (40091): drop_caches: 3 Signed-off-by: Karel Zak (cherry picked from commit a355f2b78a8c486f7721371d9010f4f1bafcee00) sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7cf2bbf5bc660437212ff99edf2560b72290777f Author: Karel Zak Date: Tue Feb 13 10:53:41 2024 +0100 dmesg: don't affect delta by --since Fixes: https://github.com/util-linux/util-linux/issues/2770 Signed-off-by: Karel Zak (cherry picked from commit 68d4b8f02adba9b53f563095d6abe99146d4d8ad) sys-utils/dmesg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit b7c8493af07d1ea44c228e18be26a1173479eb61 Author: Karel Zak Date: Wed Feb 14 09:31:34 2024 +0100 meson: install lastlog2.h library header file Signed-off-by: Karel Zak (cherry picked from commit 9b1512260e1387652d446e099b061a8b3c3ba871) liblastlog2/meson.build | 2 ++ 1 file changed, 2 insertions(+) commit 69c8ce0b874bd6da79fda98e8cc71022fee62ca8 Author: Karel Zak Date: Tue Feb 13 19:54:08 2024 +0100 Revert "libmount: don't canonicalize symlinks for bind operation" This reverts commit 1b2d8187360157b00b47f52522fc039d82e34e6b. Unfortunately, this new feature introduces a regression. We need a better solution (probably mount options option to enable the feature) rather than enable it by default. Fixes: https://github.com/util-linux/util-linux/issues/2773 References: https://github.com/util-linux/util-linux/issues/2370 (cherry picked from commit c19ae2094e865f1a153e25b865315bd68edf075b) libmount/src/context_mount.c | 6 +----- sys-utils/mount.8.adoc | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) commit baec2d5dcf682568b27fba33945d78ac64d3460b Author: Christoph Anton Mitterer Date: Fri Feb 9 23:34:25 2024 +0100 blkdev.h: update location of SCSI device types In Linux commit c5f1ac8b94bd10f97f5aa1a3279ad8e8bbc6311a (“Split SCSI header files”) these definition where split out into `include/scsi/scsi_proto.h`. This commit also removes the git link (any kernel sources will do just fine) and just names the file. Signed-off-by: Christoph Anton Mitterer (cherry picked from commit 1860882109b8aaefcf387c96324646cf457bb170) include/blkdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f2bb014d97fc029b7562de6fb0525d3dca4ec240 Author: Fabian Vogt Date: Wed Feb 7 11:48:33 2024 +0100 meson: Only build libmount python module if python was found The extension_module call was in the wrong place. (cherry picked from commit 974e1c40e93f7fc916a8211330a1afef2ad7927e) libmount/python/meson.build | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) commit c639c8c428608ef7e894509e2815afa83cc40f0c Author: Fabian Vogt Date: Wed Feb 7 11:29:26 2024 +0100 lastlog2: Fix various issues with meson - Make sure @usrbin_execdir@ is actually replaced - pam_lastlog2.so is always a shared library that's dlopen()ed, so use shared_module and do not generate a pkgconfig module (cherry picked from commit 7c08028697c3f78dbfba288e3ba3b076b994ec66) meson.build | 1 + pam_lastlog2/meson.build | 10 +--------- 2 files changed, 2 insertions(+), 9 deletions(-) commit 59126a8590ae97c233c795b52e983f79c20f42e9 Author: Karel Zak Date: Wed Feb 7 10:56:19 2024 +0100 libmount: fix copy & past bug in lock initialization Signed-off-by: Karel Zak (cherry picked from commit ed4d3e26a5fbe790107e3064e51dc34484b3656f) libmount/src/tab_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a372229d32747d7299f22779391ec85203f8fb83 Author: Zbigniew Jędrzejewski-Szmek Date: Tue Feb 6 13:41:53 2024 +0100 meson: fix mismatch with handling of lib_dl dependency lib_dl is only defined if both conditions are met, so meson would fail with an undefined variable. (cherry picked from commit c12f8998e9a2f4d393dfa7f7f88aaea2332a378b) libmount/meson.build | 2 +- meson.build | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) commit 6214621b4eeac365e183aaaa91dd638ad57b0371 Author: Zbigniew Jędrzejewski-Szmek Date: Tue Feb 6 13:18:38 2024 +0100 meson: add forgotten files to lists (cherry picked from commit 669071f6249026b4415c42a9859accc425b36595) libsmartcols/meson.build | 2 ++ meson.build | 1 + 2 files changed, 3 insertions(+) commit 714f8bec76d50a859a1da9bcd7a21672bb353a0e Author: Zbigniew Jędrzejewski-Szmek Date: Tue Feb 6 13:14:37 2024 +0100 meson: fix disablement check opt is not defined for those programs. (cherry picked from commit 765961c32a764052955655838f8a99450876500b) meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ef1501d8a8ec69c0d3431c676cefc428b11fd5b5 Merge: ec895e435 529c4bbe3 Author: Karel Zak Date: Mon Feb 5 11:55:39 2024 +0100 Merge branch 'meson/lastlog2' of https://github.com/t-8ch/util-linux * 'meson/lastlog2' of https://github.com/t-8ch/util-linux: meson: only build liblastlog when enabled meson: create dedicated config for pam_lastlog2 meson: use a dependency object for sqlite3 meson: use a dependency object for liblastlog2 commit ec895e4359bf74edf7340cac04f0d6d7ae6f796a Merge: 051e638a0 7b05403f0 Author: Karel Zak Date: Mon Feb 5 11:53:55 2024 +0100 Merge branch 'lsclocks' of https://github.com/alanc/util-linux * 'lsclocks' of https://github.com/alanc/util-linux: lsclocks: use clock id from clock_getcpuclockid in add_cpu_clock commit 051e638a0c7c751db213a463e3e4a69cf82f0507 Merge: a0cce8a1e aa3cab8e8 Author: Karel Zak Date: Mon Feb 5 11:42:53 2024 +0100 Merge branch 'strtod' of https://github.com/alanc/util-linux * 'strtod' of https://github.com/alanc/util-linux: lib/c_strtod: fix uselocale() fallback if strtod_l() is not available commit a0cce8a1ee31c129ea742152b569c109b7424eab Author: Karel Zak Date: Mon Feb 5 11:21:41 2024 +0100 fdisk: (man) fix typo, improve readability Reported-by: Michael Partridge Signed-off-by: Karel Zak disk-utils/fdisk.8.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 3532539364feda20039677518858182dfa118d3d Merge: 6097180ce 8edbb62b9 Author: Karel Zak Date: Mon Feb 5 10:54:17 2024 +0100 Merge branch 'enosys/optim' of https://github.com/t-8ch/util-linux * 'enosys/optim' of https://github.com/t-8ch/util-linux: enosys: optimize bytecode when execve is not blocked enosys: optimize bytecode when no ioctls are blocked enosys: add helpers for 64 bit integer loading enosys: drop unnessecary load of ioctl number commit 6097180cea1a0ae2eef43037b9c702661e03630a Merge: dfb451e2f 5533e237c Author: Karel Zak Date: Mon Feb 5 10:38:40 2024 +0100 Merge branch 'master' of https://github.com/echoechoin/util-linux * 'master' of https://github.com/echoechoin/util-linux: sys-utils/lscpu: Unblock SIGSEGV before vmware_bdoor commit dfb451e2f88712a8536bfde6cfcdde1144708310 Author: Karel Zak Date: Mon Feb 5 10:20:39 2024 +0100 docs: add setpgid do ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.40-ReleaseNotes | 2 ++ 1 file changed, 2 insertions(+) commit 55327efc8943642c9d1b37682cfc935187d7733f Author: Karel Zak Date: Mon Feb 5 09:15:55 2024 +0100 liblastlog2: fix pkg-config inclidedir The path for .pc must be the same as liblastlog2/src/Makemodule.am:$lastlog2incdir (and it's usually /usr/include/liblastlog2/). Signed-off-by: Karel Zak liblastlog2/lastlog2.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7b05403f0da5d921601646e0b181435fd5034f4b Author: Alan Coopersmith Date: Sun Feb 4 09:14:23 2024 -0800 lsclocks: use clock id from clock_getcpuclockid in add_cpu_clock Fixes #2761 Signed-off-by: Alan Coopersmith misc-utils/lsclocks.c | 1 + 1 file changed, 1 insertion(+) commit 8edbb62b9b8aa76d340ac4a7d1bd713c47c82e80 Author: Thomas Weißschuh Date: Sun Feb 4 10:06:39 2024 +0100 enosys: optimize bytecode when execve is not blocked Signed-off-by: Thomas Weißschuh misc-utils/enosys.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) commit ce0c5edc43c28697850b248d4f2b37fe59a65605 Author: Thomas Weißschuh Date: Sat Feb 3 18:55:13 2024 +0100 enosys: optimize bytecode when no ioctls are blocked Signed-off-by: Thomas Weißschuh misc-utils/enosys.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) commit 05a5e48cf0ca8263ab3831887f4bf4265bc18505 Author: Thomas Weißschuh Date: Sun Feb 4 10:21:05 2024 +0100 enosys: add helpers for 64 bit integer loading Signed-off-by: Thomas Weißschuh misc-utils/enosys.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 25bc5322163824fb06696be7a7490996cacb7780 Author: Thomas Weißschuh Date: Sun Feb 4 10:24:26 2024 +0100 enosys: drop unnessecary load of ioctl number The ioctl number is properly loaded just below the deleted instruction anyways. Signed-off-by: Thomas Weißschuh misc-utils/enosys.c | 2 -- 1 file changed, 2 deletions(-) commit aa3cab8e8bc41bcbeb11fee98e466295b216ee1e Author: Alan Coopersmith Date: Fri Feb 2 18:09:18 2024 -0800 lib/c_strtod: fix uselocale() fallback if strtod_l() is not available Signed-off-by: Alan Coopersmith lib/c_strtod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 529c4bbe3bb8b7aff1367ca834427427610885e5 Author: Thomas Weißschuh Date: Fri Feb 2 14:40:06 2024 +0100 meson: only build liblastlog when enabled Signed-off-by: Thomas Weißschuh liblastlog2/meson.build | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) commit 6b61e282c5a5b322b4ab2927528560f108a6518e Author: Thomas Weißschuh Date: Fri Feb 2 13:48:28 2024 +0100 meson: create dedicated config for pam_lastlog2 meson.build | 1 + meson_options.txt | 2 ++ pam_lastlog2/meson.build | 8 +++++++- 3 files changed, 10 insertions(+), 1 deletion(-) commit 9e9703709681a904da62b080e025c416fb521d03 Author: Thomas Weißschuh Date: Fri Feb 2 13:44:50 2024 +0100 meson: use a dependency object for sqlite3 Signed-off-by: Thomas Weißschuh liblastlog2/meson.build | 4 +--- meson.build | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) commit 485d877f8d482f4c7a9a9d185ee4868ba1892732 Author: Thomas Weißschuh Date: Fri Feb 2 13:41:37 2024 +0100 meson: use a dependency object for liblastlog2 It is easier to use. Signed-off-by: Thomas Weißschuh liblastlog2/meson.build | 8 ++++---- pam_lastlog2/meson.build | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) commit fafb9123f2248159b8e483cd4782c4cfe04395fd Author: Karel Zak Date: Fri Feb 2 11:58:46 2024 +0100 docs: add BSD-2-Clause Signed-off-by: Karel Zak Documentation/licenses/COPYING.BSD-2-Clause | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit bcbe389cdff27cacac514c5dcff8e1e6e3eb1b4c Merge: 566b1d348 b24dd22d0 Author: Karel Zak Date: Fri Feb 2 10:35:08 2024 +0100 Merge branch 'meson/so_passcred' of https://github.com/t-8ch/util-linux * 'meson/so_passcred' of https://github.com/t-8ch/util-linux: meson: define _GNU_SOURCE when checking for SO_PASSCRED commit 5533e237c8047ff941bb3720237c58413441e35c Author: WanBingjiang Date: Fri Feb 2 10:43:08 2024 +0800 sys-utils/lscpu: Unblock SIGSEGV before vmware_bdoor sys-utils/lscpu-virt.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit b24dd22d002fa98a6b8ff294ae312b08a1259e06 Author: Thomas Weißschuh Date: Thu Feb 1 20:48:49 2024 +0100 meson: define _GNU_SOURCE when checking for SO_PASSCRED SO_PASSCRED is not exposed in standards mode that was enabled in commit 6240e4458cdf ("build: use -std=c99 and -std=c++11 by default"). Fixes: #2750 Signed-off-by: Thomas Weißschuh meson.build | 1 + 1 file changed, 1 insertion(+) commit 566b1d348897a34016653d6de040688a2c0a136c Author: Thomas Weißschuh Date: Thu Feb 1 20:09:41 2024 +0100 lib/cpuset: exit early from cpulist_parse If `a` exceeds `max`, any increment of `a` will also `exceed` max. In this case the CPU_SET_S will never do anything all additional loops are wasted. Fixes #2748 Signed-off-by: Thomas Weißschuh lib/cpuset.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 2ef4a8d5bd612f198bc4164fd2801ab90d6330b5 Author: Thomas Weißschuh Date: Thu Feb 1 20:09:17 2024 +0100 lib/cpuset: make max variable const Signed-off-by: Thomas Weißschuh lib/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3b0872b70555dea9e72d6af109645c608c98a458 Merge: 86bab98f2 44be636af Author: Karel Zak Date: Thu Feb 1 15:49:49 2024 +0100 Merge branch 'patch-1' of https://github.com/ZmoleCristian/util-linux * 'patch-1' of https://github.com/ZmoleCristian/util-linux: Added Cristian Zmole commit 86bab98f2cc571cacd89cc6b05acd2d30b1f1a61 Merge: a57182e34 211a9da0b Author: Karel Zak Date: Thu Feb 1 15:49:26 2024 +0100 Merge branch 'setpriv/without-landlock' of https://github.com/t-8ch/util-linux * 'setpriv/without-landlock' of https://github.com/t-8ch/util-linux: setpriv: apply landlock without configuration commit a57182e34b7d7c23f09d36993d90533ac5ab6cb4 Merge: 5d31f705d 0be2be828 Author: Karel Zak Date: Thu Feb 1 15:49:12 2024 +0100 Merge branch 'ci/gcc-13' of https://github.com/t-8ch/util-linux * 'ci/gcc-13' of https://github.com/t-8ch/util-linux: ci: consistently use gcc 13 during CI commit 5d31f705d64ce681e124c8c00731bfab1c3fc790 Merge: 6eeef2c9b dd3bbc9c1 Author: Karel Zak Date: Thu Feb 1 15:48:56 2024 +0100 Merge branch 'PR/build-sys-lastlog2' of github.com:karelzak/util-linux-work * 'PR/build-sys-lastlog2' of github.com:karelzak/util-linux-work: autotools: cleanup lastlog2 stuff commit 6eeef2c9bf15b2416352c695ab9bb807e1a41b45 Author: Karel Zak Date: Thu Feb 1 11:55:36 2024 +0100 su: (man) improve formatting Signed-off-by: Karel Zak login-utils/su.1.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit cd3d858aea5d085c09927ac04ddf8614ddad0b6e Author: Karel Zak Date: Thu Feb 1 11:53:37 2024 +0100 su: (man) add hint about sessions Signed-off-by: Karel Zak login-utils/su.1.adoc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 44be636af6dbc71378a05407f9ffc4a6d11a4ba9 Author: Zmole Cristian <101431599+ZmoleCristian@users.noreply.github.com> Date: Thu Feb 1 01:02:20 2024 +0200 Added Cristian Zmole Added myself to contributors since PR #2451 was approved Signed-off-by: Cristian Zmole chiarel@tragdate.ninja AUTHORS | 1 + 1 file changed, 1 insertion(+) commit 211a9da0b4e9704eea210d7944b723fa78272c79 Author: Thomas Weißschuh Date: Wed Jan 31 18:01:08 2024 +0100 setpriv: apply landlock without configuration Fixes #2746 Signed-off-by: Thomas Weißschuh sys-utils/setpriv-landlock.c | 3 +++ 1 file changed, 3 insertions(+) commit 0be2be8289a80d0209e7f2fe1abd45e5be928ed0 Author: Thomas Weißschuh Date: Wed Jan 31 15:29:48 2024 +0100 ci: consistently use gcc 13 during CI Some configurations where not migrated from 10 to 13. The coveralls configuration stays on gcc 10 as the coverage data generated by the compiler needs to be compatible with the installed version of gcov. Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 405dbe188d3e96b10e256c887b7018c30daebc60 Author: Karel Zak Date: Wed Jan 31 14:05:17 2024 +0100 docs: add exch to ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.40-ReleaseNotes | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 854a675e8801a559c2ef7cb2efd4e906d377cf0a Author: Karel Zak Date: Wed Jan 31 13:50:17 2024 +0100 docs: add enosys to ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.40-ReleaseNotes | 3 +++ 1 file changed, 3 insertions(+) commit dd3bbc9c108f155b5a372b85a470ee86f7f7937c Author: Karel Zak Date: Mon Jan 29 21:04:23 2024 +0100 autotools: cleanup lastlog2 stuff * use pkg-config (PKG_CHECK_MODULES) rather than check for sqlite3.h only * define $SQLITE3_LIBS * use UL_ macros in configure.ac for liblastlog2 and pam_lastlog2 * add --disable-pam-lastlog2 * check for PAM to define BUILD_PAM_LASTLOG2 * install lastlog2.h to $(includedir)/liblastlog2/lastlog2.h * fix liblastlog2_la_LDFLAG * add Requires.private to lastlog2.pc.in * use $(SQLITE3_LIBS) rather than hardcoded -lsqlite3 Fixes: https://github.com/util-linux/util-linux/issues/2734 Signed-off-by: Karel Zak configure.ac | 43 +++++++++++++++++++++++++------------------ liblastlog2/lastlog2.pc.in | 4 +++- liblastlog2/src/Makemodule.am | 20 ++++++++++---------- pam_lastlog2/Makemodule.am | 4 ++-- 4 files changed, 40 insertions(+), 31 deletions(-) commit 2cd89de14549d2b2c079a4f8b73f75500d229fee Merge: bb9c5265e e9c1292ec Author: Karel Zak Date: Mon Jan 29 14:01:52 2024 +0100 Merge branch 'lsfd--man-decoration' of https://github.com/masatake/util-linux * 'lsfd--man-decoration' of https://github.com/masatake/util-linux: lsdf: (man page) revise text decoration commit bb9c5265e511f6e16286fc69b7d24964a47e2066 Merge: 6926ac93d c33da15e1 Author: Karel Zak Date: Mon Jan 29 14:01:34 2024 +0100 Merge branch 'lsfd--limit-listing-kthreads' of https://github.com/masatake/util-linux * 'lsfd--limit-listing-kthreads' of https://github.com/masatake/util-linux: lsfd: don't list kernel threads unless --threads is given lsfd: (refactor) rename a function, s/new_process/new_proc/g commit 6926ac93dcc9277b7c8410c98472d858156b8c55 Merge: 27eec306d bbc4c7b09 Author: Karel Zak Date: Mon Jan 29 14:01:15 2024 +0100 Merge branch 'release-notes--fix-typo' of https://github.com/masatake/util-linux * 'release-notes--fix-typo' of https://github.com/masatake/util-linux: docs: fix a typo commit e9c1292ecadee3d190e4241a226c7b4ce21fc50e Author: Masatake YAMATO Date: Mon Jan 29 02:34:21 2024 +0900 lsdf: (man page) revise text decoration Signed-off-by: Masatake YAMATO misc-utils/lsfd.1.adoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit c33da15e1d3fbd03af514b3a58a75e0620e1b8c4 Author: Masatake YAMATO Date: Wed Jan 24 09:05:47 2024 +0900 lsfd: don't list kernel threads unless --threads is given misc-utils/lsfd.1.adoc | 5 ----- misc-utils/lsfd.c | 5 +++++ tests/ts/lsfd/column-kthread | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) commit 717dfc23b600fcc6e2d35d8624e6601de71dc904 Author: Masatake YAMATO Date: Wed Jan 24 08:58:45 2024 +0900 lsfd: (refactor) rename a function, s/new_process/new_proc/g Rename the function for making the name consistent with free_proc(). Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 27eec306df02e2235788833423f6dd994a96f76c Merge: 3401d7c40 e66c5af62 Author: Karel Zak Date: Thu Jan 25 10:00:00 2024 +0100 Merge branch 'liblastlog_so_2' of https://github.com/schubi2/util-linux * 'liblastlog_so_2' of https://github.com/schubi2/util-linux: set LIBLASTLOG2_2_40 set soname of liblastlog2 to 2.0 commit e66c5af62fe6474d4a36581b75aa1bd59ca1a8bd Author: Stefan Schubert Date: Thu Jan 25 09:12:39 2024 +0100 set LIBLASTLOG2_2_40 liblastlog2/src/liblastlog2.sym | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bbc4c7b0994cdc32ddc9afd4097c0e5566294893 Author: Masatake YAMATO Date: Thu Jan 25 04:35:50 2024 +0900 docs: fix a typo Signed-off-by: Masatake YAMATO Documentation/releases/v2.40-ReleaseNotes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 476c861499835d5f7c4bbc8703f13139db8ffac7 Author: Stefan Schubert Date: Wed Jan 24 13:40:37 2024 +0100 set soname of liblastlog2 to 2.0 configure.ac | 4 ++-- liblastlog2/src/liblastlog2.sym | 2 +- meson.build | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)