Changes between v2.39 and v2.39.1 -------------------------------------------- commit e98ef85a8f934bccac2b984422a40f92955ac97d Author: Karel Zak Date: Tue Jun 27 14:31:13 2023 +0200 build-sys: release++ (v2.39.1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 12169133eeda0fa459f3e02e354558df991499e8 Author: Karel Zak Date: Tue Jun 27 14:30:01 2023 +0200 docs: update v2.39.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.39.1-ReleaseNotes | 117 ++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) commit 508e25110855057469b29e67b6ace62ae536bbdc Author: Karel Zak Date: Tue Jun 27 14:16:53 2023 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 2 ++ 1 file changed, 2 insertions(+) commit 6b865e1b014b2262ec686431af81577d8bff7d05 Author: Karel Zak Date: Tue Jun 27 14:14:17 2023 +0200 po-man: merge changes Signed-off-by: Karel Zak po-man/cs.po | 1775 ++-- po-man/de.po | 1788 ++-- po-man/es.po | 1776 ++-- po-man/fr.po | 1785 ++-- po-man/pt_BR.po | 1769 ++-- po-man/sr.po | 1785 ++-- po-man/uk.po | 24567 ++++++++++++++++++++++++++++++++++---------- po-man/util-linux-man.pot | 1768 ++-- 8 files changed, 25617 insertions(+), 11396 deletions(-) commit aa4f94cb5657b2ff53dafa89ef69db42f0ccd283 Author: Karel Zak Date: Tue Jun 27 14:14:10 2023 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 469 +++++++++++++++++++-------------------- po/cs.po | 468 +++++++++++++++++++-------------------- po/da.po | 466 +++++++++++++++++++-------------------- po/de.po | 468 +++++++++++++++++++-------------------- po/es.po | 468 +++++++++++++++++++-------------------- po/et.po | 467 +++++++++++++++++++-------------------- po/eu.po | 471 ++++++++++++++++++++-------------------- po/fi.po | 467 +++++++++++++++++++-------------------- po/fr.po | 468 +++++++++++++++++++-------------------- po/gl.po | 467 +++++++++++++++++++-------------------- po/hr.po | 639 +++++++++++++++++++++++++++--------------------------- po/hu.po | 467 +++++++++++++++++++-------------------- po/id.po | 467 +++++++++++++++++++-------------------- po/it.po | 467 +++++++++++++++++++-------------------- po/ja.po | 466 +++++++++++++++++++-------------------- po/ko.po | 468 +++++++++++++++++++-------------------- po/nl.po | 465 +++++++++++++++++++-------------------- po/pl.po | 468 +++++++++++++++++++-------------------- po/pt.po | 468 +++++++++++++++++++-------------------- po/pt_BR.po | 468 +++++++++++++++++++-------------------- po/ru.po | 467 +++++++++++++++++++-------------------- po/sk.po | 466 +++++++++++++++++++-------------------- po/sl.po | 467 +++++++++++++++++++-------------------- po/sr.po | 468 +++++++++++++++++++-------------------- po/sv.po | 468 +++++++++++++++++++-------------------- po/tr.po | 466 +++++++++++++++++++-------------------- po/uk.po | 468 +++++++++++++++++++-------------------- po/util-linux.pot | 466 +++++++++++++++++++-------------------- po/vi.po | 465 +++++++++++++++++++-------------------- po/zh_CN.po | 466 +++++++++++++++++++-------------------- po/zh_TW.po | 467 +++++++++++++++++++-------------------- 31 files changed, 7424 insertions(+), 7232 deletions(-) commit cad75b6356e7849209af15af94ffcf5249b1abc1 Author: Remus-Gabriel Chelu Date: Tue Jun 27 14:08:33 2023 +0200 po-man: add ro.po (from translationproject.org) po-man/ro.po | 38277 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 38277 insertions(+) commit 8acfe93b77d7366f323aff3c7643cd9a163fdc8f Author: Seong-ho Cho Date: Tue Jun 27 14:08:33 2023 +0200 po-man: add ko.po (from translationproject.org) po-man/ko.po | 38919 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 38919 insertions(+) commit 5f31e774c5861f60a6ba8669ebeed67aa7b5a577 Author: Yuri Chornoivan Date: Tue Jun 27 14:08:33 2023 +0200 po-man: update uk.po (from translationproject.org) po-man/uk.po | 23967 ++++++++++++--------------------------------------------- 1 file changed, 5026 insertions(+), 18941 deletions(-) commit 29626b0956b924ccf1d22db4905eea08c69d3668 Author: Božidar Putanec Date: Tue Jun 27 14:05:10 2023 +0200 po: update hr.po (from translationproject.org) po/hr.po | 185 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 94 insertions(+), 91 deletions(-) commit 90835e74a8b20f835013d914191b87a2c29891ff Author: Jakub Wilk Date: Mon Jun 26 21:02:13 2023 +0200 cal: fix long option name for -c misc-utils/cal.c | 2 +- tests/ts/cal/column | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit 7826c3ebeed3f37afcddea31a45bd44d82a88f3f Author: Jakub Wilk Date: Mon Jun 26 20:58:21 2023 +0200 cal: fix error message for bad -c argument misc-utils/cal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 07e6b9a127a73cc0b78bab7f02deed3c0a71cfa8 Author: Jakub Wilk Date: Mon Jun 26 20:00:43 2023 +0200 lib/strutils: fix typo lib/strutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cc99bfd06ab6b4e105226f636f1d844bfbb020d6 Author: Karel Zak Date: Mon Jun 26 12:46:15 2023 +0200 build-sys: don't call pkg-config --static if unnecessary Addresses: https://github.com/util-linux/util-linux/issues/2327 Signed-off-by: Karel Zak m4/ul.m4 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 3b59942da4bd157ed9a4a5d12e2f62317e2c61e3 Author: Karel Zak Date: Mon Jun 26 11:56:23 2023 +0200 logger: initialize socket credentials contol union Addresses: https://github.com/util-linux/util-linux/issues/2336 Signed-off-by: Karel Zak misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4746cf93687c5f943e92aafcbd004fbd10637145 Author: Thomas Weißschuh Date: Sun Jun 25 13:28:19 2023 +0200 unshare: fix error message for unexpected time offsets Signed-off-by: Thomas Weißschuh sys-utils/unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a34e6aced49943cf585c27187bc050f39805352f Author: Thomas Weißschuh Date: Sun Jun 25 09:59:05 2023 +0200 losetup: deduplicate find_unused() logic Signed-off-by: Thomas Weißschuh sys-utils/losetup.c | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) commit 423d9efabb6aa679da2d670948f50dfd923ccb92 Author: Thomas Weißschuh Date: Sun Jun 25 09:59:26 2023 +0200 lib/loopdev: consistently return error values from loopcxt_find_unused() Signed-off-by: Thomas Weißschuh lib/loopdev.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 8feec98a8f2591601e0564954be913049c1ec2d7 Author: Thomas Weißschuh Date: Sun Jun 25 09:58:43 2023 +0200 lib/loopdev: document function return values Signed-off-by: Thomas Weißschuh lib/loopdev.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 36ce0c2501662e4eda2db6642af6d42241c59ca3 Author: Thomas Weißschuh Date: Wed Jun 21 14:26:05 2023 +0200 tests: (run.sh) detect builddir from working directory This makes it easier to run test.sh from the build directory as everything will work without any parameters irrespective of the build directories name. Signed-off-by: Thomas Weißschuh tests/run.sh | 2 ++ 1 file changed, 2 insertions(+) commit 1943ad6cd59faca6da34ba3b246041586f8ce5ec Author: Jakub Wilk Date: Sat Jun 24 09:24:29 2023 +0200 hardlink: (man) add missing comma misc-utils/hardlink.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 174f2b3904c7dbfa9e9f967090edd90216945e8c Merge: 1a4522541 3aba3fb95 Author: Karel Zak Date: Mon Jun 26 12:00:41 2023 +0200 Merge branch 'lsfd--fix-separators-for-json-output-endpoints-only' of https://github.com/masatake/util-linux into stable/v2.39 * 'lsfd--fix-separators-for-json-output-endpoints-only' of https://github.com/masatake/util-linux: tests: (lsfd) add a case for verifying ENDPOINTS column output in JSON mode lsfd: use ARRAY_STRING for ENDPOINTS column in JSON output mode lsfd: (filter) weakly support ARRAY_STRING and ARRAY_NUMBER json types commit 1a4522541b94409f38b7e979cd3b212519d0159e Author: Karel Zak Date: Thu Jun 22 13:11:57 2023 +0200 libmount: fix sync options between context and fs structs Since v2.39 libmount prefers "struct libmnt_optlist" to keep mount options rather than the original "struct libmnt_fs". This is problem if the "fs" struct is defined and maintained outside the context. The library has already a way how to sync "fs" and "optlist", but this needs to be improved and used more widely. Changes: * force "fs" from context to always read options from "optlist" * copy options from "fs" to "optlist" in mnt_context_set_fs() * internally redirect mnt_fs_* API for options to "optlist" if optlist defined * add simple test to make sure options from different sources are always merged together Addresses: https://github.com/util-linux/util-linux/issues/2326 Signed-off-by: Karel Zak libmount/src/context.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++-- libmount/src/fs.c | 23 +++++++++++--- 2 files changed, 97 insertions(+), 8 deletions(-) commit 3aba3fb95b79d66bef0bfc70c408e1f34c8b2c2d Author: Masatake YAMATO Date: Fri Jun 23 00:45:23 2023 +0900 tests: (lsfd) add a case for verifying ENDPOINTS column output in JSON mode Signed-off-by: Masatake YAMATO tests/expected/lsfd/mkfds-pipe-no-fork | 2 ++ tests/ts/lsfd/mkfds-pipe-no-fork | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) commit c289c152a3e956cdb3968903a5fe7e6adf8f4042 Author: Masatake YAMATO Date: Thu Jun 22 14:42:34 2023 +0900 lsfd: use ARRAY_STRING for ENDPOINTS column in JSON output mode This is the backport-for-v2.39 version of #2328. With this change: { "lsfd": [ { "assoc": "3", "endpoints": [ "9942,test_mkfds,4-w", "9942,test_mkfds,5r-", "9942,test_mkfds,6-w" ] } ] } Without this change: { "lsfd": [ { "assoc": "3", "endpoints": [ "9942,test_mkfds,4-w\n9942,test_mkfds,5r-\n9942,test_mkfds,6-w" ] } ] } Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 665e28c30275cb331968cb48476a6656629812ca Author: Masatake YAMATO Date: Thu Jun 22 11:28:47 2023 +0900 lsfd: (filter) weakly support ARRAY_STRING and ARRAY_NUMBER json types We will have operators for array types in the future. Till having them, we treat the types as STRING. So we can use string operators for the column having types. Signed-off-by: Masatake YAMATO misc-utils/lsfd-filter.c | 4 ++++ 1 file changed, 4 insertions(+) commit d9fca2b62e0322ff5a3dbc90605ac47d3d8b284f Author: Karel Zak Date: Wed Jun 21 10:57:37 2023 +0200 sfdisk: add hint about duplicate UUIDs when use dump Signed-off-by: Karel Zak disk-utils/sfdisk.8.adoc | 2 ++ 1 file changed, 2 insertions(+) commit d84ee5a461d0d75b2a1ec67e9bc5a013cf1542d2 Author: Karel Zak Date: Tue Jun 20 13:15:45 2023 +0200 lib: remove pager.c from libcommon The libcommon is a binary archive to keep compilation and maintenance simple. The library is not linked as shared or so. The unused symbols are removed from binaries (for example, by "make install-strip"). But it isn't evident for license analyzers (and some humans) that the library uses GPL and non-GPL stuff simultaneously. Let's avoid doubts and keep pager.c (with GPL license) out of the archive Signed-off-by: Karel Zak disk-utils/Makemodule.am | 4 +++- disk-utils/meson.build | 3 ++- lib/Makemodule.am | 1 - lib/meson.build | 2 +- sys-utils/Makemodule.am | 2 +- sys-utils/meson.build | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) commit c50da4b07ad52d31743315e257fe7a005da76025 Author: Karel Zak Date: Tue Jun 20 12:52:35 2023 +0200 lib/ include/: cleanup license headers This patch does not change any license of the affected files. Changes: * add missing SPDX-License-Identifier lines for LGPL * copy missing license lines from code (lib/) to header files (include/) * use the same comment formatting Signed-off-by: Karel Zak include/colors.h | 2 ++ include/cpuset.h | 2 ++ include/env.h | 4 ++++ include/mbsalign.h | 28 ++++++++++++---------------- include/timeutils.h | 37 ++++++++++++++----------------------- lib/colors.c | 2 ++ lib/cpuset.c | 2 ++ lib/mbsalign.c | 31 +++++++++++++------------------ lib/mbsedit.c | 2 ++ lib/path.c | 11 ++++++----- lib/procfs.c | 2 +- lib/sysfs.c | 2 +- lib/timeutils.c | 34 ++++++++++++++-------------------- lib/xxhash.c | 2 ++ 14 files changed, 77 insertions(+), 84 deletions(-) commit d5adeed7a2a735169419991db6ab5b8b8f5d5e14 Author: Karel Zak Date: Tue Jun 20 12:49:26 2023 +0200 lib/color-names: fix license header The header file and code uses a different license. Let's use (public domain) license from code also for the header file. Signed-off-by: Karel Zak include/color-names.h | 6 +++--- lib/color-names.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) commit 868f7f10ce533a8d4b0fc4055749b97ba6fb670d Author: Karel Zak Date: Mon Jun 19 14:56:30 2023 +0200 tests: fix update special mount test output Signed-off-by: Karel Zak tests/expected/mount/special | 1 - 1 file changed, 1 deletion(-) commit 2278e2f913013245d45bec6c4552e3594fe8fce2 Author: Karel Zak Date: Mon Jun 19 14:36:59 2023 +0200 tests: backport special mount script Signed-off-by: Karel Zak tests/expected/mount/special-basic | 1 + tests/expected/mount/special-multi-types | 1 + tests/expected/mount/special-options | 1 + tests/expected/mount/special-user | 1 + tests/expected/mount/special-username | 1 + tests/ts/mount/special | 19 +++++++++++++++++++ 6 files changed, 24 insertions(+) commit d8a4e680f30720ffb9d91218c2bb8ce2ae84fd97 Author: Karel Zak Date: Mon Jun 19 13:29:42 2023 +0200 libmount: always ignore user= The library (on mount) cares about "user", but has to ignore "user=name". It works as expected, but only for non-root users. We need to ignore it also root to be compatible with /sbin/mount.cifs where some people still use "user=" (rather than "username="). References: fe0b1e793c9017edba72768e2e0b4c769c204604 Addresses: https://github.com/util-linux/util-linux/issues/2315 Signed-off-by: Karel Zak libmount/src/context_mount.c | 32 ++++++++++++++++---------------- sys-utils/mount.8.adoc | 2 ++ 2 files changed, 18 insertions(+), 16 deletions(-) commit f5765e238b688a3787ffe78a5a4cbe74833e1a99 Merge: 205e88e51 22d0a6557 Author: Karel Zak Date: Mon Jun 19 11:12:55 2023 +0200 Merge pull request #2319 from t-8ch/2.39/_NL_TIME_WEEK_1STDAY 2.39: meson: check for _NL_TIME_WEEK_1STDAY in langinfo.h commit 22d0a655717370b0b4960730548503850093b900 Author: Christian Hesse Date: Fri Jun 16 11:52:10 2023 +0200 meson: check for _NL_TIME_WEEK_1STDAY in langinfo.h ... which is required for `cal`. Fixes GH-2316 meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 205e88e51c11d039cd80c9f1104bee5555a4ddaa Author: Zbigniew Jędrzejewski-Szmek Date: Tue Jun 13 10:15:39 2023 +0200 meson: conditionalize waitpid I *think* this mirros what configure.ac does, except that the configuration option is not implemented. (cherry picked from commit 334939a19d72febc0ce6f2913a9692123db79058) meson.build | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) commit aebfa97d5420e64b3bbf3092df763f6a52c59d1a Author: Zbigniew Jędrzejewski-Szmek Date: Tue Jun 13 10:01:52 2023 +0200 meson: add conditionalization for test progs This just mirrors what the autotools setup is doing. (cherry picked from commit d6418774aba595c44fa6c68dd2da55cb6f7642dd) meson.build | 81 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 42 insertions(+), 39 deletions(-) commit bbe24d5b10b8a6dff289490c5ad074f7830da769 Author: Zbigniew Jędrzejewski-Szmek Date: Tue Jun 13 09:55:22 2023 +0200 meson: implement HAVE_PTY This conditional was never implemented in the meson config. Under autotools, it is guarded by availability of headers and an option. I didn't implement the option here. Fixes #2310. '!= false' is used because 'x == 1' is rejected by meson if 'x' is false. OTOH, 'x != false' seems to work if 'x' is 1. (cherry picked from commit 444753601c4c367ca395359ea74fe5c7b86ce56d) meson.build | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) commit bc58e3b35d0eff082ca9c24c9ac807685e78c9ce Author: Christian Hesse Date: Fri Jun 9 15:04:00 2023 +0200 meson: install write setgid ... as this requires elevated privileges. (cherry picked from commit cee78467bea45f7a4f890f0c65bd59441bd42697) meson.build | 1 + 1 file changed, 1 insertion(+) commit f5a411883d607b86cbf0aa30379db35af522c097 Author: Christian Hesse Date: Fri Jun 9 15:02:57 2023 +0200 meson: install wall setgid ... as this requires elevated privileges. (cherry picked from commit 07641fd93c4829696c1e2101642fee32ad998025) meson.build | 1 + 1 file changed, 1 insertion(+) commit 64e67f720fbcfe09e60a5470d9a89f7036941b8a Author: Christian Hesse Date: Fri Jun 9 14:09:02 2023 +0200 meson: install umount setuid ... as this requires elevated privileges. (cherry picked from commit 1cb3c90ca5de6ffb43f8a40605118a8d84a0c6f3) meson.build | 1 + 1 file changed, 1 insertion(+) commit 4c3c0500640e0cae735f652a97eb2a5c1b9646d0 Author: Christian Hesse Date: Fri Jun 9 14:09:02 2023 +0200 meson: install mount setuid ... as this requires elevated privileges. (cherry picked from commit 8f49b3693d6f1db36d5ecb7328965686362deaa3) meson.build | 1 + 1 file changed, 1 insertion(+) commit 58c107277a088a24a05ce0b08dcab2c42835ee1b Author: Christian Hesse Date: Fri Jun 9 14:09:02 2023 +0200 meson: install newgrp setuid ... as this requires elevated privileges. (cherry picked from commit cb3dee5a14da552a935680584d2fc5c37cb3a913) meson.build | 1 + 1 file changed, 1 insertion(+) commit 8549017af9b8cc3f74d782ab5a2edef7c3f606d3 Author: Christian Hesse Date: Fri Jun 9 14:09:02 2023 +0200 meson: install su setuid ... as this requires elevated privileges. (cherry picked from commit fb8c224eae4e28502e05770d35c8e3b8509a9b69) meson.build | 1 + 1 file changed, 1 insertion(+) commit fa818dc8df7701a49f8ea2a5921627f4a30f5688 Author: Christian Hesse Date: Fri Jun 9 14:09:02 2023 +0200 meson: install chsh setuid ... as this requires elevated privileges. (cherry picked from commit a13574b1de21d7fd9a0ad63790a7452c369e46e5) meson.build | 1 + 1 file changed, 1 insertion(+) commit 1e9fc724e4586a1fc0b0fefb4b5c2d98613553c8 Author: Christian Hesse Date: Fri Jun 9 14:09:02 2023 +0200 meson: install chfn setuid ... as this requires elevated privileges. (cherry picked from commit 60d457f52991e6f6472171035974ce7a3ae621f3) meson.build | 1 + 1 file changed, 1 insertion(+) commit 53ff0fcdab12d69c60c971c69a3d0d173fa46ca9 Author: Karel Zak Date: Mon Jun 5 13:21:11 2023 +0200 libmount: introduce LIBMOUNT_FORCE_MOUNT2={always,never,auto} Let's introduce a stable workaround for use cases where new kernel API is not ready to use. The patch does not use "goto enosys" to exit as nothing in the hookset is initialized yet. Addresses: https://github.com/util-linux/util-linux/issues/1992 Addresses: https://github.com/util-linux/util-linux/issues/2283 Signed-off-by: Karel Zak libmount/src/hook_mount.c | 54 +++++++++++++++++++++++++++++++++++------------ sys-utils/mount.8.adoc | 3 +++ 2 files changed, 43 insertions(+), 14 deletions(-) commit 1a4b5c832ca108e0e8876d9c682330602a8b74c8 Merge: 8c85b0805 61307a950 Author: Karel Zak Date: Mon Jun 12 12:22:55 2023 +0200 Merge branch '2.39/libmount/loop-rw' of https://github.com/t-8ch/util-linux into stable/v2.39 * '2.39/libmount/loop-rw' of https://github.com/t-8ch/util-linux: libmount: (optlist) correctly detect ro status commit 61307a950f0f9ae918c84c3481fb1674a2892b20 Author: Thomas Weißschuh Date: Sun Jun 11 11:49:54 2023 +0200 libmount: (optlist) correctly detect ro status Signed-off-by: Thomas Weißschuh libmount/src/optlist.c | 2 +- tests/expected/libmount/loop-explicit-rw | 2 ++ tests/ts/libmount/loop | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) commit 8c85b08057a4664efe856de49b798b87a4e091af Author: Karel Zak Date: Mon Jun 5 12:48:34 2023 +0200 tests: backport mount_setattr test Signed-off-by: Karel Zak tests/helpers/test_enosys.c | 4 ++++ tests/ts/mount/fallback | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) commit 5004732d8ce0c1552b62340d93f75356492301be Author: Milan Broz Date: Sun Jun 4 19:15:55 2023 +0200 libblkid: jfs - avoid undefined shift Fix previous commit 04a0717b0b0faa1a8078dc6fad05183b8bada395 to avoid undefined shift if value is exactly 32. libblkid/src/superblocks/jfs.c:46:39: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' Reproducer found with OSS-Fuzz (issue 59284) running over cryptsetup project (blkid is used in header init). Signed-off-by: Milan Broz libblkid/src/superblocks/jfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c082e6182f3b965b3b8004545fa9cae12d0e3068 Author: Thomas Weißschuh Date: Wed May 31 16:11:09 2023 +0200 build-sys: fix typo in waitpid check Signed-off-by: Thomas Weißschuh configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b04446bfd4496899076ddc2c71f23d64a8930acb Author: Hennie Botha <42469385+theHenMan@users.noreply.github.com> Date: Wed May 31 08:45:25 2023 +0200 Update fsck.8.adoc Typo disk-utils/fsck.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9429cc72b5923ca3380235283b969365723643e5 Author: anteater <65555601+nt8r@users.noreply.github.com> Date: Mon May 29 20:59:11 2023 +0000 dmesg: make kmsg read() buffer big enough for kernel otherwise, if the kernel log has an item longer than 1024B, our read() gives EINVAL and we stop reading kmsg sys-utils/dmesg.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 198fd3fb2c188beb6b7800224f565092d64ee45b Author: ThomasKaiser Date: Mon May 29 14:47:50 2023 +0200 Fix Blizzard-M2-Max sys-utils/lscpu-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 20c04a5097209be428bc869b8129eba87205b259 Author: ThomasKaiser Date: Mon May 29 14:42:18 2023 +0200 Add recent Apple ARM cores sys-utils/lscpu-arm.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 9d4d768f2dcb7a18dae15718238d9fbb87ba9f6e Author: Karel Zak Date: Thu May 25 11:48:24 2023 +0200 libmount: don't call hooks after mount. helper In case more filesystems are specified (or when libmount follows /{etc,proc}/filesystems) then the library may try to use and initialize the new API because for some filesystems, we need exec(/sbin/mount.) and for another fsopen(). The hooks that use the API have to smart and detect that the mount operation was done in external /sbin/mount. helper. And in this case, the new API file descriptors must be ignored. The exception is propagation flags, mount(8) can set the flags after exec(/sbin/mount.), for example, "mount -t ntfs --make-private". Fixes: https://github.com/util-linux/util-linux/issues/2267 Signed-off-by: Karel Zak libmount/src/context_mount.c | 2 ++ libmount/src/hook_mount.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) commit 98ed3edf8e1c47b669eff23072188b1a78bcab84 Author: Christian Hesse Date: Mon May 22 16:11:18 2023 +0200 meson: install symlink for vigr man page meson.build | 3 +++ 1 file changed, 3 insertions(+) commit f25cc337248fbd6d7a566d723216c89767cf2823 Author: Christian Hesse Date: Mon May 22 15:57:35 2023 +0200 meson: include bash-completion for write meson.build | 1 + 1 file changed, 1 insertion(+) commit 760c016418285af072adb99576ee3dd12890d624 Author: Christian Hesse Date: Mon May 22 15:56:28 2023 +0200 meson: include bash-completion for newgrp meson.build | 1 + 1 file changed, 1 insertion(+) commit ddf48064fb0e7338f58fcfad842587d3a1fbf8a3 Author: Karel Zak Date: Tue May 23 12:13:02 2023 +0200 libmount: cleanup enosys returns from mount hoop Signed-off-by: Karel Zak libmount/src/hook_mount.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) commit 230459358aad99efec4ad66b9ee9c48a1915bb09 Author: Karel Zak Date: Mon May 22 17:26:55 2023 +0200 libmount: don't call mount. helper with usernames This is v2.39 regression. The "user" mount option is internally converted to "user=", but this should not be exported to the mount helpers. The mount helper accepts the only if specified in mount options (cifs uses user=). The real username as generated by libmount is not relevant in this case. Signed-off-by: Karel Zak libmount/src/context_mount.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) commit 6fa034d0a99cc4e5a11f21ebf03b974134b734d0 Author: Karel Zak Date: Mon May 22 15:00:25 2023 +0200 libmount: fix options prepend/insert and merging * the order of the new options should not be changed (for example prepend "a,b,c" to list with "d" has to generate "a,b,c,d", not "c,b,a,d") * make sure that options map is defined when merging options Fixes: https://github.com/util-linux/util-linux/issues/2238 Signed-off-by: Karel Zak libmount/src/optlist.c | 5 +++++ 1 file changed, 5 insertions(+) commit f8c9ef62e401221f2afebe2d213347292baebd51 Author: Thomas Weißschuh Date: Sat May 20 06:38:20 2023 +0200 libmount: check for availability of mount_setattr If mount_setattr is not available but needed fall back to the legacy mount API. Fixes #2247 Signed-off-by: Thomas Weißschuh libmount/src/hook_mount.c | 23 +++++++++++++++++++++-- tests/expected/mount/fallback-mount_setattr | 1 + tests/ts/mount/fallback | 16 ++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) commit 9422991c921471ccc66b28599a4c42d608c9af2c Author: Thomas Weißschuh Date: Sun May 21 19:58:47 2023 +0200 libmount: don't pass option "defaults" to helper "defaults" is only a pseudo-option that expands to other options. It should not be passed to helpers. Reported-by: Quentin Rameau Closes: https://lore.kernel.org/util-linux/20230521181814.0b0f2d38.quinq@fifth.space/ Signed-off-by: Thomas Weißschuh libmount/src/optmap.c | 2 +- tests/expected/mount/special | 2 +- tests/ts/mount/special | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 2806759b5ae54787c78ff3a32f21a32abf2aae7a Author: Frantisek Sumsal Date: Thu May 18 18:56:15 2023 +0200 build-sys: add --disable-waitpid The new pidfd stuff waitpid uses is not compatible with older kernel headers, but the rest of the util-linux is still perfectly fine, so allow disabling just the waitpid utility to make the builds happy again. configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 01e3ec5150cb3162e72d68e435ad51421cc56df6 Author: наб Date: Mon May 15 01:19:58 2023 +0200 mesg.1 cleanups/updates First hunk: grammar. Second hunk: (a) mentioning BSD ptys and not UNIX98 ones is odd, (b) mentioning /only/ ptys is odder still. Third hunk: mesg is found in the UNIX Programmer's Manual; it takes its modern form in V7 (it's unclear to me why V6 specifically is mentioned, since it's still default-invert + always-report-"was X"). term-utils/mesg.1.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 16e5dccf83f945a68aa93916c6614ae8023ce06e Merge: 43926e0b0 00a19fb8c Author: Karel Zak Date: Mon Jun 5 11:49:47 2023 +0200 Merge branch '2.39/bcache' of https://github.com/t-8ch/util-linux into stable/v2.39 * '2.39/bcache' of https://github.com/t-8ch/util-linux: libblkid: (bcache) also calculate checksum over journal buckets libblkid: (bcache) extend superblock definition commit 00a19fb8cdfeeae30a6688ac6b490e80371b2257 Author: Thomas Weißschuh Date: Sat Jun 3 13:13:52 2023 +0200 libblkid: (bcache) also calculate checksum over journal buckets Fixes #2291 Signed-off-by: Thomas Weißschuh libblkid/src/superblocks/bcache.c | 18 +++++++++++++----- tests/expected/blkid/low-probe-bcache-journal | 4 ++++ tests/ts/blkid/images-fs/bcache-journal.img.xz | Bin 0 -> 2320 bytes 3 files changed, 17 insertions(+), 5 deletions(-) commit 158639a2a4c6e646fd4fa0acb5f4743e65daa415 Author: Thomas Weißschuh Date: Sat Jun 3 13:13:37 2023 +0200 libblkid: (bcache) extend superblock definition We will need it for the correct checksum calculation. Signed-off-by: Thomas Weißschuh libblkid/src/superblocks/bcache.c | 42 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) commit 43926e0b04314bf53bcdfde898bf9f446c843566 Author: Thomas Weißschuh Date: Wed May 31 10:15:11 2023 +0200 ci: prevent prompts during installation Signed-off-by: Thomas Weißschuh .github/workflows/cibuild-setup-ubuntu.sh | 2 ++ 1 file changed, 2 insertions(+) commit 01bb5d12d715ea751fb4e7b5ff751c49fd8f58a9 Author: Thomas Weißschuh Date: Wed May 31 17:12:12 2023 +0200 tools: (asciidoctor) explicitly require extensions module This is needed for older versions of asciidoctor. Signed-off-by: Thomas Weißschuh configure.ac | 5 +++-- tools/asciidoctor-includetracker.rb | 2 ++ tools/asciidoctor-unicodeconverter.rb | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) commit da22c179c2b11a0c3edaa305a0fde7e6b7f81bfe Author: Thomas Weißschuh Date: Wed May 31 16:56:31 2023 +0200 build-sys: only pass --failure-level if supported Signed-off-by: Thomas Weißschuh Makefile.am | 5 ++++- configure.ac | 10 ++++++++++ po-man/Makefile.am | 5 ++++- 3 files changed, 18 insertions(+), 2 deletions(-) commit 1bfc285fa0d8e0d764e52151f95cebd3ba31719f Author: Thomas Weißschuh Date: Wed May 31 17:25:22 2023 +0200 lsfd: (tests) fix typo Signed-off-by: Thomas Weißschuh tests/ts/lsfd/column-name | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 66fac3e71f9dcb4f3f1b04d523008068173e27f7 Author: Thomas Weißschuh Date: Wed May 31 12:47:03 2023 +0200 blkzone: don't take address of struct blk_zone Older versions of GCC do not know the warning so they warn about the unknown ignored warning. As struct blk_zone is only 64 bytes anyway just copy it. Signed-off-by: Thomas Weißschuh sys-utils/blkzone.c | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) commit d2e3ac959510df1271eec41ce1a58b6d69ec77f5 Author: Thomas Weißschuh Date: Tue May 23 16:34:47 2023 +0200 enosys: add support for loongarch Signed-off-by: Thomas Weißschuh include/audit-arch.h | 6 ++++++ 1 file changed, 6 insertions(+) commit a369feacc51821f0d91d7e203a9c8f942e43bfa7 Author: Thomas Weißschuh Date: Tue May 23 16:32:23 2023 +0200 meson: require 0.57 It is needed for fs.read() Signed-off-by: Thomas Weißschuh libmount/meson.build | 2 +- meson.build | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit f084562c36b7579a1570b5e4267bb0aa3c1116e8 Author: Thomas Weißschuh Date: Mon May 22 17:25:15 2023 +0200 enosys: split audit arch detection into dedicated header Signed-off-by: Thomas Weißschuh include/Makemodule.am | 1 + include/audit-arch.h | 58 +++++++++++++++++++++++++++++++++++++++++++++ tests/helpers/test_enosys.c | 49 +------------------------------------- 3 files changed, 60 insertions(+), 48 deletions(-) commit 88f76e37a215b2cfa4930d673b24fe00ea9f64d9 Author: Thomas Weißschuh Date: Mon May 22 17:21:26 2023 +0200 enosys: add support for sparc Signed-off-by: Thomas Weißschuh tests/helpers/test_enosys.c | 6 ++++++ 1 file changed, 6 insertions(+) commit f65c49002f7fc39916bba441fe59ef3c6c0ce5c8 Author: Thomas Weißschuh Date: Mon May 22 18:24:47 2023 +0200 waitpid: only build when pidfd_open is available Fixes #2256 [kzak@redhat.com: - fix UL_BUILD_INIT() use] Signed-off-by: Thomas Weißschuh Signed-off-by: Karel Zak configure.ac | 1 + meson.build | 1 + 2 files changed, 2 insertions(+) commit ddf9b36ea476b894ee8d793b1cfc5cc986e84e16 Author: Thomas Weißschuh Date: Fri May 19 17:34:00 2023 +0200 libsmartcols: (samples): fix format truncation warning As this is only an example and the needed memory is not much just hardcode a large enough number. The previously computed value was wrong anyways. libsmartcols/samples/continuous.c: In function 'main': libsmartcols/samples/continuous.c:110:61: error: '%3d' directive output may be truncated writing between 3 and 11 bytes into a region of size between 0 and 7 [-Werror=format-truncation=] 110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff, | ^~~ libsmartcols/samples/continuous.c:110:25: note: 'snprintf' output between 11 and 333 bytes into a destination of size 12 110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | done ? 100 : (int)(diff / (TIME_PERIOD / 100.0))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libsmartcols/samples/continuous.c:110:61: error: '%3d' directive output may be truncated writing 3 bytes into a region of size between 0 and 7 [-Werror=format-truncation=] 110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff, | ^~~ libsmartcols/samples/continuous.c:110:25: note: 'snprintf' output between 11 and 325 bytes into a destination of size 12 110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 111 | done ? 100 : (int)(diff / (TIME_PERIOD / 100.0))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Thomas Weißschuh libsmartcols/samples/continuous.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0d0766fbe57495d23858263e86daaa3404e52e9b Author: Thomas Weißschuh Date: Fri May 19 16:47:48 2023 +0200 test_uuidd: make pthread_t formatting more robust On musl pthread_t is a pointer. To avoid compiler warnings on 32bit systems add a cast through intptr_t. Signed-off-by: Thomas Weißschuh misc-utils/test_uuidd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 873a896e02b50f6866439eaf9ce59e65ce8ceaa7 Author: Thomas Weißschuh Date: Fri May 19 16:47:22 2023 +0200 mkfs.minix: handle 64bit time on 32bit system Signed-off-by: Thomas Weißschuh disk-utils/mkfs.minix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 69d8400e401b2e1e2138f0fe26425cfd4b617dd3 Author: Thomas Weißschuh Date: Wed May 17 17:00:31 2023 +0200 enosys: add support for MIPS, PowerPC and ARC Co-developed-by: Hauke Mertens Signed-off-by: Thomas Weißschuh tests/helpers/test_enosys.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit 0ee8ac0652b7816fae4a455ad81f3838125f9230 Author: Thomas Weißschuh Date: Tue May 30 20:01:49 2023 +0200 test_enosys: fix build on old kernels Fixes #2277 Signed-off-by: Thomas Weißschuh tests/functions.sh | 6 ++++++ tests/helpers/test_enosys.c | 6 ++++++ tests/ts/mount/fallback | 4 +--- 3 files changed, 13 insertions(+), 3 deletions(-)