Changes between v2.40 and v2.41-rc1 -------------------------------------------- commit f589580816220bd70ec5970b41006e1adc82bcf7 Author: Karel Zak Date: Tue Feb 18 17:55:36 2025 +0100 tests: mark lsns/filer as TS_KNOWN_FAIL Let's make the test more robust for stable/ branch. Addresses: https://github.com/util-linux/util-linux/pull/3205 Signed-off-by: Karel Zak tests/ts/lsns/filter | 3 +++ 1 file changed, 3 insertions(+) commit 58b0a2c4038e1dbdb534dd60b2c2aa3e8ed07581 Author: Karel Zak Date: Tue Feb 18 14:42:41 2025 +0100 docs: add v2.41-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.41-ReleaseNotes | 1094 +++++++++++++++++++++++++++++ 1 file changed, 1094 insertions(+) commit 0a7dfc376192e8fb1e7bdb2d0c90d8b9b173a42b Author: Karel Zak Date: Tue Feb 18 13:44:19 2025 +0100 build-sys: update version dates Signed-off-by: Karel Zak configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 79a8f3d36b63e538f88bb98f744f7e1547f1aee2 Author: Karel Zak Date: Tue Feb 18 13:38:59 2025 +0100 docs: reduce and freeze NEWS file Originally, it was required by Automake. However, for a long time, we have been using the "foreign" Automake option, so it is no longer necessary. All the details can be found in the ReleaseNotes. Let's keep it simple. Signed-off-by: Karel Zak NEWS | 356 +------------------------------------------------------------------ 1 file changed, 3 insertions(+), 353 deletions(-) commit 26a1ec07e153e714e4cf1c49f83e346bd2892877 Author: Karel Zak Date: Tue Feb 18 13:08:03 2025 +0100 libmount: fix table_init_listmount() Addresses: 8ab1890df4481ddabfa34a8c7fbed09fdd818eba Signed-off-by: Karel Zak libmount/src/tab_listmount.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit ec40f63e1cb1c2b0b93338e1de4b9ffe04efabe1 Author: Karel Zak Date: Tue Feb 18 12:36:16 2025 +0100 docs: reduce AUTHORS file It's already over 1900 lines of email addresses, and it seems better to require people who care about the names to use "git log" instead of distributing a database of emails. Signed-off-by: Karel Zak AUTHORS | 932 +--------------------------------------------------------------- 1 file changed, 1 insertion(+), 931 deletions(-) commit 56ae73d3d9605cbdc4ec4892854a45267521139f Author: Karel Zak Date: Tue Feb 18 12:16:51 2025 +0100 docs: rename v*-devel tag to v*-start This is the point where work on the new release begins. Signed-off-by: Karel Zak README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a697e676c2e19cd87b71ea077a820a986437d90f Author: Karel Zak Date: Tue Feb 18 11:45:11 2025 +0100 po-man: merge changes Signed-off-by: Karel Zak po-man/cs.po | 49196 +++++++++++++------------ po-man/de.po | 64098 ++++++++++++++++++++++----------- po-man/es.po | 55436 +++++++++++++++------------- po-man/fr.po | 85780 +++++++++++++++++++++++++++++++------------- po-man/ko.po | 48940 +++++++++++++++---------- po-man/pt_BR.po | 32485 ++++++++++++----- po-man/ro.po | 64349 ++++++++++++++++++++++----------- po-man/sr.po | 55813 +++++++++++++++++++--------- po-man/uk.po | 64219 ++++++++++++++++++++++----------- po-man/util-linux-man.pot | 18580 +++++----- 10 files changed, 347866 insertions(+), 191030 deletions(-) commit f1b95a26dbafd18d7181d0cddcf5c4913fb5eb44 Author: Karel Zak Date: Tue Feb 18 11:45:04 2025 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 12324 ++++++++++++++++++++++------------------ po/cs.po | 12166 ++++++++++++++++++++++------------------ po/da.po | 12610 ++++++++++++++++++++++------------------- po/de.po | 12156 ++++++++++++++++++++++------------------ po/es.po | 12338 +++++++++++++++++++++++------------------ po/et.po | 11379 ++++++++++++++++++++----------------- po/eu.po | 11383 ++++++++++++++++++++----------------- po/fi.po | 11860 +++++++++++++++++++++------------------ po/fr.po | 12017 +++++++++++++++++++++------------------ po/gl.po | 11317 ++++++++++++++++++++----------------- po/hr.po | 12004 ++++++++++++++++++++++----------------- po/hu.po | 11569 +++++++++++++++++++++----------------- po/id.po | 11589 +++++++++++++++++++++----------------- po/it.po | 11549 +++++++++++++++++++++----------------- po/ja.po | 11947 ++++++++++++++++++++++----------------- po/ko.po | 11977 ++++++++++++++++++++++----------------- po/nl.po | 11884 ++++++++++++++++++++++----------------- po/pl.po | 11977 ++++++++++++++++++++++----------------- po/pt.po | 12682 +++++++++++++++++++++++------------------- po/pt_BR.po | 12489 +++++++++++++++++++++++------------------ po/ru.po | 11850 +++++++++++++++++++++------------------ po/sk.po | 10827 ++++++++++++++++++++---------------- po/sl.po | 11505 +++++++++++++++++++++----------------- po/sr.po | 12014 ++++++++++++++++++++++----------------- po/sv.po | 12835 +++++++++++++++++++++++------------------- po/tr.po | 15726 +++++++++++++++++++++++++++++++--------------------- po/uk.po | 11975 ++++++++++++++++++++++----------------- po/util-linux.pot | 10062 ++++++++++++++++++--------------- po/vi.po | 12233 ++++++++++++++++++++++------------------ po/zh_CN.po | 12568 ++++++++++++++++++++++------------------- po/zh_TW.po | 11763 +++++++++++++++++++++------------------ 31 files changed, 208172 insertions(+), 164403 deletions(-) commit 439e7117184fe618cb0174712c532ae56ee4dcb4 Author: Mingye Wang (Artoria2e5) Date: Tue Feb 18 11:35:29 2025 +0100 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 2585 +++++++++++++++++++++++++---------------------------------- 1 file changed, 1112 insertions(+), 1473 deletions(-) commit 668489afafc5e0d142e442569c780066de64ad19 Author: Yuri Chornoivan Date: Tue Feb 18 11:35:29 2025 +0100 po: update uk.po (from translationproject.org) po/uk.po | 2665 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 1128 insertions(+), 1537 deletions(-) commit e628f3c36f7b624528894ac8590d876122ab80a7 Author: Emir SARI Date: Tue Feb 18 11:35:29 2025 +0100 po: update tr.po (from translationproject.org) po/tr.po | 8911 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 3769 insertions(+), 5142 deletions(-) commit 9fc857147a31e533d6737dd174e50163575c50d7 Author: Мирослав Николић Date: Tue Feb 18 11:35:29 2025 +0100 po: update sr.po (from translationproject.org) po/sr.po | 2673 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 1131 insertions(+), 1542 deletions(-) commit 55a4a054eea2478a09155b92ef5dd1cceaa8425c Author: Remus-Gabriel Chelu Date: Tue Feb 18 11:35:29 2025 +0100 po: update ro.po (from translationproject.org) po/ro.po | 8787 +++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 4942 insertions(+), 3845 deletions(-) commit 21a85f6e2fbb6e9edb61d12a31576e2ca06a1fee Author: Rafael Fontenelle Date: Tue Feb 18 11:35:29 2025 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 3110 ++++++++++++++++++++++++----------------------------------- 1 file changed, 1278 insertions(+), 1832 deletions(-) commit a2fecd9e666522b3f3d20055ba59cbef2e7b77d3 Author: Jakub Bogusz Date: Tue Feb 18 11:35:29 2025 +0100 po: update pl.po (from translationproject.org) po/pl.po | 2906 +++++++++++++++++++++++++------------------------------------- 1 file changed, 1169 insertions(+), 1737 deletions(-) commit 920270a646f0d7dd06c10ff0666c9260bed7161d Author: Benno Schulenberg Date: Tue Feb 18 11:35:29 2025 +0100 po: update nl.po (from translationproject.org) po/nl.po | 7768 +++++++++++++++++++++++++------------------------------------- 1 file changed, 3078 insertions(+), 4690 deletions(-) commit 87116e9ebe2f7fc92cdcd537bc2d093b957aa72c Author: Seong-ho Cho Date: Tue Feb 18 11:35:29 2025 +0100 po: update ko.po (from translationproject.org) po/ko.po | 3065 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 1328 insertions(+), 1737 deletions(-) commit af30bd3f1477f6c0e275e6efa69a96eb2c4bc36b Author: Hideki Yoshida Date: Tue Feb 18 11:35:29 2025 +0100 po: update ja.po (from translationproject.org) po/ja.po | 9059 +++++++++++++++++++++----------------------------------------- 1 file changed, 3063 insertions(+), 5996 deletions(-) commit 8128ea990e1ef1dfc05762c47b01f97551f7a169 Author: Božidar Putanec Date: Tue Feb 18 11:35:29 2025 +0100 po: update hr.po (from translationproject.org) po/hr.po | 3613 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 1596 insertions(+), 2017 deletions(-) commit b87f20e7a2aba0b1a5b05bd86e96270d90b191d7 Author: Frédéric Marchal Date: Tue Feb 18 11:35:28 2025 +0100 po: update fr.po (from translationproject.org) po/fr.po | 2683 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 1136 insertions(+), 1547 deletions(-) commit 96a4cb4000f16e9eb828bc7f1b83ddc1d8e61d2d Author: Antonio Ceballos Roa Date: Tue Feb 18 11:35:28 2025 +0100 po: update es.po (from translationproject.org) po/es.po | 1638 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 830 insertions(+), 808 deletions(-) commit d111100910fa79cef22647f3fa9bfc498c12a909 Author: Mario Blättermann Date: Tue Feb 18 11:35:28 2025 +0100 po: update de.po (from translationproject.org) po/de.po | 2790 ++++++++++++++++++++++++-------------------------------------- 1 file changed, 1070 insertions(+), 1720 deletions(-) commit 945e59b4210a4c524f37b5e52b9807633587cc00 Author: Petr Písař Date: Tue Feb 18 11:35:28 2025 +0100 po: update cs.po (from translationproject.org) po/cs.po | 2700 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 1151 insertions(+), 1549 deletions(-) commit 0a4eabdceff1d8d3ab7a744c66f108055471573c Author: Yuri Chornoivan Date: Tue Feb 18 11:35:12 2025 +0100 po-man: update uk.po (from translationproject.org) po-man/uk.po | 26271 +++++++++++++-------------------------------------------- 1 file changed, 5916 insertions(+), 20355 deletions(-) commit ff07c1f569458a772c06bcdb5089ec631e3ca2d9 Author: Мирослав Николић Date: Tue Feb 18 11:35:12 2025 +0100 po-man: update sr.po (from translationproject.org) po-man/sr.po | 35243 ++++++++++++++------------------------------------------- 1 file changed, 8532 insertions(+), 26711 deletions(-) commit 99a1c7b9f1821a83ed116f7fbbf418ceaeee39a6 Author: Remus-Gabriel Chelu Date: Tue Feb 18 11:35:12 2025 +0100 po-man: update ro.po (from translationproject.org) po-man/ro.po | 12046 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 5878 insertions(+), 6168 deletions(-) commit ebf243dad90bebffa811816e87237075b181d4c7 Author: Rafael Fontenelle Date: Tue Feb 18 11:35:12 2025 +0100 po-man: update pt_BR.po (from translationproject.org) po-man/pt_BR.po | 20178 +++++++++++++++--------------------------------------- 1 file changed, 5394 insertions(+), 14784 deletions(-) commit 2e778541e3d9d8ada154f5827549a719f608ce87 Author: Seong-ho Cho Date: Tue Feb 18 11:35:12 2025 +0100 po-man: update ko.po (from translationproject.org) po-man/ko.po | 15080 ++++++++++++++++++++++++++------------------------------- 1 file changed, 6883 insertions(+), 8197 deletions(-) commit e24d62a99e415d5cc5df46d242438ce33bd82561 Author: Frédéric Marchal Date: Tue Feb 18 11:35:12 2025 +0100 po-man: update fr.po (from translationproject.org) po-man/fr.po | 50844 +++++++++++++-------------------------------------------- 1 file changed, 11061 insertions(+), 39783 deletions(-) commit 2cf0bfad23157de0c1c72640bd70d0ac91c8dc0f Author: Mario Blättermann Date: Tue Feb 18 11:35:12 2025 +0100 po-man: update de.po (from translationproject.org) po-man/de.po | 34127 +++++++++++++-------------------------------------------- 1 file changed, 7602 insertions(+), 26525 deletions(-) commit 24f7974e20afa399dd073620aa7b83f006663760 Merge: 9f87ea6b2 6417fc60d Author: Karel Zak Date: Tue Feb 18 11:33:42 2025 +0100 Merge branch 'PR/autotools-cleanups' of https://github.com/karelzak/util-linux-work * 'PR/autotools-cleanups' of https://github.com/karelzak/util-linux-work: tests: (lslogins) use GMT timezone autotools: fix po-man discheck tests: (lslogins) write to TS_OUTDIR only, check for sqlite3 tests: (lslogins) use fixed time format autotools: update po-man files on make dist autotools: add missing HAVE_LIBLASTLOG2 remove duplicate includes commit 9f87ea6b253b46f4c8398dde9969bf76117733c2 Author: Benno Schulenberg Date: Sat Feb 15 17:18:43 2025 +0100 unshare: in usage text, reshuffle options into somewhat related groups First the mount-related options (because --mount was the first namespace option earlier) plus two other options about folders; then the options about UIDS and GIDS; then two options about forking; then two miscellaneous options; and lastly the two options about time, as --time was the last namespace option. Signed-off-by: Benno Schulenberg sys-utils/unshare.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) commit 343a6a5db6270a42862594369fd7cc094fd208b3 Author: Benno Schulenberg Date: Sat Feb 15 17:18:42 2025 +0100 prlimit: in man page, mark --resource as placeholder, not literal option Also, show that --pid takes an argument, and improve its description. Signed-off-by: Benno Schulenberg sys-utils/prlimit.1.adoc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 97730eeb4c25f8195315ca0f32720494dca5400c Author: Benno Schulenberg Date: Sat Feb 15 17:18:41 2025 +0100 mkfs.cramfs: in usage text, separate two direct arguments from options Signed-off-by: Benno Schulenberg disk-utils/mkfs.cramfs.c | 1 + 1 file changed, 1 insertion(+) commit d3dc55c3404f28a1b918aceab748c0a1f23913a2 Author: Benno Schulenberg Date: Sat Feb 15 17:18:40 2025 +0100 rev: standardize the usage header, making the synopsis equal to another Signed-off-by: Benno Schulenberg text-utils/rev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit afee237e6c211e6a58607cb44e76cf1b1a4a8a4b Author: Benno Schulenberg Date: Sat Feb 15 17:18:39 2025 +0100 textual: make two incorrect synopses identical to a better one Signed-off-by: Benno Schulenberg sys-utils/setpgid.c | 2 +- sys-utils/setsid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 89232ab3d86c602444130735dd57110068fe5ee0 Author: Benno Schulenberg Date: Sat Feb 15 17:18:38 2025 +0100 script: mention in usage that value for may have a suffix Signed-off-by: Benno Schulenberg term-utils/script.c | 4 ++++ 1 file changed, 4 insertions(+) commit c722cb5943c2d1c6560aae8ec586f69df80761ac Author: Benno Schulenberg Date: Sat Feb 15 17:18:37 2025 +0100 textual: fix three misspellings of "unsupported" One misspelling was fixed five years ago (in commit 760ecc3613), but the others remained. Fix another spello too, found with `codespell`. Signed-off-by: Benno Schulenberg sys-utils/mount.c | 2 +- sys-utils/wdctl.c | 2 +- term-utils/script.c | 2 +- term-utils/scriptlive.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 07bd2e8d42cc6ca62a3185165ccef043651e56de Author: Benno Schulenberg Date: Sat Feb 15 17:18:36 2025 +0100 setterm: mark literal values in the man page in bold Also, add a few commas for readability, tweak some wordings, and add a "T" that was lost six years ago in commit bc6439ba32. Signed-off-by: Benno Schulenberg term-utils/setterm.1.adoc | 52 ++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 23 deletions(-) commit d4a67eda5d09d68187346f5f82dc935956b16484 Author: Benno Schulenberg Date: Sat Feb 15 17:18:35 2025 +0100 setterm: put an option and its description in a single message And improve a bit of markup and a wording in the man page. Signed-off-by: Benno Schulenberg term-utils/setterm.1.adoc | 4 ++-- term-utils/setterm.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 17f15695dfc32378b8529d75ea9807fb6dcca7a6 Author: Benno Schulenberg Date: Sat Feb 15 17:18:34 2025 +0100 colrm: make the wording of the doc string analogous to that of `col` Which allows removing an awkwardly placed and rather redundant sentence. Signed-off-by: Benno Schulenberg text-utils/colrm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 54eb6321dd7b7797b1831192af2058e8838f0d19 Author: Karel Zak Date: Tue Feb 18 10:58:00 2025 +0100 pg: make sure cmdline[] not overflow [coverity scan] Signed-off-by: Karel Zak text-utils/pg.c | 4 ++++ 1 file changed, 4 insertions(+) commit 655099a8615809176b012987fe9ff9a91968cd24 Author: Karel Zak Date: Tue Feb 18 10:50:45 2025 +0100 sfdisk: make sure partition number > 0 [coverity scan] Signed-off-by: Karel Zak disk-utils/sfdisk.c | 2 ++ 1 file changed, 2 insertions(+) commit 8ab1890df4481ddabfa34a8c7fbed09fdd818eba Author: Karel Zak Date: Tue Feb 18 10:39:05 2025 +0100 libmount: fix use-after free, etc. [coverity scan] * remove dead code in mnt_fs_fetch_statmount() * fix use-after-free in table_init_listmount() * return from lsmnt_to_table() if list not defined Signed-off-by: Karel Zak libmount/src/fs_statmount.c | 2 -- libmount/src/tab_listmount.c | 10 ++++++---- 2 files changed, 6 insertions(+), 6 deletions(-) commit 6a14329c6d24c7f29e525fcd1464d535c48b80d8 Author: Karel Zak Date: Tue Feb 18 10:37:28 2025 +0100 findmnt: fix resource leaks [coverity scan] Signed-off-by: Karel Zak misc-utils/findmnt.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) commit 6417fc60d93b3ef45fd241616fb15c383ec028b2 Author: Karel Zak Date: Tue Feb 18 09:22:56 2025 +0100 tests: (lslogins) use GMT timezone Signed-off-by: Karel Zak tests/expected/lslogins/checkuser | 2 +- tests/ts/lslogins/checkuser | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) commit ef8eea26031cbe6980bddb281e5e0ebbae60b8ab Author: Karel Zak Date: Mon Feb 17 20:40:43 2025 +0100 autotools: fix po-man discheck Signed-off-by: Karel Zak Makefile.am | 1 + po-man/Makemodule.am | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) commit 45f4fb420da791925d78d87a2639c025dbdfc43e Author: Karel Zak Date: Mon Feb 17 19:59:22 2025 +0100 tests: (lslogins) write to TS_OUTDIR only, check for sqlite3 Signed-off-by: Karel Zak tests/ts/lslogins/checkuser | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 7496ec4c4d78d071f787c88e174e96bd4b511e11 Author: Karel Zak Date: Mon Feb 17 19:42:29 2025 +0100 tests: (lslogins) use fixed time format Signed-off-by: Karel Zak tests/expected/lslogins/checkuser | 4 ++-- tests/ts/lslogins/checkuser | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) commit 66d0062fabddf32e9cb663b621aca98ca14a9861 Author: Karel Zak Date: Mon Feb 17 18:38:11 2025 +0100 autotools: update po-man files on make dist Signed-off-by: Karel Zak Makefile.am | 2 +- po-man/Makemodule.am | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) commit ede518f47f69be9270ad2456bf376fea5824323b Author: Karel Zak Date: Mon Feb 17 15:25:25 2025 +0100 autotools: add missing HAVE_LIBLASTLOG2 Signed-off-by: Karel Zak configure.ac | 3 +++ 1 file changed, 3 insertions(+) commit ca014019e1b8cef4ab7d273d64333f5abb9dd47b Author: Karel Zak Date: Mon Feb 17 15:22:06 2025 +0100 remove duplicate includes Signed-off-by: Karel Zak sys-utils/lscpu-virt.c | 1 - sys-utils/nsenter.c | 1 - 2 files changed, 2 deletions(-) commit 96f3bacc93df4074b0e9712a547dd5271da5c4fc Author: Petre Tudor Date: Wed Jan 29 17:05:18 2025 +0000 chrt: (tests) Add new cases for custom slice on SCHED_{OTHER,BATCH} Adds two new test cases setting --sched-runtime for SCHED_{OTHER,BATCH}. The new custom slice tests are skipped for kernel versions < 6.12, which do not have the feature. The existing chrt tests for SCHED_{OTHER,BATCH} are skipped for kernel versions >= 6.12. This is for two reasons: - the default sched_runtime value depends on target platform - without custom slice support, the value of sched_runtime is always zero for SCHED_{OTHER,BATCH} Expected output with kernel version < 6.12: schedutils: chrt ... : batch ... OK : batch-custom-slice ... SKIPPED : other ... OK : other-custom-slice ... SKIPPED : deadline ... OK Expected output with kernel version >= 6.12: schedutils: chrt ... : batch ... SKIPPED : batch-custom-slice ... OK : other ... SKIPPED : other-custom-slice ... OK : deadline ... OK Signed-off-by: Petre Tudor tests/expected/schedutils/chrt-batch-custom-slice | 3 ++ tests/expected/schedutils/chrt-other-custom-slice | 3 ++ tests/functions.sh | 28 ++++++++++++++- tests/ts/schedutils/chrt | 42 +++++++++++++++++++++-- 4 files changed, 73 insertions(+), 3 deletions(-) commit 22ff43f78f4a2a44243d2eae9128933785ea02ee Author: Petre Tudor Date: Thu Jan 30 12:05:51 2025 +0000 chrt: (man) Add note for custom slice length on SCHED_{OTHER,BATCH} Adds note to the chrt man page, explaining how the --sched-runtime parameter can be used to request a custom slice length for tasks using SCHED_{OTHER,BATCH}. Signed-off-by: Petre Tudor schedutils/chrt.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3055b8bf92c5f438275cfdbf8f32cb864b9f841d Author: Petre Tudor Date: Thu Jan 16 15:13:22 2025 +0000 chrt: Add --sched_runtime support for SCHED_{OTHER,BATCH} policies Apply --sched_runtime to SCHED_{OTHER,BATCH} in addition to SCHED_DEADLINE, supporting Linux kernel patch: commit 857b158dc5e8 ("sched/eevdf: Use sched_attr::sched_runtime to set request/slice suggestion") (2024-08-17 Peter Zijlstra) This patch is present in kernel versions starting with 6.12 and allows setting custom slice length on fair tasks via the sched_runtime parameter. Using this new feature: /* change policy to SCHED_BATCH and set custom slice to 0.1ms */ chrt -v -b -T 100000 -p 0 $PID pid $PID's current scheduling policy: SCHED_OTHER pid $PID's current scheduling priority: 0 pid $PID's current runtime parameter: 2250000 pid $PID's new scheduling policy: SCHED_BATCH pid $PID's new scheduling priority: 0 pid $PID's new runtime parameter: 100000 Signed-off-by: Petre Tudor schedutils/chrt.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 7 deletions(-) commit 8ec6a622bbf6877a1dbba8f899d30510922e1ba4 Merge: 8179f69ee 82fdfa17b Author: Karel Zak Date: Wed Feb 12 14:26:55 2025 +0100 Merge branch 'PR/build-sys-poman-rewrite' of https://github.com/karelzak/util-linux-work * 'PR/build-sys-poman-rewrite' of https://github.com/karelzak/util-linux-work: po-man: add missing pages, improve output po-man: add asciidoctor --trace po-man: add missing asciidoctor-unicodeconverter po-man: fix uninstall po-man: fix 'make dist' po-man: cleanup install po-man: move scripts tools/ po-man: rewrite autotools code po-man: improve translation and install scripts meson: generate man page translations meson: use files() for man page source files commit 8179f69eec2f04be47607d89349505ab7d6ec6be Author: Benno Schulenberg Date: Mon Feb 10 13:35:29 2025 +0100 blkzone: improve the wording of an error message Signed-off-by: Benno Schulenberg sys-utils/blkzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 82fdfa17bb326dd152af2e69939ea95c7162e0a9 Author: Karel Zak Date: Thu Feb 6 15:34:57 2025 +0100 po-man: add missing pages, improve output Signed-off-by: Karel Zak po-man/Makemodule.am | 8 ++++---- po-man/po4a.cfg | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) commit e6f8ec64ff564bf5758777a7ded4f21ebdcc5b1e Author: Karel Zak Date: Thu Jan 23 17:37:11 2025 +0100 po-man: add asciidoctor --trace Signed-off-by: Karel Zak tools/poman-translate.sh | 1 + 1 file changed, 1 insertion(+) commit 7e51fa7c29f8e304c5eebd799ce1d2a4af4d7e32 Author: Karel Zak Date: Thu Jan 23 10:44:31 2025 +0100 po-man: add missing asciidoctor-unicodeconverter Signed-off-by: Karel Zak tools/poman-translate.sh | 1 + 1 file changed, 1 insertion(+) commit 00e2422819995b4a66b4cbc6e9e547de7f3818ef Author: Karel Zak Date: Wed Jan 22 20:36:04 2025 +0100 po-man: fix uninstall Signed-off-by: Karel Zak tools/poman-install.sh | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) commit 64a39f0f6f4753f88af0c4f907a14e7d9f28a5ba Author: Karel Zak Date: Wed Jan 22 20:25:20 2025 +0100 po-man: fix 'make dist' Signed-off-by: Karel Zak Makefile.am | 1 + po-man/Makemodule.am | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) commit 4e700a33dd9b6542b679100f25baee9c717e364d Author: Karel Zak Date: Wed Jan 22 18:27:44 2025 +0100 po-man: cleanup install * Use autotools $(abs_ ) paths. * Remove hidden path prefixes from poman-install.sh. Use $DESTDIR and $MESON_INSTALL_PREFIX on the poman-install.sh command line(--mandir). * Use autotools compatible "install" calls (without -D). * Add timestamp to autotools to avoid repeating "gen-poman" calls. Signed-off-by: Karel Zak Makefile.am | 2 ++ configure.ac | 1 - po-man/Makemodule.am | 25 +++++++++++++++---------- tools/poman-install.sh | 8 ++++---- tools/poman-translate.sh | 2 +- 5 files changed, 22 insertions(+), 16 deletions(-) commit 20670d2fcd234cb88d4c13f1bcbba75a41601c9c Author: Karel Zak Date: Wed Jan 22 16:31:36 2025 +0100 po-man: move scripts tools/ Signed-off-by: Karel Zak po-man/Makemodule.am | 4 ++-- po-man/meson.build | 4 ++-- tools/Makemodule.am | 3 +++ po-man/install-translations.sh => tools/poman-install.sh | 0 po-man/translate.sh => tools/poman-translate.sh | 0 5 files changed, 7 insertions(+), 4 deletions(-) commit f83f556cd53740a033ef958ebb4535ae9b88fb89 Author: Karel Zak Date: Wed Jan 22 16:08:39 2025 +0100 po-man: rewrite autotools code Signed-off-by: Karel Zak Makefile.am | 10 +---- po-man/Makefile.am | 107 --------------------------------------------------- po-man/Makemodule.am | 52 +++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 115 deletions(-) commit 86be21cfc9b2680b2751a43084454cb037673141 Author: Karel Zak Date: Wed Jan 22 16:03:50 2025 +0100 po-man: improve translation and install scripts install-translations.sh: * add uninstall mode * add --install and --uninstall options * remove $DESTDIR, it has to be used in --mandir argument translate.sh: * add --progress to print info * print info about missing man pages translation settings Signed-off-by: Karel Zak po-man/install-translations.sh | 28 +++++++++++++++++++++------- po-man/translate.sh | 15 ++++++++++++++- 2 files changed, 35 insertions(+), 8 deletions(-) commit 44e4e2c0a6cbfd77b97286f31b0fb02ba4b496ac Author: Jordan Williams Date: Tue Nov 26 09:58:06 2024 -0600 meson: generate man page translations Signed-off-by: Jordan Williams meson.build | 2 + po-man/install-translations.sh | 77 +++++++++++++++++++++ po-man/meson.build | 38 +++++++++++ po-man/translate.sh | 150 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 267 insertions(+) commit 6459137d5a0692653a6d7b8a0bda70d162791347 Author: Jordan Williams Date: Tue Nov 26 09:07:15 2024 -0600 meson: use files() for man page source files The files() command in Meson allows tracking files across directories. It requires the command to be used in the directory containing the files. This commit uses the files() command for all of the man page sources. This is a preparatory commit for translating the man pages. Signed-off-by: Jordan Williams disk-utils/meson.build | 19 +++ lib/meson.build | 2 + libblkid/meson.build | 4 +- liblastlog2/man/meson.build | 10 ++ liblastlog2/meson.build | 6 +- libsmartcols/meson.build | 2 +- libuuid/man/meson.build | 11 ++ libuuid/meson.build | 2 + login-utils/meson.build | 21 ++++ lsfd-cmd/meson.build | 2 + man-common/meson.build | 11 ++ meson.build | 276 ++++++++++++++++++++----------------------- misc-utils/meson.build | 29 +++++ pam_lastlog2/man/meson.build | 1 + pam_lastlog2/meson.build | 8 +- schedutils/meson.build | 7 ++ sys-utils/meson.build | 55 +++++++++ term-utils/meson.build | 8 ++ tests/.gitignore | 2 - text-utils/meson.build | 11 ++ 20 files changed, 328 insertions(+), 159 deletions(-) commit d95f9a6a7242bdcd2081c88caa34785cacd88d3e Merge: 3775f4602 09786b766 Author: Karel Zak Date: Wed Feb 12 10:51:46 2025 +0100 Merge branch 'master' of https://github.com/aerusso/util-linux * 'master' of https://github.com/aerusso/util-linux: fallocate: keep-size and zero-range are compatible commit 3775f4602f9837e5ee73fb69b1be1a11aa7327b5 Merge: 757933dc3 762e58650 Author: Karel Zak Date: Wed Feb 12 10:50:34 2025 +0100 Merge branch 'PR/scriptreplay-binding-help' of https://github.com/karelzak/util-linux-work * 'PR/scriptreplay-binding-help' of https://github.com/karelzak/util-linux-work: scriptreplay: add key bindings info to --help commit 757933dc33fd681bdd553df4570f457fab976f15 Merge: 4aa824ddb ca82120f4 Author: Karel Zak Date: Wed Feb 12 10:50:05 2025 +0100 Merge branch 'PR/Benno-text-fixes-w7' of https://github.com/karelzak/util-linux-work * 'PR/Benno-text-fixes-w7' of https://github.com/karelzak/util-linux-work: zramctl: improve grammar in usage and don't gettextize list of algorithms usage: mention also the missing KiB and MiB as permissible suffixes man pages: use the same verb for --version as for --help, like in usages renice: put text that belongs together into a single translatable message blkzone: correct the wording of an error message, from ioctl to function blkpr: grammarize the description of the tool and its options textual: give seven error messages the same form as two others unshare: don't mark "|" and ":" as part of the placeholders mount: properly mark the arguments of the 'ro' and 'rw' extended options textual: consistently mark "=" as literal before an optional argument textual: remove other inconsistent uses of "=" before option argument unshare: use single asterisks around long options, double around values unshare: don't use "=" before a required option argument setpriv: make message for failing PR_GET_PDEATHSIG the same as the other commit 4aa824ddb69996e5b452fbb8e9c5989051a16d4b Author: Karel Zak Date: Wed Feb 12 10:40:31 2025 +0100 lsipc: (man) add note about default outputs Signed-off-by: Karel Zak sys-utils/lsipc.1.adoc | 2 ++ 1 file changed, 2 insertions(+) commit 6a2b05d8ac3c2f1546fc5977ecfa7da2709b114a Author: Karel Zak Date: Wed Feb 12 10:33:58 2025 +0100 ipc: coding style cosmetic changes * Removed trailing white space * Added comments to long #endif statements * Improved indentation in some places * Reduced size of lsipc --help lines Signed-off-by: Karel Zak configure.ac | 6 +++--- sys-utils/ipcmk.c | 18 +++++++++--------- sys-utils/ipcutils.c | 17 ++++++++--------- sys-utils/lsipc.c | 41 ++++++++++++++++++++++------------------- 4 files changed, 42 insertions(+), 40 deletions(-) commit c16ceb2c88afff0af85855ac78fa78e6d86803be Merge: a4436c7bf ff5e642a9 Author: Karel Zak Date: Wed Feb 12 10:13:10 2025 +0100 Merge branch 'ipc' of https://github.com/PrasannaPaithankar/util-linux * 'ipc' of https://github.com/PrasannaPaithankar/util-linux: Defined macros for POSIX IPC compilation and removed path buffer. Fix CodeQL warning sys-utils: warns if mqueue fs is not mounted bash completions for IPC tools sys-utils: fixed build system for POSIX IPC tools rectified long formatting error configured for meson build system added POSIX IPC paathnames; modified sys-utils/Makemodule.am added POSIX IPC support to lsipc, ipcrm, ipcmk commit 09786b766afed394e4933adbaf6c5f23afbecaee Author: Antonio Russo Date: Tue Feb 11 05:32:58 2025 -0700 fallocate: keep-size and zero-range are compatible Do not prevent --keep-size and --zero-range from being specified at the same time, bringing this check into alignment with the documentation, and completes b85feb999c505222d4815638344c8883d5e4ab58. Signed-off-by: Antonio Enrico Russo sys-utils/fallocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ff5e642a9202be0509133a7f45e24456753d6ae3 Author: Prasanna Paithankar Date: Tue Feb 11 01:07:55 2025 +0530 Defined macros for POSIX IPC compilation and removed path buffer. Signed-off-by: Prasanna Paithankar configure.ac | 3 ++ meson.build | 7 +++- sys-utils/ipcmk.c | 52 +++++++++++++++++++++++-- sys-utils/ipcrm.c | 16 +++++++- sys-utils/ipcutils.c | 105 ++++++++++++++++++++++++++++++--------------------- sys-utils/ipcutils.h | 10 ++++- sys-utils/lsipc.c | 31 ++++++++++++--- 7 files changed, 165 insertions(+), 59 deletions(-) commit 762e58650a1062e8ae8cf28a0d190cd10a99cdff Author: Karel Zak Date: Mon Feb 10 12:51:28 2025 +0100 scriptreplay: add key bindings info to --help Addresses: https://github.com/util-linux/util-linux/discussions/3404 Signed-off-by: Karel Zak term-utils/scriptreplay.c | 6 ++++++ 1 file changed, 6 insertions(+) commit ca82120f42169d179d66662521055386b98a0358 Author: Benno Schulenberg Date: Sun Feb 9 09:23:30 2025 +0100 zramctl: improve grammar in usage and don't gettextize list of algorithms There is no need to translate this list as they are all literal values -- the word "and" is not needed: a comma will do. Signed-off-by: Benno Schulenberg sys-utils/zramctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit aed0aad70eb07761a1314b812cc940e2607a6b38 Author: Benno Schulenberg Date: Sun Feb 9 09:23:29 2025 +0100 usage: mention also the missing KiB and MiB as permissible suffixes Also, slightly reword the phrase to be more grammatical, and make it into a full sentence that ends in a period. (By the way, commit f1970cc557 is somewhat problematic: it requires that the relevant occurrences of "" and "" in the option descriptions are now always translated in the same manner, but the translator may be unaware of this. For Dutch, the latter was the case for `ipcmk` and `zramctl`. :/ ) Signed-off-by: Benno Schulenberg include/c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 97114dcd23a9fbe1cba762dc143a0ed76d85c03e Author: Benno Schulenberg Date: Sun Feb 9 09:23:28 2025 +0100 man pages: use the same verb for --version as for --help, like in usages Also, avoid duplication of --help/--version in the man page for `chfn`. Signed-off-by: Benno Schulenberg login-utils/chfn.1.adoc | 6 +++--- login-utils/chsh.1.adoc | 10 +++++----- man-common/help-version.adoc | 2 +- schedutils/coresched.1.adoc | 6 +----- text-utils/col.1.adoc | 2 +- 5 files changed, 11 insertions(+), 15 deletions(-) commit 074fb62726e9ee54d7290d042028174bb881a7cc Author: Benno Schulenberg Date: Sun Feb 9 09:23:27 2025 +0100 renice: put text that belongs together into a single translatable message Also, use semicolons and no periods in an option description. Signed-off-by: Benno Schulenberg sys-utils/renice.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit b5bc7d74bf3622e7b48f86b9f472685de9a4bbd5 Author: Benno Schulenberg Date: Sun Feb 9 09:23:26 2025 +0100 blkzone: correct the wording of an error message, from ioctl to function Signed-off-by: Benno Schulenberg sys-utils/blkzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7722cde3d694cb0b3f51931a96e907a23e9b4da0 Author: Benno Schulenberg Date: Sun Feb 9 09:23:25 2025 +0100 blkpr: grammarize the description of the tool and its options Signed-off-by: Benno Schulenberg sys-utils/blkpr.8.adoc | 9 +++++---- sys-utils/blkpr.c | 14 +++++++------- 2 files changed, 12 insertions(+), 11 deletions(-) commit 30dee3488c3920f124c36f656455ddcc670f5f8d Author: Benno Schulenberg Date: Sun Feb 9 09:23:24 2025 +0100 textual: give seven error messages the same form as two others The form with the parentheses is easier for translators: it indicates that the preceding text is not a translatable word. Signed-off-by: Benno Schulenberg login-utils/newgrp.c | 6 +++--- sys-utils/nsenter.c | 4 ++-- sys-utils/unshare.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) commit 449f208a34fc1aaf0cbc08e8598ca4a0309e9db0 Author: Benno Schulenberg Date: Sun Feb 9 09:23:23 2025 +0100 unshare: don't mark "|" and ":" as part of the placeholders The "|" is a meta-character, and should thus be left unmarked, while the ":" (in the argument of --map-users/--map-groups) is a literal, and should therefore be marked in bold. Also, add the new 'subids' literal value for the above two options. And in the bargain tweak a comment. Signed-off-by: Benno Schulenberg sys-utils/unshare.1.adoc | 12 ++++++------ sys-utils/unshare.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) commit 29009a35a4112e1eeb73aafc7a0360094ccf6aad Author: Benno Schulenberg Date: Sun Feb 9 09:23:22 2025 +0100 mount: properly mark the arguments of the 'ro' and 'rw' extended options The 'fs', 'vfs', and 'recursive' are literal values, not placeholders for something else. Signed-off-by: Benno Schulenberg sys-utils/mount.8.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit e4b14de33dae8af421dc0bbb2fa48b682525b623 Author: Benno Schulenberg Date: Sun Feb 9 09:23:21 2025 +0100 textual: consistently mark "=" as literal before an optional argument See, for example, how in `man cfdisk` the "=" after --color and after --lock were differently marked. (Basically done with `sed -i 's/\*\[=/\*\[\*\*=\*\*/' *utils/*.adoc`.) Signed-off-by: Benno Schulenberg disk-utils/cfdisk.8.adoc | 2 +- disk-utils/fdisk.8.adoc | 8 ++++---- disk-utils/fsck.cramfs.8.adoc | 2 +- disk-utils/mkfs.bfs.8.adoc | 2 +- disk-utils/mkfs.cramfs.8.adoc | 2 +- disk-utils/mkfs.minix.8.adoc | 2 +- disk-utils/mkswap.8.adoc | 2 +- disk-utils/sfdisk.8.adoc | 2 +- login-utils/lslogins.1.adoc | 2 +- misc-utils/cal.1.adoc | 4 ++-- misc-utils/enosys.1.adoc | 2 +- misc-utils/findmnt.8.adoc | 2 +- misc-utils/hardlink.1.adoc | 2 +- misc-utils/lsblk.8.adoc | 2 +- misc-utils/uuidd.8.adoc | 2 +- misc-utils/wipefs.8.adoc | 4 ++-- sys-utils/dmesg.1.adoc | 2 +- sys-utils/lscpu.1.adoc | 8 ++++---- sys-utils/lsmem.1.adoc | 2 +- sys-utils/mount.8.adoc | 4 ++-- sys-utils/nsenter.1.adoc | 22 +++++++++++----------- sys-utils/prlimit.1.adoc | 36 ++++++++++++++++++------------------ term-utils/agetty.8.adoc | 2 +- term-utils/script.1.adoc | 2 +- term-utils/setterm.1.adoc | 18 +++++++++--------- text-utils/hexdump.1.adoc | 2 +- 26 files changed, 70 insertions(+), 70 deletions(-) commit 6277a9c137b2c91a259ba1e8db808335f18c1975 Author: Benno Schulenberg Date: Sun Feb 9 09:23:20 2025 +0100 textual: remove other inconsistent uses of "=" before option argument And remove inconsistent uses of double asterisks too. Signed-off-by: Benno Schulenberg login-utils/lslogins.1.adoc | 4 ++-- login-utils/su.1.adoc | 10 +++++----- sys-utils/mount.8.adoc | 2 +- sys-utils/wdctl.8.adoc | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) commit 0bdb1cf1f24352fb84338cc9e17bed5789a110ba Author: Benno Schulenberg Date: Sun Feb 9 09:23:19 2025 +0100 unshare: use single asterisks around long options, double around values Signed-off-by: Benno Schulenberg sys-utils/unshare.1.adoc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit f0d2f4a37ae880ca2b05e236c9d35215f9166e74 Author: Benno Schulenberg Date: Sun Feb 9 09:23:18 2025 +0100 unshare: don't use "=" before a required option argument The "=" is not needed, is inconsistent with the presentation of the other options that require an argument, and trying to use "=" with the equivalent short option would lead to failure. Signed-off-by: Benno Schulenberg sys-utils/unshare.1.adoc | 14 +++++++------- sys-utils/unshare.c | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) commit 0ec592073bd6a5c9e8bab4fa2f7c163d35d16e94 Author: Benno Schulenberg Date: Sun Feb 9 09:23:17 2025 +0100 setpriv: make message for failing PR_GET_PDEATHSIG the same as the other Signed-off-by: Benno Schulenberg sys-utils/setpriv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a4436c7bf07f98a6381c7dfa2ab3f9a415f9c479 Merge: 493b8a935 c389f166e Author: Karel Zak Date: Mon Feb 10 11:07:50 2025 +0100 Merge branch 'ci-s390x-workaround' of https://github.com/mrc0mmand/util-linux * 'ci-s390x-workaround' of https://github.com/mrc0mmand/util-linux: ci: temporarily switch the alt-arch job worker to Ubuntu 22.04 commit c389f166e5c35e3a7d91205997b75bec5d4353fb Author: Frantisek Sumsal Date: Fri Feb 7 09:47:06 2025 +0100 ci: temporarily switch the alt-arch job worker to Ubuntu 22.04 Using Ubuntu 24.04 on the worker causes random segfaults in s390x containers using qemu-user-static. Let's switch this, temporarily, to Ubuntu 22.04 which doesn't seem to have this issue. Note: the coverage shouldn't change, since the "inner" alt-arch containers still use "ubuntu-latest" (24.04 ATTOW). .github/workflows/cibuild.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 493b8a935a162c78d3ee30ac5f5905877625d513 Author: Frantisek Sumsal Date: Thu Feb 6 19:44:43 2025 +0100 meson: define have_linux_blkzoned_h Follow-up for 92ea18aaa31120ebedefc389ca6be4eca9a81117. meson.build | 2 ++ 1 file changed, 2 insertions(+) commit d6b6d328c43858ba1383b5b7f250820be6718cc7 Merge: 92ea18aaa 672bfceaa Author: Karel Zak Date: Thu Feb 6 16:34:58 2025 +0100 Merge branch 'PR/autotools-man-common' of https://github.com/karelzak/util-linux-work * 'PR/autotools-man-common' of https://github.com/karelzak/util-linux-work: autotools: always add man-common/ to EXTRA_DIST commit 92ea18aaa31120ebedefc389ca6be4eca9a81117 Author: Karel Zak Date: Thu Feb 6 16:33:06 2025 +0100 meson: check for blkzoned.h Signed-off-by: Karel Zak meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit eb9fd997c117c89d79b3033c414ac6168eb61749 Merge: e96a7c9d9 03840481a Author: Karel Zak Date: Thu Feb 6 13:08:28 2025 +0100 Merge branch 'INVARIANT_RESULT-in-lscpu-virt.c' of https://github.com/AntonMoryakov/util-linux * 'INVARIANT_RESULT-in-lscpu-virt.c' of https://github.com/AntonMoryakov/util-linux: sys-utils: remove redundant comparison in read_hypervisor_dmi in lscpu-virt.c commit 672bfceaaaf7b7a38d989016b64ad2ed67cc0f27 Author: Karel Zak Date: Thu Feb 6 13:04:13 2025 +0100 autotools: always add man-common/ to EXTRA_DIST Addresses: https://github.com/util-linux/util-linux/issues/3401 Signed-off-by: Karel Zak Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 03840481a51aa9cfe7e88d85b8777ad65919888a Author: Anton Moryakov Date: Thu Feb 6 02:42:23 2025 +0300 sys-utils: remove redundant comparison in read_hypervisor_dmi in lscpu-virt.c sys-utils/lscpu-virt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit e96a7c9d96170ca961acf9f352d467d77acfedd6 Author: Karel Zak Date: Tue Feb 4 10:10:57 2025 +0100 include/debug: Relicense to Public Domain After reaching an agreement with Ondrej Oprala, we have decided to change the license of debug.h and debugobj.h from LGPL to Public Domain. This change is more suitable for the files in the include/ directory of util-linux. CC: Ondrej Oprala Signed-off-by: Karel Zak include/debug.h | 9 ++------- include/debugobj.h | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) commit d6d7d09ffe168cd99be900ed99bf1eeadbac4dae Merge: de634c3c7 8694c4215 Author: Karel Zak Date: Tue Feb 4 10:06:22 2025 +0100 Merge branch 'PR/Benno-text-fixes' of https://github.com/karelzak/util-linux-work * 'PR/Benno-text-fixes' of https://github.com/karelzak/util-linux-work: setpriv: describe --groups more correctly in the usage text setpriv: consistently use "" to indicate a list of capabilities readprofile: put two things that belong together into a single message lsmem: make an error message identical to one used in seven other places logger: grammarize the description of --socket-errors in the man page commit de634c3c730051d45034dd5ac33ae92170c29c23 Merge: 32098bd38 533c4210b Author: Karel Zak Date: Tue Feb 4 10:05:48 2025 +0100 Merge branch 'PR/lscpu-min-freq' of https://github.com/karelzak/util-linux-work * 'PR/lscpu-min-freq' of https://github.com/karelzak/util-linux-work: lscpu: skip frequencies of 0 MHz when getting minmhz commit 32098bd38f11dc912cb759fc20151ff6ec453651 Author: Thomas Weißschuh Date: Mon Feb 3 21:46:13 2025 +0100 lib/colors: fix fallback to system directory The current check relies on "*sfile" to recognize if a configuration has been found in the current directory. However this condition is only true for "type == UL_COLORFILE_SCHEME", breaking the .enable and .disable configurations. Instead reorder the logic a bit so that any valid configuration returns rc == 0. Reported-by: Axel Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1094283 Reported-by: Chris Hofstaedtler Link: https://lore.kernel.org/util-linux/Z5a08yD10L1J8AIa@per.namespace.at/ Tested-by: Chris Hofstaedtler Fixes: 4bdf22803f9a ("lib/colors: ensure fallback to system directory") Signed-off-by: Thomas Weißschuh lib/colors.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit abcca578bd4be85d8e4c9aebf847781b55339d1a Author: Prasanna Paithankar Date: Mon Feb 3 18:50:42 2025 +0530 Fix CodeQL warning Signed-off-by: Prasanna Paithankar sys-utils/lsipc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 64ae7b75c040e8f7ff0ceab5a6a75df160d8c891 Author: Prasanna Paithankar Date: Mon Feb 3 18:37:01 2025 +0530 sys-utils: warns if mqueue fs is not mounted - Add a check to see if mqueue fs is mounted before using it, and warn the user if it is not mounted. - bash completion for ipcrm is fixed to make it independent of awk. Signed-off-by: Prasanna Paithankar bash-completion/ipcrm | 18 +++++++++--------- meson.build | 6 +++--- sys-utils/Makemodule.am | 10 ++++------ sys-utils/ipcutils.c | 49 ++++++++----------------------------------------- sys-utils/ipcutils.h | 1 - sys-utils/lsipc.c | 18 ++++++++---------- 6 files changed, 32 insertions(+), 70 deletions(-) commit 4dc41fc9508f87b36daa679a8d6a677d24e757a0 Merge: ff59272f8 1760fd116 Author: Karel Zak Date: Mon Feb 3 13:34:52 2025 +0100 Merge branch 'PR/libmount-mesgs-idmapping' of https://github.com/karelzak/util-linux-work * 'PR/libmount-mesgs-idmapping' of https://github.com/karelzak/util-linux-work: libmount: improve error messages in ID-mapping hook libmount: add private mnt_context_read_mesgs() libmount: reduce size of syscall-failed message commit 533c4210b197cb59c323fbb943d6f3bcd8799579 Author: Ricardo Neri Date: Thu Jan 30 19:25:32 2025 -0800 lscpu: skip frequencies of 0 MHz when getting minmhz read_mhz() sets cpu->mhz_min_freq from /sys/devices/system/cpu/cpuN/ cpufreq/cpuinfo_min_freq. The file read fails if cpuN is offline and cpu->mhz_min_freq is left as 0. 0 MHz is treated as invalid frequency. lsblk_cputype_get_minmhz() iterates through all possible CPUs to find the minimum frequency. If one or more CPUs are offline, the minimum frequency will be 0. This is reflected in the output of lscpu: $ ./lscpu | grep min CPU min MHz: 0.0000 Ignore 0-MHz frequencies to find the actual minimum frequency: $ ./lscpu | grep min CPU min MHz: 1200.0000 Reported-by: Thangamani Krishnan Signed-off-by: Ricardo Neri sys-utils/lscpu-topology.c | 2 ++ 1 file changed, 2 insertions(+) commit 8694c4215641e6cd05d8400f26a28a33fbd6058d Author: Benno Schulenberg Date: Sun Feb 2 17:38:09 2025 +0100 setpriv: describe --groups more correctly in the usage text Signed-off-by: Benno Schulenberg sys-utils/setpriv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f4828e49e19125674bd054871b658bb4e0d68a46 Author: Benno Schulenberg Date: Sun Feb 2 17:06:23 2025 +0100 setpriv: consistently use "" to indicate a list of capabilities The existing "" did not indicate that each capability name must be preceded by "+" or "-". Also, to indicate that the list needs to be separated by commas, one would have to use "[,...]", not "". So... instead of trying to cram all that info in there, just say "", like for --bounding-set. Signed-off-by: Benno Schulenberg sys-utils/setpriv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 192365afb91fde23aacf02c2f0e18335725114d3 Author: Benno Schulenberg Date: Thu Jan 30 16:50:48 2025 +0100 readprofile: put two things that belong together into a single message Signed-off-by: Benno Schulenberg sys-utils/readprofile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 3fbcd854b27f98fd68cc9a9ae0f5227cbd5c4c76 Author: Benno Schulenberg Date: Thu Jan 30 15:27:27 2025 +0100 lsmem: make an error message identical to one used in seven other places Signed-off-by: Benno Schulenberg sys-utils/lsmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 853cdd0ab6d2f1d94291c79bf161dc02e990f587 Author: Benno Schulenberg Date: Thu Jan 30 15:11:24 2025 +0100 logger: grammarize the description of --socket-errors in the man page Signed-off-by: Benno Schulenberg misc-utils/logger.1.adoc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit ff59272f8973127d00383976e687279127eaab80 Merge: 5c4fc08f1 2624b0c19 Author: Karel Zak Date: Mon Feb 3 13:21:51 2025 +0100 Merge branch 'PR/mkswap-nocow' of https://github.com/karelzak/util-linux-work * 'PR/mkswap-nocow' of https://github.com/karelzak/util-linux-work: mkswap: remove unused variable for non-nocow systems mkswap: add features list to --version output mkswap: fix includes mkswap: improve --file option for use on btrfs commit 1760fd11641bc60d1a0f62583c9e5b63ddd7d8f2 Author: Karel Zak Date: Tue Jan 28 13:23:15 2025 +0100 libmount: improve error messages in ID-mapping hook * save failed syscall status * allow to read messages from kernel * add proper error messages if kernel is silent OLD: mount: /foo: mount failed: Unknown error 5013. NEW: mount: /foo: mount_setattr() failed: cannot set ID-mapping: Operation not permitted. Addresses: https://github.com/util-linux/util-linux/issues/3373 Signed-off-by: Karel Zak libmount/src/hook_idmap.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) commit 8369f2a7c46df5b4813f39c5f2f1e60c35500f75 Author: Karel Zak Date: Tue Jan 28 13:13:02 2025 +0100 libmount: add private mnt_context_read_mesgs() Add a more generic function for reading messages from a file descriptor. The new mount API is already used in multiple files. Signed-off-by: Karel Zak libmount/src/context.c | 33 +++++++++++++++++++++++++++++++++ libmount/src/hook_mount.c | 21 +-------------------- libmount/src/mountP.h | 1 + 3 files changed, 35 insertions(+), 20 deletions(-) commit 14233b28c0169d89d224065c805368893a097a6b Author: Karel Zak Date: Tue Jan 28 13:10:30 2025 +0100 libmount: reduce size of syscall-failed message The current version is too long. OLD: mount: /mnt/test/fileA: mount_setattr system call failed: cannot set ID-mapping: Operation not permitted. NEW: mount: /mnt/test/fileA: mount_setattr() failed: cannot set ID-mapping: Operation not permitted. Signed-off-by: Karel Zak libmount/src/context_mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 5c4fc08f140af5a432d53bd41fce22f4c6fb0dba Merge: 7ee710cf6 ddb558e87 Author: Karel Zak Date: Mon Feb 3 12:32:46 2025 +0100 Merge branch 'PR/dmesg-notime' of https://github.com/karelzak/util-linux-work * 'PR/dmesg-notime' of https://github.com/karelzak/util-linux-work: dmesg: fix --notime use commit 2624b0c191027020f52ac000d9e5da1c00a0190f Author: Karel Zak Date: Mon Feb 3 12:11:24 2025 +0100 mkswap: remove unused variable for non-nocow systems Signed-off-by: Karel Zak disk-utils/mkswap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 8ea0649193bab545f80bbc4d23735df774e0fc80 Author: Karel Zak Date: Mon Feb 3 12:03:10 2025 +0100 mkswap: add features list to --version output * Define USE_NOCOW to simplify code * Add array of features Signed-off-by: Karel Zak disk-utils/mkswap.c | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) commit 457c112475e9cbce4479214652d4fa699bc281ba Author: Karel Zak Date: Mon Feb 3 11:48:23 2025 +0100 mkswap: fix includes It is preferable to use #ifdefs in code that relies on available features, rather than solely depending on the presence of header files. This is especially important if the functionality of FIEMAP relies on multiple include files. Additionally, note that we also need linux/fs.h for S_NOCOW_FL, regardless of FIEMAP. Signed-off-by: Karel Zak disk-utils/mkswap.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit ddb558e87f96aac76c7d38701e61e89583d651a5 Author: Karel Zak Date: Mon Feb 3 11:29:44 2025 +0100 dmesg: fix --notime use The --notime command line option disables parsing of timestamps from kmsg. This is a bug because the timestamps can be used for operations other than just output. For example, they can be used for filters like --since (dmesg --since '1 day ago' --notime). Addresses: https://github.com/util-linux/util-linux/issues/3392 Signed-off-by: Karel Zak sys-utils/dmesg.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) commit 0f5e95f22866619c61eed8549c71accc8ab24beb Author: Prasanna Paithankar Date: Sun Feb 2 23:37:44 2025 +0530 bash completions for IPC tools Signed-off-by: Prasanna Paithankar bash-completion/ipcmk | 13 ++++++++++++- bash-completion/ipcrm | 32 +++++++++++++++++++++++++------- bash-completion/lsipc | 9 +++++++++ sys-utils/ipcmk.1.adoc | 3 ++- sys-utils/ipcmk.c | 8 ++++---- sys-utils/ipcrm.c | 3 +++ 6 files changed, 55 insertions(+), 13 deletions(-) commit 7ee710cf63b8a4f5e34f1fbe2296b77649113b4a Author: Prasanna Paithankar Date: Sun Feb 2 22:34:20 2025 +0530 bash-completion: updated lsns bash completion bash-completion/lsns | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit ff0ac0f27dc3de7d250b2a69f6452bfeec104f8c Author: Eric Sandeen Date: Fri Jan 24 08:37:12 2025 -0600 blkid: allow up to 64k erofs block sizes Today, mkfs.erofs defaults to page size for block size, but blkid does not recognize this. Increase the limit to 64k. Reviewed-by: Gao Xiang Signed-off-by: Eric Sandeen Signed-off-by: Karel Zak libblkid/src/superblocks/erofs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f30159e9b0ba538f7a8ebb819c23f736c01a887f Merge: fd546122a bec26c732 Author: Karel Zak Date: Thu Jan 30 09:50:02 2025 +0100 Merge branch 'PR/libuuid-pthread' of https://github.com/karelzak/util-linux-work * 'PR/libuuid-pthread' of https://github.com/karelzak/util-linux-work: libuuid: support non-cached scenarios (when -lpthread is unavailable) meson: add HAVE_LIBPTHREAD autotools: define HAVE_LIBPTHREAD and PTHREAD_LIBS c.h: consolidate THREAD_LOCAL. commit fd546122addc451083af32f05b7d6f242061f0a0 Merge: aba045c51 fcf6d9a4f Author: Karel Zak Date: Thu Jan 30 09:49:22 2025 +0100 Merge branch 'lslogins' of https://github.com/thkukuk/util-linux * 'lslogins' of https://github.com/thkukuk/util-linux: lslogins: don't ignore stat error commit aba045c5175f2c8a6ae69c2c0d300f0548e97a5f Merge: 12053b1a6 7a9bc47e6 Author: Karel Zak Date: Thu Jan 30 09:42:57 2025 +0100 Merge branch 'PR/github-configure-fast' of https://github.com/karelzak/util-linux-work * 'PR/github-configure-fast' of https://github.com/karelzak/util-linux-work: github: enable verbose output, don't generate docs default commit 12053b1a674384e95bc70b0ee9521851cd2b40cc Author: Karel Zak Date: Wed Jan 29 12:38:46 2025 +0100 scriptreplay: fix compiler warning compiler warning: expected 'struct timeval * restrict' but argument is of type 'const struct timeval *' On Linux, select() modifies timeout, so the timeout cannot be 'const'. Signed-off-by: Karel Zak term-utils/scriptreplay.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit ed717e5db55c78ea0b8a36e438c55af4281907c4 Merge: 808797c82 8a659f05c Author: Karel Zak Date: Thu Jan 30 09:39:28 2025 +0100 Merge branch 'PR/build-widechar' of https://github.com/karelzak/util-linux-work * 'PR/build-widechar' of https://github.com/karelzak/util-linux-work: Fix --disable-widechar compile warnings commit ec3ecd0141c62a93a8ff221746251e96bdbe2975 Author: Karel Zak Date: Wed Jan 29 12:05:10 2025 +0100 mkswap: improve --file option for use on btrfs We will now try to set the "nocow" attribute, but will ignore it if it is not supported. Suggested-by: Zbigniew Jędrzejewski-Szmek Signed-off-by: Karel Zak disk-utils/mkswap.8.adoc | 2 ++ disk-utils/mkswap.c | 18 +++++++++++++++++- sys-utils/swapon.8.adoc | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) commit 808797c82b80760be5145dfe51b92d407c9ee316 Author: Karel Zak Date: Wed Jan 29 13:31:10 2025 +0100 logger: (man) fix --socket-error Signed-off-by: Karel Zak misc-utils/logger.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c50a808a45ace1a9ecde6ae293d829ff014d832d Merge: 4a3813c56 4228bb56e Author: Karel Zak Date: Wed Jan 29 13:20:07 2025 +0100 Merge branch 'PR/lscpu-cols-desc' of https://github.com/karelzak/util-linux-work * 'PR/lscpu-cols-desc' of https://github.com/karelzak/util-linux-work: lscpu: make three column descriptions more grammatical commit 4a3813c565a65d23844db8abb679aa22aef72f98 Author: Benno Schulenberg Date: Mon Jan 27 16:21:44 2025 +0100 blkid: say "override" instead of "overwrite" in the --help text The `blkid` tool does not write anything to the probed device, so seeing "overwrite" in the usage text was somewhat disconcerting. Signed-off-by: Benno Schulenberg misc-utils/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 991f5b1f7095b9bf340a90922bd58849da695fb9 Author: Benno Schulenberg Date: Mon Jan 27 12:08:25 2025 +0100 logger: do not show arguments of --socket-errors as optional in --help Also, show them without angular brackets, as they are literal values. Signed-off-by: Benno Schulenberg misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8a659f05cffd6b8beb3154dff74418993ae22ce3 Author: Marc Aurèle La France Date: Sun Jan 26 10:38:52 2025 -0700 Fix --disable-widechar compile warnings Fix warnings when compiling without wide char support. Marc. lib/mbsedit.c | 2 +- text-utils/pg.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) commit 4228bb56eb4c7a1e2473899c615aab512b80c229 Author: Benno Schulenberg Date: Sun Jan 26 12:09:24 2025 +0100 lscpu: make three column descriptions more grammatical Change an adverb to an adjective, use the plural "lines", and use the plural form of the verb "have". Also, put a clarification between parentheses, and reshuffle it a bit for clarity. Signed-off-by: Benno Schulenberg sys-utils/lscpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 7a9bc47e6211f9b11b9f1537506965b6c77002b7 Author: Karel Zak Date: Tue Jan 28 12:09:37 2025 +0100 github: enable verbose output, don't generate docs default Generating all documentation (man pages, man page translations, and library API docs) is a very time-consuming task. It is also architecture-independent, as it involves text conversions using Python, Ruby, etc. It would be better to only do this once in CI and only when all other tasks have been successfully completed. This commit also enables verbose output for autotools to make the compiler command line visible in logs. * Add V=1 (verbose) for "make" command. * Add CONFIGUREFAST phase with disabled po-man, asciidoc, and gtk-doc. * Use full version CONFIGURE phase only for the distcheck CI job. Signed-off-by: Karel Zak .github/workflows/cibuild.sh | 15 ++++++++++++--- .github/workflows/cibuild.yml | 10 +++++----- 2 files changed, 17 insertions(+), 8 deletions(-) commit 27704d22e5c235019e02233803c1cbda1e2467ac Author: Prasanna Paithankar Date: Tue Jan 28 02:20:00 2025 +0530 sys-utils: fixed build system for POSIX IPC tools configure.ac | 7 +++++++ meson.build | 16 +++++++++++++--- sys-utils/Makemodule.am | 8 ++++---- sys-utils/ipcutils.c | 20 +++++++++++++++++--- sys-utils/lsipc.c | 2 +- 5 files changed, 42 insertions(+), 11 deletions(-) commit e903d2a2930a56b2e4d3b2aacf36db71ba626e68 Merge: 7e06d474b b85feb999 Author: Karel Zak Date: Mon Jan 27 17:51:09 2025 +0100 Merge branch 'posix-fallocate' of https://github.com/zeha/util-linux * 'posix-fallocate' of https://github.com/zeha/util-linux: fallocate: forbid --posix with special options meson: correctly detect posix_fallocate commit fcf6d9a4ffb72f5e6a39b9f090350ce196e81440 Author: Thorsten Kukuk Date: Fri Jan 24 17:06:48 2025 +0100 lslogins: don't ignore stat error Signed-off-by: Thorsten Kukuk login-utils/lslogins.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit bec26c732889b24fb6725e949e181bcf56d23c76 Author: Karel Zak Date: Mon Jan 27 14:28:36 2025 +0100 libuuid: support non-cached scenarios (when -lpthread is unavailable) This patch makes the dependence on pthread optional for libuuid. In certain cases, such as Buildroot Linux, uClibc-ng, and very low resource systems, libpthread may be unavailable. If libuuid is compiled without pthread, it will not use a local cache and will instead request a UUID from uuidd for each call. This may result in less efficient performance, but the UUIDs generated will still be unique and reliable. On minimalistic systems, it is highly likely that uuidd will not be installed, making this change important for portability and robust code. Addresses: https://github.com/util-linux/util-linux/pull/3375 Signed-off-by: Karel Zak libuuid/src/gen_uuid.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) commit 49e57bee467685b8cf044a6cae811a4f258eaadd Author: Karel Zak Date: Mon Jan 27 14:11:35 2025 +0100 meson: add HAVE_LIBPTHREAD Signed-off-by: Karel Zak meson.build | 1 + 1 file changed, 1 insertion(+) commit 103fac073880c52a94ce7a99ceef432062ceadf1 Author: Karel Zak Date: Mon Jan 27 14:01:38 2025 +0100 autotools: define HAVE_LIBPTHREAD and PTHREAD_LIBS Signed-off-by: Karel Zak configure.ac | 7 +++++++ libuuid/src/Makemodule.am | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) commit ee02bd19e4032f4ab14b3e452b0ae0f4ffdab326 Author: Karel Zak Date: Mon Jan 27 13:40:23 2025 +0100 c.h: consolidate THREAD_LOCAL. Let's define this macro in one place only. Signed-off-by: Karel Zak include/c.h | 11 +++++++++++ lib/randutils.c | 5 ----- libuuid/src/gen_uuid.c | 1 - 3 files changed, 11 insertions(+), 6 deletions(-) commit 1004b08cecabd9d4b15ba6d32e07f9e6d577a3a6 Author: Prasanna Paithankar Date: Sat Jan 25 17:45:12 2025 +0530 rectified long formatting error sys-utils/lsipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1a2c568b9d401a437e474ab492b233d25b7fe294 Author: Prasanna Paithankar Date: Sat Jan 25 17:17:11 2025 +0530 configured for meson build system meson.build | 3 +++ sys-utils/meson.build | 2 ++ 2 files changed, 5 insertions(+) commit 7e06d474b17b9b74aa8e4b8a42ab394c1f80b1fd Author: xiovwx Date: Thu Jan 23 11:06:27 2025 +0000 whereis: avoid accessing uninitialized memory misc-utils/whereis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7a16f0535469dbf94d631cf40ddc539322b6d291 Author: Prasanna Paithankar Date: Thu Jan 23 03:18:31 2025 +0530 added POSIX IPC paathnames; modified sys-utils/Makemodule.am include/pathnames.h | 11 +++++++++-- sys-utils/Makemodule.am | 16 ++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) commit c457ec945b4457418af6d5d80f4e6357b15cba9b Author: Prasanna Paithankar Date: Thu Jan 23 03:08:02 2025 +0530 added POSIX IPC support to lsipc, ipcrm, ipcmk sys-utils/ipcmk.1.adoc | 15 +- sys-utils/ipcmk.c | 93 +++++++++- sys-utils/ipcrm.1.adoc | 21 ++- sys-utils/ipcrm.c | 137 +++++++++++++-- sys-utils/ipcutils.c | 285 +++++++++++++++++++++++++++++++ sys-utils/ipcutils.h | 52 ++++++ sys-utils/lsipc.1.adoc | 22 ++- sys-utils/lsipc.c | 448 +++++++++++++++++++++++++++++++++++++++++++++---- 8 files changed, 1021 insertions(+), 52 deletions(-) commit b85feb999c505222d4815638344c8883d5e4ab58 Author: Chris Hofstaedtler Date: Tue Jan 21 18:58:48 2025 +0100 fallocate: forbid --posix with special options Option --posix picks posix_fallocate, which does not have a mode flag. Forbid using any options that set mode flags when also giving --posix. Signed-off-by: Chris Hofstaedtler sys-utils/fallocate.1.adoc | 2 +- sys-utils/fallocate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit eba4f374fe49e3369e58acedaaed3e4581b1ce80 Merge: ed1468484 25ec10771 Author: Karel Zak Date: Wed Jan 22 11:47:04 2025 +0100 Merge branch 'column-handle-osc8-links' of https://github.com/juarezr/util-linux * 'column-handle-osc8-links' of https://github.com/juarezr/util-linux: column: test ANSI SGR colors inside OSC 8 hyperlink escape codes column: handle ANSI SGR colors inside OSC 8 hyperlink escape codes column: test OSC 8 hyperlink escape sequences column: handle OSC 8 hyperlink escape sequences commit e0f63c2f1d84030ee0fd367900336bb3db84dd78 Author: Chris Hofstaedtler Date: Tue Jan 21 18:58:41 2025 +0100 meson: correctly detect posix_fallocate Signed-off-by: Chris Hofstaedtler meson.build | 1 + 1 file changed, 1 insertion(+) commit ed146848488735eb0e45dac003229effc13d2197 Merge: 20fd4690b f5bd825b9 Author: Karel Zak Date: Tue Jan 21 15:05:32 2025 +0100 Merge branch 'master' of https://github.com/AntonMoryakov/util-linux * 'master' of https://github.com/AntonMoryakov/util-linux: setpriv.c: fix memory leak in parse_groups function commit 20fd4690bc39834a5e0e4ec73bb61a38f0e9d012 Author: Karel Zak Date: Thu Jan 16 18:02:30 2025 +0100 autotools: add sysusers support Signed-off-by: Karel Zak Makefile.am | 4 +++- configure.ac | 14 ++++++++++++++ misc-utils/Makemodule.am | 4 +++- 3 files changed, 20 insertions(+), 2 deletions(-) commit 54faffe9f8e3bdac53cb654fb254b59d7a7002f4 Author: Karel Zak Date: Thu Jan 16 17:49:30 2025 +0100 meson: use tmpfilesdir pkg-config variable Signed-off-by: Karel Zak meson.build | 5 +++++ misc-utils/meson.build | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) commit ab7721b6cdb117c9c5cdee20fc5d1a8915f365bd Author: Karel Zak Date: Thu Jan 16 17:42:13 2025 +0100 meson: do not hardcode /var in uuidd-sysusers.conf. Let's follow the same approach as we use for other configuration files. Signed-off-by: Karel Zak misc-utils/.gitignore | 1 + misc-utils/meson.build | 7 ++++++- misc-utils/uuidd-sysusers.conf | 1 - misc-utils/uuidd-sysusers.conf.in | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) commit 25ec10771f7e11003e32a783dd5b60871346e36c Author: Juarez Rudsatz Date: Sun Jan 19 19:11:35 2025 -0300 column: test ANSI SGR colors inside OSC 8 hyperlink escape codes tests/expected/column/ansiescape | 2 +- tests/ts/column/files/ansiescape | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) commit b787803e17de115bf6a618d2242ac2cca4f3a380 Author: Juarez Rudsatz Date: Sun Jan 19 19:10:53 2025 -0300 column: handle ANSI SGR colors inside OSC 8 hyperlink escape codes text-utils/column.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) commit 38266f3c1b5ceda351fad52a5e8fe9e427e9ac79 Author: Juarez Rudsatz Date: Sun Jan 19 17:28:07 2025 -0300 column: test OSC 8 hyperlink escape sequences tests/expected/column/ansiescape | 7 ++++--- tests/ts/column/files/ansiescape | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) commit 9131a310e4081fba942cee23a42599805169ddc4 Author: Juarez Rudsatz Date: Sun Jan 19 17:26:54 2025 -0300 column: handle OSC 8 hyperlink escape sequences text-utils/column.c | 70 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 45 insertions(+), 25 deletions(-) commit f5bd825b9c187000d621f65af08b23a945a6cad8 Author: AntonMoryakov Date: Thu Jan 16 19:24:20 2025 +0300 setpriv.c: fix memory leak in parse_groups function The static analyzer flagged a memory leak in the parse_groups function. The memory allocated for 'buf' (via xstrdup) was not freed at the end of the function, leading to a memory leak. Changes: - Added free(buf) at the end of the function to release allocated memory. Triggers found by static analyzer Svace. Signed-off-by: Anton Moryakov sys-utils/setpriv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c05a1b8b577a2db634df91f75a6f6053fb3c50a9 Merge: c433ce41d 6dfa1b927 Author: Karel Zak Date: Thu Jan 16 17:22:53 2025 +0100 Merge branch 'uuiddd-sysusers' of https://github.com/keszybz/util-linux * 'uuiddd-sysusers' of https://github.com/keszybz/util-linux: lastlog2,uuidd: rename tmpfiles config file uuidd: add sysusers file commit c433ce41dcd56acab921b22c1b987def0e18eaf5 Merge: 6cf74a2b6 33c4a3f74 Author: Karel Zak Date: Thu Jan 16 17:11:49 2025 +0100 Merge branch 'PR/sulogin-locale' of https://github.com/karelzak/util-linux-work * 'PR/sulogin-locale' of https://github.com/karelzak/util-linux-work: sulogin: extend --version features list sulogin: fix POSIX locale use commit 6cf74a2b6dafdd5f7077b22d5b5ed5d0fb21df34 Merge: 1ce07db0c 930fed555 Author: Karel Zak Date: Thu Jan 16 17:11:21 2025 +0100 Merge branch 'master' of https://github.com/stanislav-brabec/util-linux * 'master' of https://github.com/stanislav-brabec/util-linux: Add fuse.portal to list of pseudo file systems commit 1ce07db0c1b2344c8259f16c2a153a3b3f8fc527 Author: Karel Zak Date: Thu Jan 16 17:10:25 2025 +0100 lsns: check for mnt_fs_get_target return value Signed-off-by: Karel Zak sys-utils/lsns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit fea7cbef366eec7dde16a5be9d77c523e83e24d5 Merge: 5ebe14055 0fabec8c7 Author: Karel Zak Date: Thu Jan 16 17:07:59 2025 +0100 Merge branch 'master' of https://github.com/AntonMoryakov/util-linux * 'master' of https://github.com/AntonMoryakov/util-linux: sys-utils: fix add NULL check for mnt_fs_get_target return value commit 5ebe1405511ee058c5802753debf7e49280e4aa5 Author: Karel Zak Date: Thu Jan 16 17:06:19 2025 +0100 lsfd: remove C++ comment Signed-off-by: Karel Zak lsfd-cmd/lsfd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 338fd8c7a26cd804ff90396d591c17423a00f366 Merge: 23901d227 a46fac4cc Author: Karel Zak Date: Thu Jan 16 17:02:51 2025 +0100 Merge branch 'patch-2' of https://github.com/hmaarrfk/util-linux * 'patch-2' of https://github.com/hmaarrfk/util-linux: refactor things to avoid an other header. Include errno.h within lsfd.c commit 33c4a3f74929a91ad721a3a9741d9e73f559ad0f Author: Karel Zak Date: Thu Jan 16 13:24:37 2025 +0100 sulogin: extend --version features list Signed-off-by: Karel Zak login-utils/sulogin.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit aa11f9a2e163a57455255b03a03bf841cbf5be72 Author: Karel Zak Date: Thu Jan 16 13:14:43 2025 +0100 sulogin: fix POSIX locale use In some cases, sulogin can set LC_CTYPE="POSIX" while retaining the original LC_MESSAGES. In this scenario, the gettext() function may not work as intended and sulogin returns "???" (for example for ja_JP.UTF-8). GNU gettext FAQ: This symptom occurs when the LC_CTYPE facet of the locale is not set; then gettext() doesn't know which character set to use, and converts all messages to ASCII, as far as possible. Addresses: https://issues.redhat.com/browse/RHEL-56983 Addresses: https://github.com/util-linux/util-linux/issues/2185 Signed-off-by: Karel Zak login-utils/sulogin.c | 3 +++ 1 file changed, 3 insertions(+) commit 6dfa1b92785bdf71cdf11be83d4820479cfabb69 Author: Zbigniew Jędrzejewski-Szmek Date: Wed Jan 15 22:36:58 2025 +0100 lastlog2,uuidd: rename tmpfiles config file We don't want 'tmpfiles' in the file name. misc-utils/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 3f0849f75cc0367694b9035e7cd0dea11ff59d77 Author: Zbigniew Jędrzejewski-Szmek Date: Wed Jan 15 22:10:16 2025 +0100 uuidd: add sysusers file This will allow the user to be created automatically and the scriptlets to create the user and group dropped from the spec file: https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers The config is equivalent to what the Fedora package does, i.e. a dynamically-allocated uid and gid, and an account with nologin as the shell. meson.build | 5 +++++ misc-utils/meson.build | 5 +++++ misc-utils/uuidd-sysusers.conf | 1 + 3 files changed, 11 insertions(+) commit 930fed5559cd55b59b1a5c68c854488e21425214 Author: Stanislav Brabec Date: Tue Jan 14 22:09:11 2025 +0100 Add fuse.portal to list of pseudo file systems Fixes output of findmnt --real (opensuse#1234736). Reported-by: Stephan Wefing Co-authored-by: Anthony Iliopoulos Signed-off-by: Stanislav Brabec libmount/src/utils.c | 1 + 1 file changed, 1 insertion(+) commit a46fac4cc00947b6b3ea7d94ee5ae2ba228407e1 Author: Mark Harfouche Date: Tue Jan 14 11:25:19 2025 -0500 refactor things to avoid an other header. lsfd-cmd/lsfd.c | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) commit 0fabec8c7fda554b79327d8713352e7a07539895 Author: AntonMoryakov Date: Tue Jan 14 18:06:49 2025 +0300 sys-utils: fix add NULL check for mnt_fs_get_target return value The static analyzer flagged a potential issue: the return value of mnt_fs_get_target(fs) could be NULL, but it was dereferenced without a check. This could lead to undefined behavior. Added a NULL check before using the tgt pointer. If tgt is NULL, the current iteration is skipped. ChanChanges: - Added if (!tgt) check before using tgt. Signed-off-by: Anton Moryakov sys-utils/lsns.c | 3 +++ 1 file changed, 3 insertions(+) commit 23901d227c6e948a9f3a413a5f3e0ca41bc8f8fa Merge: e05e62266 dfe1c4bc7 Author: Karel Zak Date: Tue Jan 14 10:31:58 2025 +0100 Merge branch 'PR/libblkid-save-memleak' of https://github.com/karelzak/util-linux-work * 'PR/libblkid-save-memleak' of https://github.com/karelzak/util-linux-work: libblkid: fix potential memory leaks commit e05e62266644ff7d0ef54e3785e33d201b08831d Merge: c94c7e003 6cde5ae68 Author: Karel Zak Date: Tue Jan 14 10:31:32 2025 +0100 Merge branch 'PR/non-linux' of https://github.com/karelzak/util-linux-work * 'PR/non-linux' of https://github.com/karelzak/util-linux-work: Fix non-Linux build commit c94c7e0034537de5cb93c42419b6505180164045 Merge: 8750af9cd 2388d066d Author: Karel Zak Date: Tue Jan 14 10:31:17 2025 +0100 Merge branch 'PR/hardlink-mem-issues2' of https://github.com/karelzak/util-linux-work * 'PR/hardlink-mem-issues2' of https://github.com/karelzak/util-linux-work: hardlink: fix memory corruption in read buffers commit 8750af9cdac8372cdc964d8d8dd71113881ce307 Merge: fc9c9385b 2e269ff4b Author: Karel Zak Date: Tue Jan 14 10:24:35 2025 +0100 Merge branch 'login-respect-dollar-home' of https://github.com/poettering/util-linux * 'login-respect-dollar-home' of https://github.com/poettering/util-linux: login: actually honour $HOME for chdir() commit 56bb5b9cf05a68c158fdc9f1b94c56a28231c42d Author: Mark Harfouche Date: Mon Jan 13 18:07:20 2025 -0500 Include errno.h within lsfd.c This is needed for ENOSYS to be defined libgcc: 14.2.0 ``` 2025-01-13T22:59:57.1752408Z misc-utils/lsfd.c: In function 'kcmp': 2025-01-13T22:59:57.1762407Z misc-utils/lsfd.c:66:9: error: 'errno' undeclared (first use in this function) 2025-01-13T22:59:57.1762947Z 66 | errno = ENOSYS; 2025-01-13T22:59:57.1770931Z | ^~~~~ 2025-01-13T22:59:57.1771263Z misc-utils/lsfd.c:40:1: note: 'errno' is defined in header ''; did you forget to '#include '? 2025-01-13T22:59:57.1771555Z 39 | #include 2025-01-13T22:59:57.1771767Z +++ |+#include 2025-01-13T22:59:57.1771955Z 40 | 2025-01-13T22:59:57.1772231Z misc-utils/lsfd.c:66:9: note: each undeclared identifier is reported only once for each function it appears in 2025-01-13T22:59:57.1772507Z 66 | errno = ENOSYS; 2025-01-13T22:59:57.1772684Z | ^~~~~ 2025-01-13T22:59:57.1779860Z misc-utils/lsfd.c:66:17: error: 'ENOSYS' undeclared (first use in this function) 2025-01-13T22:59:57.1780285Z 66 | errno = ENOSYS; 2025-01-13T22:59:57.1780499Z | ^~~~~~ 2025-01-13T22:59:57.2204441Z CC misc-utils/lsfd-lsfd-decode-file-flags.o 2025-01-13T22:59:57.2803898Z make[2]: *** [Makefile:13624: misc-utils/lsfd-lsfd.o] ``` lsfd-cmd/lsfd.c | 1 + 1 file changed, 1 insertion(+) commit 2e269ff4bc32cb61e1d576d4f932b4027f5bc2c8 Author: Lennart Poettering Date: Thu Jan 9 23:57:32 2025 +0100 login: actually honour $HOME for chdir() When login is almost done it chdir()'s into the user's home directory. It currently uses pwd->pw_dir, i.e the home dir actually assigned to the user. OTOH it explicitly allows overriding HOME (see comment in init_environ()), and explicitly imports PAM's env vars (which quite possibly contain $HOME) into its env block. This patch makes sure that HOME is *properly* overridable via the env var and via PAM: it actually honours it for the chdir(). (Background: I am working on a PAM module that under some conditions would like to redirect the home dir to some other dir, and while I can nicely set $HOME from the PAM module, it has not as much as effect as I wish, because whie the rest of userspace respects it login so far didn't and leaves the user in the wrong dir). include/logindefs.h | 2 +- lib/logindefs.c | 4 ++-- login-utils/login.c | 7 ++++--- login-utils/lslogins.c | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) commit 2388d066db0c7282382b1e48454cd17d4832994c Author: Karel Zak Date: Mon Jan 13 12:06:23 2025 +0100 hardlink: fix memory corruption in read buffers The size of the eq->buf_a and eq->buf_b buffers depends on the readsize setting. This setting is modified by ul_fileeq_set_size(), so the buffers need to be resized accordingly. Deallocating is sufficient, as they will be allocated later with the correct size. Addresses: https://github.com/util-linux/util-linux/issues/3330 Signed-off-by: Karel Zak lib/fileeq.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) commit 6cde5ae6812641811099960d2c377dd41c31c6cc Author: Samuel Thibault Date: Sun Jan 12 16:39:44 2025 +0100 Fix non-Linux build This fixes non-Linux builds, by: - making sfdisk discard option conditioned by availability of BLKDISCARD - defining and using blkid_probe_get_buffer only if O_DIRECT is available - always building src/fs_statmount.c and src/tab_listmount.c, they already contain proper conditions to make them void if support is not available. Signed-off-by: Samuel Thibault disk-utils/sfdisk.c | 7 +++++++ libblkid/src/probe.c | 2 ++ libblkid/src/superblocks/ext.c | 4 ++++ libmount/meson.build | 4 ++-- libmount/src/Makemodule.am | 4 ++-- 5 files changed, 17 insertions(+), 4 deletions(-) commit dfe1c4bc742ed3f53c06bb232ebc1f5fadd0881e Author: Karel Zak Date: Mon Jan 13 11:26:06 2025 +0100 libblkid: fix potential memory leaks Addresses: https://github.com/util-linux/util-linux/pull/3356 Signed-off-by: Karel Zak libblkid/src/save.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit fc9c9385b0d1bc06894c99472422c96490cbcfc3 Author: Karel Zak Date: Mon Jan 13 10:43:26 2025 +0100 Revert "libmount: exec mount helpers with posixly correct argument order" The change is not backwardly compatible, see https://github.com/util-linux/util-linux/issues/3355 This reverts 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, 27 insertions(+), 30 deletions(-) commit b4ea6459da5767de34fde33c5e2751788203b989 Merge: a5d0e6a87 e1190d466 Author: Karel Zak Date: Thu Jan 9 11:13:49 2025 +0100 Merge branch 'PR/libmount-statmount' of https://github.com/karelzak/util-linux-work * 'PR/libmount-statmount' of https://github.com/karelzak/util-linux-work: (40 commits) libmount: map unsupported LISTMOUNT_REVERSE to ENOSYS findmnt: add --id and --uniq-id options findmnt: improve --help output findmnt: improve reliability of match testing libmount: add mnt_table_find_[uniq]_id() function findmnt: add UNIQ-ID column findmnt: add docs for --kernel tests: add findmnt --kernel=listmount libmount: fix mnt_fs_match_target() libmount: improve fs->stmnt_done mask use libmount: improve how library generates fs->optstr findmnt: add --kernel=listmount findmnt: add optional argument to --kernel meson: fix after rebase libmount: remove unnecessary include test_sysinfo; fix fsopen() ifdef libmount: Add integer type headers to private header file libmount: use __unused__ for dummy get_mnt_id() libmount: update tests include/mount-api-utils: fix typo ... commit a5d0e6a87328049ecb8aab01a5d5248cb989f07d Author: Karel Zak Date: Tue Dec 3 19:16:11 2024 +0100 mount: print info and warning messages Signed-off-by: Karel Zak sys-utils/mount.c | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) commit 33c42f5b1728585c012f01121a6126e845e8e68b Author: Karel Zak Date: Tue Dec 3 18:56:41 2024 +0100 libmount: read all types of kernel messages Previously, libmount only read error messages from fsopen() file descriptor. This commit improves the library to read all messages and keep them in their original format (" ") in the library mount context. Applications can now read all messages by using mnt_context_get_mesgs(). Furthermore, private functions have been implemented to include new library-specific messages in the log. Currently, these messages are only managed in mnt_context_get_excode(), but it would be beneficial to relocate them to the appropriate locations where errors are triggered. In the future, mnt_context_get_excode() should only be utilized by basic applications that require an one error message. For more critical purposes (e.g. mount(8)), it will be recommended to utilize the messages array. The public function mnt_context_get_excode() has been modified to use the new functionality and provide messages in a backwardly compatible way. Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 2 + libmount/src/context.c | 82 +++++++++++++++++++++++-------------- libmount/src/context_mount.c | 48 ++++++++++++++++++---- libmount/src/hook_loopdev.c | 3 +- libmount/src/hook_mount.c | 18 ++++---- libmount/src/libmount.h.in | 3 ++ libmount/src/libmount.sym | 5 +++ libmount/src/mountP.h | 9 ++-- 8 files changed, 115 insertions(+), 55 deletions(-) commit df67bcc130daf634b190082cd8199e4ec64723ec Author: Karel Zak Date: Tue Dec 3 18:53:04 2024 +0100 Include/strutils: xstrncpy() returns the number of copied bytes Signed-off-by: Karel Zak include/strutils.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit e1190d466394fefaa89962b300332813e68bfe6c Author: Karel Zak Date: Wed Jan 8 10:51:02 2025 +0100 libmount: map unsupported LISTMOUNT_REVERSE to ENOSYS For testing purposes, report the missing LISTMOUNT_REVERSE as missing in the complete listmount() function. Signed-off-by: Karel Zak libmount/src/tab_listmount.c | 1 + tests/helpers/test_sysinfo.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit fef509751aa1cef52c0cc5b771cd3f6707c4c601 Author: Karel Zak Date: Mon Nov 11 15:39:07 2024 +0100 findmnt: add --id and --uniq-id options Signed-off-by: Karel Zak bash-completion/findmnt | 2 ++ misc-utils/findmnt.8.adoc | 6 ++++++ misc-utils/findmnt.c | 40 +++++++++++++++++++++++++++++++++++++--- 3 files changed, 45 insertions(+), 3 deletions(-) commit 97bae41f81cb313f8c73bf7e05c497a97829fdfa Author: Karel Zak Date: Mon Nov 11 15:05:59 2024 +0100 findmnt: improve --help output The current help output is quite lengthy. It would be beneficial to organize it into sections, such as data sources, data filters, and options. This would make it easier for users to navigate and understand the available features. Signed-off-by: Karel Zak misc-utils/findmnt.c | 48 +++++++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 21 deletions(-) commit 90b9ab56818d3bbcf7e23261003a66677b7cd391 Author: Karel Zak Date: Mon Nov 11 14:52:53 2024 +0100 findmnt: improve reliability of match testing The "match" is defined if a string or void data is defined for the matching function. It is necessary to test both variants instead of relying solely on get_match(), which only returns string data. This patch introduces the is_defined_match() macro to hide this detail in the code and make it more readable. Signed-off-by: Karel Zak misc-utils/findmnt.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) commit b4cab6cc071034b7eff7dbc322300a83e2b49665 Author: Karel Zak Date: Mon Nov 11 12:45:00 2024 +0100 libmount: add mnt_table_find_[uniq]_id() function Addresses: https://github.com/util-linux/util-linux/issues/3275 Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 2 ++ libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 2 ++ libmount/src/tab.c | 61 +++++++++++++++++++++++++++++++++++++ libmount/src/utils.c | 4 +-- 5 files changed, 69 insertions(+), 2 deletions(-) commit 02aaf340e2aa3e5c911bfc2f0bad9bf0ff0128f2 Author: Karel Zak Date: Mon Nov 11 12:44:06 2024 +0100 findmnt: add UNIQ-ID column Signed-off-by: Karel Zak misc-utils/findmnt.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 8a5edb110cee8d3395866deff3803563fdc3722f Author: Karel Zak Date: Thu Oct 10 14:22:39 2024 +0200 findmnt: add docs for --kernel Signed-off-by: Karel Zak misc-utils/findmnt.8.adoc | 10 ++++++++-- misc-utils/findmnt.c | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) commit 1f6eaa2a178ecd97a12454605e7d346b47631519 Author: Karel Zak Date: Wed Oct 2 12:35:48 2024 +0200 tests: add findmnt --kernel=listmount * add listmount() and statmount() check to test_sysinfo * check for statmount fields by findmnt Signed-off-by: Karel Zak tests/helpers/test_sysinfo.c | 29 ++++++++++++++++++ tests/ts/findmnt/listmount | 70 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) commit 7a666fb196a5b2a9183b94f117b160f9448f21cb Author: Karel Zak Date: Wed Oct 2 12:15:40 2024 +0200 libmount: fix mnt_fs_match_target() Signed-off-by: Karel Zak libmount/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e89fd1026f451e8d3ac8f3eea2ab0eb3ee4997a2 Author: Karel Zak Date: Mon Sep 23 16:39:24 2024 +0200 libmount: improve fs->stmnt_done mask use It is possible that one field in the libmnt_fs struct requires fetching multiple statmount fields using multiple STATMOUNT_* mask items. This requires changes to the way the fs->stmnt_done mask is used. Signed-off-by: Karel Zak libmount/src/fs_statmount.c | 10 ++++++++-- libmount/src/mountP.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) commit e61d02d2777549db389d2db29ece93983127a8c6 Author: Karel Zak Date: Mon Sep 23 16:34:52 2024 +0200 libmount: improve how library generates fs->optstr * add missing STATMOUNT_* items * reuse merging code Signed-off-by: Karel Zak libmount/src/fs.c | 61 +++++++++++++++++++++++---------------------- libmount/src/fs_statmount.c | 23 ++++++++--------- 2 files changed, 42 insertions(+), 42 deletions(-) commit 6e30e2dbb94ea16a8eb2086e9993f401757ced51 Author: Karel Zak Date: Mon Sep 16 12:16:16 2024 +0200 findmnt: add --kernel=listmount Signed-off-by: Karel Zak libmount/src/tab_listmount.c | 1 + misc-utils/findmnt.c | 47 ++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 44 insertions(+), 4 deletions(-) commit 841d15e5d13dd0cc56e450c8dcc592211d66be27 Author: Karel Zak Date: Mon Sep 16 11:36:41 2024 +0200 findmnt: add optional argument to --kernel The number of methods for reading mount nodes from the kernel is increasing. We need a way to specify the method on the findmnt(1) command line. Currently, findmnt only supports the "mountinfo" method. Another method will be added in a separate commit. Signed-off-by: Karel Zak misc-utils/findmnt.c | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) commit 3dd652e27175edf3de1b7bdba30bbb1b51c51a83 Author: Karel Zak Date: Mon Sep 16 11:33:39 2024 +0200 meson: fix after rebase meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5d8cf1d2992886189234fbc28d94f379cdcaa5c2 Author: Karel Zak Date: Wed Aug 21 20:28:45 2024 +0200 libmount: remove unnecessary include Signed-off-by: Karel Zak libmount/samples/statmount.c | 2 -- 1 file changed, 2 deletions(-) commit 628fd4943389df779bc9b960714b1e9054c055a7 Author: Karel Zak Date: Wed Aug 21 15:26:07 2024 +0200 test_sysinfo; fix fsopen() ifdef Signed-off-by: Karel Zak tests/helpers/test_sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0fe91fb55ca49830971a57fb04c83def7644c2e1 Author: Karel Zak Date: Wed Aug 21 15:16:24 2024 +0200 libmount: Add integer type headers to private header file We use uintX_t in many places in the library, and it seems useful to include inttypes.h and stdint.h to have access to the PRI* macros everywhere. Signed-off-by: Karel Zak libmount/src/btrfs.c | 1 - libmount/src/fuzz.c | 1 - libmount/src/hook_idmap.c | 1 - libmount/src/hook_mount.c | 2 -- libmount/src/mountP.h | 3 +++ 5 files changed, 3 insertions(+), 5 deletions(-) commit ef33030c1afb065fb6e96dae34a212a1ee428ca6 Author: Karel Zak Date: Wed Aug 21 10:56:50 2024 +0200 libmount: use __unused__ for dummy get_mnt_id() Signed-off-by: Karel Zak libmount/src/utils.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit ee3a26d03fe7f10cf8a595790f7747bc2c7f98ca Author: Karel Zak Date: Wed Aug 21 10:04:02 2024 +0200 libmount: update tests Signed-off-by: Karel Zak libmount/src/fs.c | 1 - tests/expected/libmount/tabfiles-parse-mountinfo | 1 + tests/expected/libmount/tabfiles-parse-mountinfo-nosrc | 1 + tests/expected/libmount/tabfiles-parse-swaps | 3 --- 4 files changed, 2 insertions(+), 4 deletions(-) commit 36fed3c7fec4845901aadba107617cd90e9ea15c Author: Karel Zak Date: Wed Aug 21 09:17:08 2024 +0200 include/mount-api-utils: fix typo Signed-off-by: Karel Zak include/mount-api-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9e9d01328e76b387ad0fb9a1b364ec990375c113 Author: Karel Zak Date: Tue Aug 20 21:24:23 2024 +0200 libmount: ifdef STATMOUNT_* in sample Signed-off-by: Karel Zak libmount/samples/listmount.c | 2 ++ 1 file changed, 2 insertions(+) commit 39760d6e23efb3056874702624c002e2abf626e3 Author: Karel Zak Date: Tue Aug 20 21:10:17 2024 +0200 libmount: ifdef STATX_MNT_ID_UNIQUE Signed-off-by: Karel Zak libmount/src/utils.c | 4 ++++ 1 file changed, 4 insertions(+) commit ec7c579a737e257cd9acb6d052165daabbf9c8c4 Author: Karel Zak Date: Mon Aug 19 12:59:10 2024 +0200 libmount: ifdef listmount and statmount stuff * introduce mnt_fs_try_statmount() macro to simplify mnt_fs_fetch_statmount() calls * define dummy API functions when HAVE_STATMOUNT_API undefined Signed-off-by: Karel Zak libmount/src/fs.c | 111 +++++++++++++++++++++++-------------------- libmount/src/fs_statmount.c | 5 ++ libmount/src/mountP.h | 11 ++++- libmount/src/tab.c | 4 +- libmount/src/tab_listmount.c | 50 ++++++++++++++++++- 5 files changed, 124 insertions(+), 57 deletions(-) commit 677b61ad22d76b5e4645883995a4bf76f925776f Author: Karel Zak Date: Thu Aug 15 11:27:49 2024 +0200 libmount: fix typo in symbols list Signed-off-by: Karel Zak libmount/src/libmount.sym | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a7ae1537339873bdf9cdc9b2f1b84c89335e872f Author: Karel Zak Date: Thu Aug 15 11:19:30 2024 +0200 libmount: (docs) add missing api indexes Signed-off-by: Karel Zak libmount/docs/libmount-docs.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit 93169df13964f6579e26140e4dbd4d7bb642acfb Author: Karel Zak Date: Thu Aug 15 11:08:52 2024 +0200 libmount: add listmount() sample Signed-off-by: Karel Zak libmount/samples/Makemodule.am | 7 +- libmount/samples/listmount.c | 166 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 172 insertions(+), 1 deletion(-) commit 4e345324988656fabb767cc6043fdf51b2cbfa21 Author: Karel Zak Date: Thu Aug 15 10:26:31 2024 +0200 libmount: add support for listmount() The new listmount() syscall returns a list of unique mount IDs (just uint64_t per node, nothing else). It makes it very fast and efficient. * libmount supports two scenarios: - fetch the whole mount table by mnt_table_fetch_listmount(); this is an alternative to mnt_table_parse_file() - on demand; this mode is an extension to the current functionality, when enabled by mnt_table_enable_listmount(), then mnt_table_next_fs() will ask the kernel for data by listmount. If mnt_table_next_fs() iterates on the mount table in reverse order (MNT_ITER_BACKWARD), then it reads mount nodes from the kernel in reverse order too. The advantage of the on-demand mode is that on machines with a huge mount table (thousands of nodes), we can work with only a subset of the table (usually the last few nodes with the most recently mounted filesystems), and the kernel does not have to compose a complete huge table. This should be an improvement over the mountinfo file. The default is to read 512 nodes (IDs) by one listmount() call. This size can be altered by mnt_table_listmount_set_stepsiz(). The default size should be large enough for usual Linux machines. It's also possible to set a sub-tree by mnt_table_listmount_set_id() and a namespace by mnt_table_listmount_set_ns(). If libmnt_statmnt (on-demand statmount()) is assigned to the table, then all filesystems in the table are automatically assigned to this statmount() setup too. This allows for a completely on-demand scenario. tb = mnt_new_table(); sm = mnt_new_statmnt(); mnt_table_refer_statmnt(tb, sm); /* enable statmount() */ mnt_table_enable_listmount(tb, 1); /* enable listmount() */ while (mnt_table_next_fs(tb, itr, &fs) == 0) { if (strcmp("vfat", mnt_fs_get_fstype(fs)) == 0) print("%s", mnt_fs_get_fs_options(fs)); } In this example, mnt_table_next_fs() serves as the frontend for listmount() and mnt_fs_get_...() serves as the frontend for statmount(). The fs-options are read from kernel only for "vfat" filesystems. Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 5 + libmount/meson.build | 1 + libmount/src/Makemodule.am | 1 + libmount/src/libmount.h.in | 10 +- libmount/src/libmount.sym | 5 + libmount/src/mountP.h | 9 + libmount/src/tab.c | 23 ++- libmount/src/tab_listmount.c | 374 ++++++++++++++++++++++++++++++++++++ 8 files changed, 425 insertions(+), 3 deletions(-) commit 30e61b122f1ee89576d0f852ea93adc9e381d8fa Author: Karel Zak Date: Tue Aug 6 14:07:43 2024 +0200 include/timeutils: add time_diff() Eliminate redundant code and define time_diff() only once. Signed-off-by: Karel Zak include/timeutils.h | 4 ++++ libsmartcols/samples/continuous.c | 6 +----- sys-utils/dmesg.c | 5 ----- sys-utils/hwclock-rtc.c | 2 +- sys-utils/hwclock.c | 25 ++++++++----------------- sys-utils/hwclock.h | 3 --- 6 files changed, 14 insertions(+), 31 deletions(-) commit 6fc0b3281081093755f9f9633323ff580c662b52 Author: Karel Zak Date: Thu Aug 15 09:49:06 2024 +0200 libmount: fix __table_insert_fs() Signed-off-by: Karel Zak libmount/src/tab.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit 0affb7ae7b2ffdc66daab293e0f8289a133f3a9e Author: Karel Zak Date: Wed Aug 14 17:10:45 2024 +0200 libmount: add support for statmount() * introduce libmnt_statmnt object to store statmount mask and buffer (etc.) * add API for libmnt_fs to retrieve data from the kernel using statmount() * support on-demand statmount() from old mnt_fs_get_...() functions * allow libmnt_statmnt to be shared and reused between libmnt_fs instances * allow libmnt_statmnt to be assigned and used for filesystems in the table (assign libmnt_statmnt to the table to make it usable for all filesystems). * allow temporary disabling of fetching data from the kernel to avoid unwanted recursion in certain use-cases * support namespaces for statmount() based on the libmnt_fs namespace ID setting * allow user-defined statmount masks to overwrite the default * add a sample program Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 17 ++ libmount/meson.build | 1 + libmount/samples/Makemodule.am | 15 +- libmount/samples/statmount.c | 82 ++++++++ libmount/src/Makemodule.am | 1 + libmount/src/fs.c | 161 +++++++++++++-- libmount/src/fs_statmount.c | 389 ++++++++++++++++++++++++++++++++++++ libmount/src/libmount.h.in | 23 +++ libmount/src/libmount.sym | 13 +- libmount/src/mountP.h | 25 +++ libmount/src/tab.c | 46 +++++ 11 files changed, 750 insertions(+), 23 deletions(-) commit ff3f99c62ecad32925545cf7ae617231e17af19d Author: Karel Zak Date: Wed Aug 14 17:03:51 2024 +0200 include/c: add BIT() Signed-off-by: Karel Zak include/c.h | 2 ++ 1 file changed, 2 insertions(+) commit 4b1348c73793cd87522e1ffb48d086880f7b7b22 Author: Karel Zak Date: Wed Jun 12 13:14:18 2024 +0200 libmount: use unique ID in utab Signed-off-by: Karel Zak libmount/src/tab_parse.c | 19 +++++++++++++++++-- libmount/src/tab_update.c | 6 ++++-- 2 files changed, 21 insertions(+), 4 deletions(-) commit 2dfadc248ceb4f1874756cd11a93b268a6e553e2 Author: Karel Zak Date: Wed Aug 14 16:28:48 2024 +0200 libmount: add API to read ID by statx() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 1 + libmount/src/mountP.h | 2 ++ libmount/src/utils.c | 57 +++++++++++++++++++++++++++++++++++++ 5 files changed, 63 insertions(+) commit 57ab4dc3781765a182cbb63dd04b5f25a2d88724 Author: Karel Zak Date: Tue Jun 11 11:55:39 2024 +0200 libmount: Add API to get/set unique IDs Since the Linux kernel version 6.8, there are two types of IDs available: the "old" ID used in /proc/self/mountinfo, and a new 64-bit unique ID that is never recycled. This new ID is provided by the statx(STATX_MNT_ID_UNIQUE) and statmount() syscalls. Note that this patch only adds the API for retrieving these unique IDs, but the backing code has not been implemented yet. Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 3 ++ libmount/src/fs.c | 58 ++++++++++++++++++++++++++++++++++++- libmount/src/libmount.h.in | 7 +++++ libmount/src/libmount.sym | 6 ++++ libmount/src/mountP.h | 2 ++ 5 files changed, 75 insertions(+), 1 deletion(-) commit ba353afbeba6bcb7a07c447ee6832aa51eaf70ad Author: Karel Zak Date: Thu Jun 13 10:30:24 2024 +0200 libmount: remember parsed propagation This change allows propagation flags to be retained from another source, such as statmount(). Signed-off-by: Karel Zak libmount/src/fs.c | 29 +++++++++++++++-------------- libmount/src/mountP.h | 3 +++ 2 files changed, 18 insertions(+), 14 deletions(-) commit fa34e4166b6a33a43df7bd96b40079f92bb6f72c Author: Karel Zak Date: Thu Jul 18 11:26:13 2024 +0200 libmount: add statmount to features list Signed-off-by: Karel Zak libmount/src/version.c | 3 +++ 1 file changed, 3 insertions(+) commit c2c50a4b60d6d723aae1b3e0e80b0b9483fafe60 Author: Karel Zak Date: Mon Jul 22 14:12:37 2024 +0200 libmount: add mount-api-utils.h to mountP.h The new syscalls (statmount and fd-based mount) are already being utilized in various areas within the library. Therefore, it would be more efficient to include the syscalls header file in the private main library header file. Signed-off-by: Karel Zak libmount/src/context.c | 2 -- libmount/src/hook_idmap.c | 1 - libmount/src/hook_mount.c | 1 - libmount/src/hook_subdir.c | 1 - libmount/src/hooks.c | 1 - libmount/src/mountP.h | 2 ++ libmount/src/optlist.c | 1 - libmount/src/version.c | 1 - 8 files changed, 2 insertions(+), 8 deletions(-) commit ded434a63f3eee7fd7805b18d6c9bb912016c3c8 Author: Karel Zak Date: Wed Aug 14 15:33:44 2024 +0200 include/mount-api-utils: add statmount and listmount * Make the includes and ifdefs in the file more generic, to cover other interfaces besides just HAVE_MOUNTFD_API. * Add #ifdef HAVE_STATMOUNT_API to the header file. * Add fallbacks for statmount and listmount masks and flags. * Add a local definition of the structs mnt_id_req and statmount. We do not want to depend on kernel headers for now, as all of this is still under development. Installed headers may provide old versions, and a solution based on #ifdef will still require local definition of the structs. * Add wrappers for the statmount() and listmount() syscalls. * Add sys_statmount(), a wrapper for statmount() that reallocates the statmount buffer (on EOVERFLOW errno) if it is not large enough. Note that for now, we are directly using syscalls and do not require libc support for statmount() and listmount(). The kernel API is very extensible, as it is based on structs rather than syscall arguments. Therefore, I doubt we will see any libc support in the near future. The code uses the "ul_" prefix for locally defined variables and functions to prevent conflicts with kernel headers and potential future versions of libc. Signed-off-by: Karel Zak include/mount-api-utils.h | 217 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 212 insertions(+), 5 deletions(-) commit bc750375c3be262e994ac59cb09ed95dc7173cda Author: Karel Zak Date: Wed Aug 14 15:31:57 2024 +0200 meson: check for statmount and listmount syscalls ... keep statx stuff on one place. Signed-off-by: Karel Zak meson.build | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) commit 604eee0ee94f17e1d2d57e9461ffa100327a747c Author: Karel Zak Date: Wed Aug 14 15:26:17 2024 +0200 autotools: check for statmount and listmount syscalls Signed-off-by: Karel Zak configure.ac | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) commit 5b8e841f442139214161cc6b69ddfcc8c78965c6 Merge: 27c156835 138a37525 Author: Karel Zak Date: Wed Jan 8 13:35:30 2025 +0100 Merge branch 'pam' of https://github.com/kekek2/util-linux * 'pam' of https://github.com/kekek2/util-linux: meson: add checking build-findfs. meson: Fix checking options build-bits. meson: Check options for building lib_pam_misc commit 27c156835c73c6f1ea5cbc2d87545d6291f098ad Merge: 9a48f32b5 07b944dc3 Author: Karel Zak Date: Wed Jan 8 13:29:53 2025 +0100 Merge branch 'master' of https://github.com/mjsir911/util-linux * 'master' of https://github.com/mjsir911/util-linux: Fix table formatting commit 9a48f32b59e33e4da21d1e5ade20d3a5b1e1060c Merge: af0e8513b a1dcb396a Author: Karel Zak Date: Wed Jan 8 12:40:30 2025 +0100 Merge branch 'revise--test-cases' of https://github.com/masatake/util-linux * 'revise--test-cases' of https://github.com/masatake/util-linux: tests: (lsfd::mkfds_vsock) skip if diag socket for AF_VSOCK is unavailable tests: (test_mkfds::sockdiag) support AF_VSOCK family tests: (lsns::filter) skip if /proc/self/uid_map is not writable commit af0e8513b874eed01ac092d4480a8190c4929ac2 Merge: d8532ef29 528dbe188 Author: Karel Zak Date: Wed Jan 8 12:39:29 2025 +0100 Merge branch 'meson-disabler' of https://github.com/thesamesam/util-linux * 'meson-disabler' of https://github.com/thesamesam/util-linux: meson: add missing `is_disabler` checks commit d8532ef299c2dc5e13489df19fc483a67d45f8f5 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 .github/workflows/cibuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 528dbe18854fb16dba41af620ee2ca295936a550 Author: Sam James Date: Wed Jan 8 06:49:40 2025 +0000 meson: add missing `is_disabler` checks Noticed this when looking at why the `check` target isn't created with `-Dauto_features=disabled`. This doesn't fix that but it does fix a bunch of issues I noticed along the way after a hint from Eli Schwartz. meson.build | 133 +++++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 95 insertions(+), 38 deletions(-) commit a1dcb396ab03b378e9e9108362f8e9793b102a2c Author: Masatake YAMATO Date: Mon Jan 6 21:04:09 2025 +0900 tests: (lsfd::mkfds_vsock) skip if diag socket for AF_VSOCK is unavailable Signed-off-by: Masatake YAMATO tests/ts/lsfd/lsfd-functions.bash | 3 ++- tests/ts/lsfd/mkfds-vsock | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) commit 49fc981c3618516368eb7dfc4c074c383d3ec9e7 Author: Masatake YAMATO Date: Mon Jan 6 21:01:46 2025 +0900 tests: (test_mkfds::sockdiag) support AF_VSOCK family Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) commit 237f31e883445e6db91332612a102fc0aa19420d Author: Masatake YAMATO Date: Mon Jan 6 17:34:19 2025 +0900 tests: (lsns::filter) skip if /proc/self/uid_map is not writable On some platforms, lsns::filter test failed with the following message: +test_mkfds: failed to write to /proc/self/uid_map: -1: Operation not permitted This change is to skip the test case on such platforms. Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 2 +- tests/ts/lsfd/lsfd-functions.bash | 20 ++++++++++++++++++++ tests/ts/lsns/filter | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) commit 07b944dc3aab3d1981d1cd73d62a22296b07d165 Author: M Sirabella Date: Sun Jan 5 22:23:39 2025 -0800 Fix table formatting asciidoctor-2.0.23 was giving an error: asciidoctor: ERROR: fsck.minix.8.adoc: line 29: dropping cells from incomplete row detected end of table po-man/ro.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0a14cfc32abc62f1fd117891d523bd5349eda6e8 Merge: 33d4a41c4 4153f6ba3 Author: Karel Zak Date: Fri Jan 3 10:48:25 2025 +0100 Merge branch 'lsfd--vsock' of https://github.com/masatake/util-linux * 'lsfd--vsock' of https://github.com/masatake/util-linux: lsfd: support AF_VSOCK sockets tests: (lsfd-functions.bash) add a missing constant tests: (lsfd) quote '$' in patterns in a case/esac block commit 33d4a41c4b087073e03946f3746996e19516c926 Merge: 5a295e92f 70c1ffbdf Author: Karel Zak Date: Fri Jan 3 10:44:47 2025 +0100 Merge branch 'PR/hardlink-mem-issues' of https://github.com/karelzak/util-linux-work * 'PR/hardlink-mem-issues' of https://github.com/karelzak/util-linux-work: hardlink: fix memory corruption (size calculation) commit 5a295e92ff4a32cffd3c71d6c153bc70628be198 Merge: b6b8bf33d 52dc9260d Author: Karel Zak Date: Fri Jan 3 10:43:30 2025 +0100 Merge branch 'PR/fstab-space-notes' of https://github.com/karelzak/util-linux-work * 'PR/fstab-space-notes' of https://github.com/karelzak/util-linux-work: fstab.5 mount.8: add note about field separator commit b6b8bf33da4ddb8c97f254ab66cea19410a5447e Author: FeRD (Frank Dana) Date: Thu Jan 2 04:43:27 2025 -0500 libsmartcol docs: Format samples, lists, tables Use gtk-doc constructs to mark up formatted sections of documentation so that they display properly in the rendered output. - Enclose code samples with informalexample+programlisting tags - Enclose preformatted blocks of text (tables) in same - Present numbered lists in markdown format (leading 1., 2., etc.) so that they're translated into HTML ordered lists Signed-off-by: FeRD (Frank Dana) libsmartcols/src/column.c | 7 +++++-- libsmartcols/src/table.c | 51 ++++++++++++++++++++++++++++++----------------- 2 files changed, 38 insertions(+), 20 deletions(-) commit 4153f6ba35f19150c64d4e8814e2c635f85b5c28 Author: Masatake YAMATO Date: Tue Dec 24 00:38:25 2024 +0900 lsfd: support AF_VSOCK sockets Example output: # ./lsfd -p 121067 -Q "TYPE == 'AF_VSOCK'" COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME test_mkfds 121067 root 4 rw---- AF_VSOCK sockfs 10 39400798 state=listen type=stream laddr=local:12345 test_mkfds 121067 root 5 rw---- AF_VSOCK sockfs 10 39400799 state=established type=stream laddr=local:23456 raddr=local:12345 test_mkfds 121067 root 6 rw---- AF_VSOCK sockfs 10 39400800 state=established type=stream laddr=local:12345 raddr=local:23456 Signed-off-by: Masatake YAMATO configure.ac | 4 + lsfd-cmd/lsfd.1.adoc | 25 ++++- lsfd-cmd/lsfd.c | 18 ++++ lsfd-cmd/lsfd.h | 6 ++ lsfd-cmd/sock-xinfo.c | 216 ++++++++++++++++++++++++++++++++++++++ meson.build | 4 + tests/expected/lsfd/mkfds-vsock | 25 +++++ tests/helpers/test_mkfds.c | 173 ++++++++++++++++++++++++++++++ tests/ts/lsfd/lsfd-functions.bash | 24 +++++ tests/ts/lsfd/mkfds-vsock | 75 +++++++++++++ 10 files changed, 568 insertions(+), 2 deletions(-) commit ec55fe96e0970dc0a8bbc7421e7a6e6845686730 Author: Masatake YAMATO Date: Fri Dec 27 13:30:18 2024 +0900 tests: (lsfd-functions.bash) add a missing constant Signed-off-by: Masatake YAMATO tests/ts/lsfd/lsfd-functions.bash | 1 + 1 file changed, 1 insertion(+) commit 16a5abd780b9aa4aa6c70f32baabe2e8ae25fd87 Author: Masatake YAMATO Date: Sun Dec 29 17:44:29 2024 +0900 tests: (lsfd) quote '$' in patterns in a case/esac block Suggested by github-advanced-security bot. Signed-off-by: Masatake YAMATO tests/ts/lsfd/lsfd-functions.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 138a37525b3c91759b2dc89833b24961eb457eca Author: Alexander Shursha Date: Mon Dec 16 14:46:58 2024 +0300 meson: add checking build-findfs. On FreeBSD run --auto-features=disabled -Dbuild-libblkid=enabled -Dprogram-tests=false builded sbin/findfs Sponsored by: Future Crew, LLC meson.build | 6 ++++-- meson_options.txt | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) commit 6839e548a8e0a4a1fe612ab77c04593aabd519da Author: Alexander Shursha Date: Mon Dec 9 12:59:40 2024 +0300 meson: Fix checking options build-bits. On FreeBSD run --auto-features=disabled -Dbuild-libblkid=enabled -Dprogram-tests=false builded bin/bits Sponsored by: Future Crew, LLC meson.build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 874ab9ed3895a28bc691b441fe4e683326765786 Author: Alexander Shursha Date: Fri Dec 6 16:45:20 2024 +0300 meson: Check options for building lib_pam_misc On FreeBSD run --auto-features=disabled -Dbuild-libblkid=enabled -Dprogram-tests=false meson failure: meson.build:378:20: ERROR: C shared or static library 'pam_misc' not found Sponsored by: Future Crew, LLC meson.build | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit 70c1ffbdf4ecac30536e1af13764adbd883a161d 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 lib/fileeq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4e14b5731efcd703ad13e24362448c87cecb5424 Merge: 3645384e2 63102b844 Author: Karel Zak Date: Thu Dec 26 12:10:42 2024 +0100 Merge branch 'lsclocks/ptp' of https://github.com/t-8ch/util-linux * 'lsclocks/ptp' of https://github.com/t-8ch/util-linux: lsclocks: fix dynamic clock ids commit 3645384e2476cf44555ac93aaa0cff9c0b385571 Merge: c5e7d3b56 cd00741c0 Author: Karel Zak Date: Thu Dec 26 12:06:08 2024 +0100 Merge branch 'lsfd--hyperlinks' of https://github.com/masatake/util-linux * 'lsfd--hyperlinks' of https://github.com/masatake/util-linux: lsfd: don't enable hyperlinks for deleted files lsfd: enable hyperlinks only for regular files and directories lsfd: add --hyperlink command line option tests: (test_sysinfo) add a helper to call xgethostname lsfd: consolidate add_column() commit c5e7d3b5653f718abab8c6e6802a6cf1174dd693 Merge: 855c87c7b 9156b69f0 Author: Karel Zak Date: Thu Dec 26 12:03:02 2024 +0100 Merge branch 'lscpu_monaka_support' of https://github.com/Emi-Kisanuki/util-linux * 'lscpu_monaka_support' of https://github.com/Emi-Kisanuki/util-linux: lscpu: Add FUJITSU aarch64 MONAKA cpupart commit 855c87c7bdabb13ac7bf36c968fb2fd732b145b6 Merge: b602c56b5 a0ce085c2 Author: Karel Zak Date: Thu Dec 26 12:01:03 2024 +0100 Merge branch 'alpha-fincore' of https://github.com/glaubitz/util-linux * 'alpha-fincore' of https://github.com/glaubitz/util-linux: fincore: Use correct syscall number for cachestat on alpha commit b602c56b5544e20fa0e0d98550660fdb0b19a7d7 Merge: e37df30db 851a168e8 Author: Karel Zak Date: Thu Dec 26 11:58:23 2024 +0100 Merge branch 'alpha-fdisk-bsd' of https://github.com/glaubitz/util-linux * 'alpha-fdisk-bsd' of https://github.com/glaubitz/util-linux: tests: fdisk/bsd: Update expected output for alpha commit 52dc9260d469a3731f49c5a78b23f38f2314789e 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 sys-utils/fstab.5.adoc | 4 +++- sys-utils/mount.8.adoc | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) commit a0ce085c261a1d981bfa0acd4272b6ba77bfa3be 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 misc-utils/fincore.c | 4 ++++ 1 file changed, 4 insertions(+) commit 851a168e82a1264e2693acba5746ec30eee0c43b 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 tests/expected/fdisk/bsd_0_64_alpha.LE | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) commit 9156b69f05bc1519230d823c735cc69be9823de5 Author: Emi, Kisanuki Date: Tue Dec 24 06:27:51 2024 +0000 lscpu: Add FUJITSU aarch64 MONAKA cpupart Add an entry for FUJITSU aarch64 part MONAKA. Signed-off-by: Emi, Kisanuki sys-utils/lscpu-arm.c | 1 + 1 file changed, 1 insertion(+) commit 63102b844b8eac9f7304e2c32fba3f115b993fc6 Author: Thomas Weißschuh Date: Tue Dec 24 00:56:12 2024 +0100 lsclocks: fix dynamic clock ids Without an explicitly specified clock id, lsclocks would always use clock id 0 (CLOCK_REALTIME) for the dynamic/PTP clocks. Signed-off-by: Thomas Weißschuh misc-utils/lsclocks.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit e37df30dbb0b905ea2c89ca7112afb8c4353e24f Author: наб Date: Mon Dec 23 05:54:03 2024 +0100 fstrim: fix SYNOPSIS/usage (mandatory fstrim -A|-a|mountpoint) sys-utils/fstrim.8.adoc | 2 +- sys-utils/fstrim.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 25e62e5e57f2e8cd04a63c7a9499ce9c81047925 Merge: 8497235c9 386117d61 Author: Karel Zak Date: Mon Dec 16 11:44:21 2024 +0100 Merge branch 'gitignore-tests-failures' of https://github.com/LiviaMedeiros/util-linux * 'gitignore-tests-failures' of https://github.com/LiviaMedeiros/util-linux: gitignore: ignore `test/failures` commit 8497235c9be909857be38995ac0061d7a25b4357 Author: LiviaMedeiros Date: Mon Dec 16 11:40:37 2024 +0100 tests: add skips when IPv6 is not supported Before this change on systems with disabled IPv6 (e.g. `CONFIG_IPV6 is not set` in kernel config), `lsfd/mkfds-tcp6` and `lsfd/mkfds-udp6` were failing, and `lsfd/option-inet` was hanging forever, making it impossible to complete the tests. Signed-off-by: LiviaMedeiros Reviewed-by: Masatake YAMATO Signed-off-by: Karel Zak tests/functions.sh | 6 ++++++ tests/ts/lsfd/mkfds-tcp6 | 1 + tests/ts/lsfd/mkfds-udp6 | 1 + tests/ts/lsfd/option-inet | 1 + 4 files changed, 9 insertions(+) commit cd00741c05a3d026975499412c0b5fb7243acb48 Author: Masatake YAMATO Date: Sat Dec 14 01:16:25 2024 +0900 lsfd: don't enable hyperlinks for deleted files Signed-off-by: Masatake YAMATO lsfd-cmd/file.c | 8 +++++++- tests/expected/lsfd/option-hyperlink-deleted-file | 9 +++++++++ tests/ts/lsfd/option-hyperlink | 23 +++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) commit fd83959414211fc3d9bc3596fb7e3653fa64fcf0 Author: Masatake YAMATO Date: Sat Dec 7 02:17:36 2024 +0900 lsfd: enable hyperlinks only for regular files and directories Signed-off-by: Masatake YAMATO lsfd-cmd/file.c | 4 +++- tests/expected/lsfd/option-hyperlink-character-device | 6 ++++++ tests/ts/lsfd/option-hyperlink | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) commit d1cdc16f448f0411467d852384bb46aadf4197b0 Author: Karel Zak Date: Mon Dec 2 13:22:10 2024 +0100 lsfd: add --hyperlink command line option Co-Author: Masatake YAMTO Signed-off-by: Karel Zak lsfd-cmd/bdev.c | 3 +- lsfd-cmd/cdev.c | 3 +- lsfd-cmd/fifo.c | 3 +- lsfd-cmd/file.c | 27 +++++++--- lsfd-cmd/lsfd.1.adoc | 3 ++ lsfd-cmd/lsfd.c | 38 ++++++++++---- lsfd-cmd/lsfd.h | 4 +- lsfd-cmd/sock.c | 3 +- lsfd-cmd/unkn.c | 3 +- tests/expected/lsfd/option-hyperlink-regular-file | 10 ++++ tests/ts/lsfd/option-hyperlink | 61 +++++++++++++++++++++++ 11 files changed, 135 insertions(+), 23 deletions(-) commit b0098ad2305d10379188cc66d32e52155bea00f4 Author: Masatake YAMATO Date: Sat Dec 14 02:28:50 2024 +0900 tests: (test_sysinfo) add a helper to call xgethostname Signed-off-by: Masatake YAMATO tests/helpers/test_sysinfo.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 128334e5b5188151fb16ab7f52ca9884580a668d Author: Karel Zak Date: Mon Dec 2 12:50:29 2024 +0100 lsfd: consolidate add_column() * use only column IDs in add_column() callers * don't work with "struct colinfo" in callers * rename add_column_by_id() to add_hidden_column() as it's very special function used only by filters Signed-off-by: Karel Zak lsfd-cmd/lsfd.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) commit 386117d61a02b9ccc4b74905e92ad517837d7694 Author: LiviaMedeiros Date: Fri Dec 13 15:36:41 2024 +0800 gitignore: ignore `test/failures` .gitignore | 1 + 1 file changed, 1 insertion(+) commit 9a5bd4afe240dd8c7c687e7d7f437e61ba3a460e Merge: 4a36750ab 480682e64 Author: Karel Zak Date: Wed Dec 11 19:12:33 2024 +0100 Merge branch 'do-caps-memory-leak' of https://github.com/maks-mishin/util-linux * 'do-caps-memory-leak' of https://github.com/maks-mishin/util-linux: sys-utils: (setpriv): fix potential memory leak commit 4a36750ab393c83d67725c550d539e9dc1844876 Merge: e1bc7d391 d20fa0c81 Author: Karel Zak Date: Wed Dec 11 19:11:35 2024 +0100 Merge branch 'PR/libmount-erofs-regfile' of https://github.com/karelzak/util-linux-work * 'PR/libmount-erofs-regfile' of https://github.com/karelzak/util-linux-work: libmount: create EROFS loopdev only after ENOTBLK commit e1bc7d39174de89b7fcf36b0459b552ef41dbf73 Merge: e555740b4 5d0edf55b Author: Karel Zak Date: Wed Dec 11 18:54:04 2024 +0100 Merge branch 'PR/libsmartcols-hyperlinks' of https://github.com/karelzak/util-linux-work * 'PR/libsmartcols-hyperlinks' of https://github.com/karelzak/util-linux-work: lsblk: add --hyperlink command line option findmnt: add --hyperlink command line option include: add functions to implement --hyperlink libsmartcols: add support for terminal hyperlinks include/ttyutils: add terminal hyperlink ESC sequences commit e555740b45a9e54cae30817c56d40bc493077bb1 Author: Karel Zak Date: Tue Dec 10 12:26:22 2024 +0100 zramctl: add algorithm-params to bash-completion Signed-off-by: Karel Zak bash-completion/zramctl | 1 + 1 file changed, 1 insertion(+) commit 025ba217e8aa18952a9b245af4e74f6e02b2c60a Merge: 4909c8c3f 19c12e63b Author: Karel Zak Date: Tue Dec 10 12:24:59 2024 +0100 Merge branch 'ft-algorithm-params' of https://github.com/LiviaMedeiros/util-linux * 'ft-algorithm-params' of https://github.com/LiviaMedeiros/util-linux: zramctl: rename `--params` into `--algorithm-params` zramctl: add support for `algorithm_params` commit 4909c8c3f06206ff0ae8ffe55e59a76450a847b4 Merge: bdf3ff72e 4ff97ffbe Author: Karel Zak Date: Tue Dec 10 12:21:25 2024 +0100 Merge branch 'PR/lscpu-raw' of https://github.com/karelzak/util-linux-work * 'PR/lscpu-raw' of https://github.com/karelzak/util-linux-work: lscpu: use bool type in control structs lscpu: add --raw command line option commit 480682e6423308df28fed2c33770a9c400db6806 Author: Maks Mishin Date: Tue Dec 10 12:26:32 2024 +0300 sys-utils: (setpriv): fix potential memory leak Dynamic memory, referenced by 'my_caps' is allocated by calling function 'xstrdup' add then changed by calling of strsep function. The free(my_caps) call is incorrect if my_caps != NULL, and points to some place inside or outside the source string. Signed-off-by: Maks Mishin sys-utils/setpriv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit bdf3ff72efb3d09286eab737951f2eba196e07ab Author: Zhaoming Luo Date: Mon Dec 9 19:16:11 2024 +0800 hwclock: Support GNU Hurd * configure.ac: add HURD so it can be used in conditional in am files * sys-utils/Makemodule.am: compile hwclock for GNU Hurd * sys-utils/hwclock-rtc.c: compile for GNU Hurd * sys-utils/hwclock.c: compile for GNU Hurd * sys-utils/hwclock.h: compile for GNU Hurd Signed-off-by: Zhaoming Luo configure.ac | 6 +++++- sys-utils/Makemodule.am | 5 +++++ sys-utils/hwclock-rtc.c | 19 ++++++++++++++++++- sys-utils/hwclock.c | 2 +- sys-utils/hwclock.h | 4 +++- 5 files changed, 32 insertions(+), 4 deletions(-) commit 4ff97ffbe33f961e523bbdaa160e7fbb79f3dae1 Author: Karel Zak Date: Mon Dec 9 12:24:23 2024 +0100 lscpu: use bool type in control structs References: 63d7937180fcce4ea7fc1d2855872e464f06e779 Signed-off-by: Karel Zak sys-utils/lscpu.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) commit 1fc0e152664bee7082e9dd96eb4ec07e7b39cac9 Author: Karel Zak Date: Mon Dec 9 12:20:55 2024 +0100 lscpu: add --raw command line option In certain situations, data alignment is not desired. Addresses: https://github.com/util-linux/util-linux/pull/3255 Signed-off-by: Karel Zak bash-completion/lscpu | 1 + sys-utils/lscpu.1.adoc | 3 +++ sys-utils/lscpu.c | 11 ++++++++++- sys-utils/lscpu.h | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) commit 5763e74d3cea008c31bfd48bc88660a1a32ecfa6 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 ``` sys-utils/hwclock-cmos.c | 1 - 1 file changed, 1 deletion(-) commit 362912ce8fc617a157fd8505d3ee46a0be94a822 Author: Karel Zak Date: Mon Dec 9 10:35:18 2024 +0100 setterm: improve "bright %s" error message Addresses: https://github.com/util-linux/util-linux/pull/3312 Signed-off-by: Karel Zak term-utils/setterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5d0edf55b62f8f9ac9d58539014ea5c292df8291 Author: Karel Zak Date: Mon Dec 2 12:02:38 2024 +0100 lsblk: add --hyperlink command line option Signed-off-by: Karel Zak bash-completion/lsblk | 1 + misc-utils/lsblk-mnt.c | 7 ++++++- misc-utils/lsblk.8.adoc | 3 +++ misc-utils/lsblk.c | 16 +++++++++++++++- misc-utils/lsblk.h | 1 + 5 files changed, 26 insertions(+), 2 deletions(-) commit 8e54820c10a7e90316fc5e1abf52fbde9c4fd52d Author: Karel Zak Date: Thu Nov 28 13:49:51 2024 +0100 findmnt: add --hyperlink command line option Signed-off-by: Karel Zak bash-completion/findmnt | 1 + misc-utils/findmnt.8.adoc | 3 +++ misc-utils/findmnt.c | 23 +++++++++++++++++++---- misc-utils/findmnt.h | 1 + 4 files changed, 24 insertions(+), 4 deletions(-) commit 19c12e63b1c7a5bcf110bb9c41860101516bc38b Author: LiviaMedeiros Date: Mon Dec 9 17:16:30 2024 +0800 zramctl: rename `--params` into `--algorithm-params` sys-utils/zramctl.8.adoc | 2 +- sys-utils/zramctl.c | 50 ++++++++++++++++++++++++------------------------ 2 files changed, 26 insertions(+), 26 deletions(-) commit d20fa0c812107b4c1f9412d7e878b5c23a258c54 Author: Karel Zak Date: Fri Dec 6 12:41:09 2024 +0100 libmount: create EROFS loopdev only after ENOTBLK The EROFS can mount regular files with a filesystem image without the need for a loop device. For backward compatibility with previous versions of EROFS, a loop device will only be created if the first attempt to mount results ENOTBLK error. Addresses: https://github.com/util-linux/util-linux/pull/3288 Signed-off-by: Karel Zak libmount/src/context_mount.c | 35 ++++++++++++++++++++++++++ libmount/src/hook_loopdev.c | 59 +++++++++++++++++++++++++++++--------------- 2 files changed, 74 insertions(+), 20 deletions(-) commit fce366c4982273cd73df727338ed02d9f357b6c6 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 libblkid/src/partitions/gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c27f692414f584d74cab65dfd6ee8cc3e0079943 Author: LiviaMedeiros Date: Sat Dec 7 17:00:39 2024 +0800 zramctl: add support for `algorithm_params` sys-utils/zramctl.8.adoc | 3 +++ sys-utils/zramctl.c | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) commit 139980a5969bf851feda873fe918f34bee8fc055 Author: Karel Zak Date: Fri Dec 6 10:52:00 2024 +0100 zramctl: fix typo and memory leak Signed-off-by: Karel Zak sys-utils/zramctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e39941a754508a04c184c27c911a79a0480c097b Merge: a918c43e7 2d680b72a Author: Karel Zak Date: Fri Dec 6 10:05:25 2024 +0100 Merge branch 'posix-argument-order' of https://github.com/nilfsuser5678/util-linux * 'posix-argument-order' of https://github.com/nilfsuser5678/util-linux: libmount: exec mount helpers with posixly correct argument order libmount/context_mount: fix argument number comments commit a918c43e7d03351c410446aec5ed4ea6a31d250f Merge: e78bcb49a ee1a3f832 Author: Karel Zak Date: Fri Dec 6 10:03:59 2024 +0100 Merge branch 'PR/libmount-quotes' of https://github.com/karelzak/util-linux-work * 'PR/libmount-quotes' of https://github.com/karelzak/util-linux-work: mount: use ul_optstr_is_valid() include/optstr: improve optstr parsing commit e78bcb49ae9fba2f4d17a69e8a7b59d27c59a320 Merge: 06b4aeae0 384efc885 Author: Karel Zak Date: Fri Dec 6 10:03:41 2024 +0100 Merge branch 'options' of https://github.com/kekek2/util-linux * 'options' of https://github.com/kekek2/util-linux: meson: checking build_libsmartcols for manadocs. meson: checking build_libblkid for manadocs meson: add checking build-cal meson: fix checking build-sulogin meson: fix checking build-login meson: fix checking build-cramfs meson: Add build-hexdump option commit 384efc88519b5b7a85f460e1b8f69cff5391a45c Author: Alexander Shursha Date: Thu Nov 28 12:03:36 2024 +0300 meson: checking build_libsmartcols for manadocs. Sponsored by: Future Crew, LLC libsmartcols/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 04adbf87386f1e9ab29a171805082df98126eece Author: Alexander Shursha Date: Thu Nov 28 12:02:50 2024 +0300 meson: checking build_libblkid for manadocs Sponsored by: Future Crew, LLC meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit c6dbd6d3ba476da7638e52e3f8742f5594f6f894 Author: Alexander Shursha Date: Thu Nov 28 12:01:12 2024 +0300 meson: add checking build-cal Sponsored by: Future Crew, LLC meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit bdc4a2df34a0bd8db551e21c61f090537b49d2d6 Author: Alexander Shursha Date: Thu Nov 28 11:59:21 2024 +0300 meson: fix checking build-sulogin Sponsored by: Future Crew, LLC meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 879932f263703345dfe9a2d6d4898333e7d62a76 Author: Alexander Shursha Date: Thu Nov 28 11:58:21 2024 +0300 meson: fix checking build-login Sponsored by: Future Crew, LLC meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 10c5c519c9549ea91e1f933cf921378f519bf649 Author: Alexander Shursha Date: Thu Nov 28 11:56:51 2024 +0300 meson: fix checking build-cramfs Sponsored by: Future Crew, LLC meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3e3fea26081782b1098148c77496673e3d26ea7b Author: Alexander Shursha Date: Thu Nov 28 11:50:40 2024 +0300 meson: Add build-hexdump option Sponsored by: Future Crew, LLC meson.build | 25 ++++++++++++++----------- meson_options.txt | 2 ++ 2 files changed, 16 insertions(+), 11 deletions(-) commit 06b4aeae089ee3da0366c087cd21952390dade41 Merge: 7a04be616 483c9f38e Author: Karel Zak Date: Tue Dec 3 13:20:21 2024 +0100 Merge branch 'PR/libblkid-extN-direct' of https://github.com/karelzak/util-linux-work * 'PR/libblkid-extN-direct' of https://github.com/karelzak/util-linux-work: libblkid: fix spurious ext superblock checksum mismatches commit 7a04be61622fd7121e00bece416285024cfd2cc5 Merge: eb788e20b 8de2a4580 Author: Karel Zak Date: Tue Dec 3 13:19:57 2024 +0100 Merge branch 'PR/zram-add-COMP-RATIO' of https://github.com/karelzak/util-linux-work * 'PR/zram-add-COMP-RATIO' of https://github.com/karelzak/util-linux-work: zramctl: support -o+list notation zramctl: add COMP-RATIO column commit 2d680b72ac61644e4ba177e6569d8ca13580c248 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 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 d2f7e308f4507dadc213e293771d627a0fd41f9c Author: nilfsuser5678 <189666860+nilfsuser5678@users.noreply.github.com> Date: Fri Nov 29 17:22:57 2024 +0000 libmount/context_mount: fix argument number comments libmount/src/context_mount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 28453bcca770f897a6c36706148e105fb7e476ca Author: Karel Zak Date: Thu Nov 28 13:39:10 2024 +0100 include: add functions to implement --hyperlink * add xgethosturi() to allocate file://hostname * add hyperlinkwanted_or_err() to parse --hyperlink={never,always,auto} Signed-off-by: Karel Zak include/strutils.h | 3 +++ include/xalloc.h | 17 +++++++++++++++++ lib/strutils.c | 14 ++++++++++++++ 3 files changed, 34 insertions(+) commit c267c3ef882843f1465d9809f09914d0ccf09314 Author: Karel Zak Date: Thu Nov 28 12:35:37 2024 +0100 libsmartcols: add support for terminal hyperlinks Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 5 ++ libsmartcols/src/cell.c | 62 +++++++++++++++++++++++ libsmartcols/src/column.c | 40 +++++++++++++++ libsmartcols/src/libsmartcols.h.in | 7 +++ libsmartcols/src/libsmartcols.sym | 5 ++ libsmartcols/src/print.c | 77 +++++++++++++++++++++++++++-- libsmartcols/src/smartcolsP.h | 6 ++- 7 files changed, 198 insertions(+), 4 deletions(-) commit b3fbfa81fe98a92019a129c97b11d6ba42e9fdb5 Author: Karel Zak Date: Thu Nov 28 12:18:22 2024 +0100 include/ttyutils: add terminal hyperlink ESC sequences Signed-off-by: Karel Zak include/ttyutils.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) commit ee1a3f832a55e1f7ad4dd0f779df5aa29c345c64 Author: Karel Zak Date: Wed Nov 27 14:10:36 2024 +0100 mount: use ul_optstr_is_valid() Remove verification in mount(8) and instead use validation based on parser. Signed-off-by: Karel Zak sys-utils/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 02defa3e3f0c50171b5621af6426b58cd2c6c343 Author: Karel Zak Date: Wed Nov 27 14:02:25 2024 +0100 include/optstr: improve optstr parsing * make sure option cannot start with '=' * add ul_optstr_is_valid() * add regression test Signed-off-by: Karel Zak include/strutils.h | 1 + lib/strutils.c | 29 +++++++++++++++++++++++++++++ tests/expected/misc/optstr | 4 ++++ tests/ts/misc/optstr | 14 ++++++++++++++ 4 files changed, 48 insertions(+) commit eb788e20b82d0e1001a30867c71c8bfb2bb86819 Merge: 3b4d101e3 f2cf56c76 Author: Karel Zak Date: Tue Nov 26 11:10:01 2024 +0100 Merge branch 'NAS-130825-2-fix-coverity' of https://github.com/ixhamza/util-linux * 'NAS-130825-2-fix-coverity' of https://github.com/ixhamza/util-linux: libblkid: zfs: fix overflow warning [coverity scan] commit 483c9f38e377ff0b009f546a2c4ee91a1d61588c Author: Krister Johansen Date: Mon Nov 18 12:35:22 2024 -0800 libblkid: fix spurious ext superblock checksum mismatches Reads of ext superblocks can race with updates. If libblkid observes a checksum mismatch, re-read the superblock with O_DIRECT in order to get a consistent view of its contents. Only if the O_DIRECT read fails the checksum should it be reported to have failed. This fixes a problem where devices that were named by filesystem label failed to be found when systemd attempted to mount them on boot. The problem was caused by systemd-udevd using libblkid. If a read of a superblock resulted in a checksum mismatch, udev will remove the by-label links which result in the mount call failing to find the device. The checksum mismatch that was triggering the problem was spurious, and when we use O_DIRECT, or even perform a subsequent retry, the superblock is correctly read. This resulted in a failure to mount /boot in one out of every 2,000 or so attempts in our environment. e2fsprogs fixed[1] an identical version of this bug that afflicted resize2fs during online grow operations when run from cloud-init. The fix there was also to use O_DIRECT in order to read the superblock. This patch uses a similar approach: read the superblock with O_DIRECT in the case where a bad checksum is detected. [1] https://lore.kernel.org/linux-ext4/20230609042239.GA1436857@mit.edu/ Signed-off-by: Krister Johansen libblkid/src/blkidP.h | 5 +++++ libblkid/src/probe.c | 27 +++++++++++++++++++++++++++ libblkid/src/superblocks/ext.c | 22 ++++++++++++++++++++-- 3 files changed, 52 insertions(+), 2 deletions(-) commit 3b4d101e31cc20e30fa956503b813948f2bfb40d Merge: b186fabd4 2a562a5f5 Author: Karel Zak Date: Mon Nov 25 12:38:00 2024 +0100 Merge branch 'su-runuser-improvements' of https://github.com/calestyo/util-linux * 'su-runuser-improvements' of https://github.com/calestyo/util-linux: man pages: document `--user` option for `runuser` man pages: use `user` rather than `username` bash-completion: add `--pty` and `--no-pty` options for `su` and `runuser` bash-completion: complete `--user` only for `runuser`, not for `su` commit 8de2a45802ad1163a596bdd13463c18a4fb90b0f Author: Karel Zak Date: Mon Nov 25 12:25:53 2024 +0100 zramctl: support -o+list notation * use size_t for ncolumns * use string_add_to_idarray() Signed-off-by: Karel Zak sys-utils/zramctl.8.adoc | 2 ++ sys-utils/zramctl.c | 23 +++++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) commit 7b702606e3c72cf1dc007d805d7eeaa41257a4c5 Author: Karel Zak Date: Mon Nov 25 12:10:37 2024 +0100 zramctl: add COMP-RATIO column * Improve get_mm_stat() to return both numbers and strings. * Add get_mm_stat_number() and get_mm_stat_string() functions. * Add a new COL_COMPRATIO column. Based on https://github.com/util-linux/util-linux/pull/3293 Co-Author: davidemanini Signed-off-by: Karel Zak sys-utils/zramctl.c | 68 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 17 deletions(-) commit b186fabd466dd5b080ebabc3394a3d3b737e2efa Merge: 28c0c9acb 830d73c36 Author: Karel Zak Date: Mon Nov 25 11:41:30 2024 +0100 Merge branch 'PR/econf-readConfig' of https://github.com/karelzak/util-linux-work * 'PR/econf-readConfig' of https://github.com/karelzak/util-linux-work: login,libblkid: use econf_readConfig rather than deprecated econf_readDirs commit 28c0c9acb12d7c364cf19369f6d79b817319840b Merge: 1ac7d31fe 63d793718 Author: Karel Zak Date: Mon Nov 25 11:30:08 2024 +0100 Merge branch 'bitfield-eradication' of https://github.com/keszybz/util-linux * 'bitfield-eradication' of https://github.com/keszybz/util-linux: Drop pointless bitfields commit 1ac7d31fed0e1cc53b3d2f50537befc6d02bd073 Merge: 9c0029855 508fb0e7a Author: Karel Zak Date: Mon Nov 25 11:29:44 2024 +0100 Merge branch 'PR/agetty-issue' of https://github.com/karelzak/util-linux-work * 'PR/agetty-issue' of https://github.com/karelzak/util-linux-work: agetty: always read additional issue file locations commit 9c002985512ddbae8a95cf488c5a1cc780564b49 Merge: 9902cf42b 5e9711473 Author: Karel Zak Date: Mon Nov 25 11:29:29 2024 +0100 Merge branch 'PR/libmount-noloopdev' of https://github.com/karelzak/util-linux-work * 'PR/libmount-noloopdev' of https://github.com/karelzak/util-linux-work: libmount: support X-mount.noloop commit 9902cf42b8c5140aae163598c3228f2a63a417de 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 po-man/.gitignore | 3 +++ po-man/README.md | 2 ++ po-man/po4a.cfg | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) commit 2a562a5f5f56f6afb87ee7521f486248cb21aab6 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 login-utils/runuser.1.adoc | 3 +++ 1 file changed, 3 insertions(+) commit c8506371c644dc057d9f933cf2b0b48799a720bc 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 login-utils/runuser.1.adoc | 2 +- login-utils/su.1.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 4c60f0a0f80169840eba42d9a55bd2f920000921 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 bash-completion/su | 2 ++ 1 file changed, 2 insertions(+) commit 364f87a474ed9945e5b5527ebefe2bb15a721237 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 bash-completion/su | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit f2cf56c76a2fed7a2d0f2d85c3121533165dba8c Author: Ameer Hamza Date: Thu Nov 21 17:18:52 2024 +0500 libblkid: zfs: fix overflow warning [coverity scan] Signed-off-by: Ameer Hamza libblkid/src/superblocks/zfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 830d73c36af08d967c8a7d064aa88068c6d91c36 Author: Karel Zak Date: Thu Nov 21 10:24:07 2024 +0100 login,libblkid: use econf_readConfig rather than deprecated econf_readDirs Fixes: lib/logindefs.c: In function ‘load_defaults’: lib/logindefs.c:257:9: warning: ‘econf_readDirs’ is deprecated: Use the econf_readConfig/econf_readConfigWithCallback instead [-Wdeprecated-declarations] 257 | error = econf_readDirs(&file, | ^~~~~ libblkid/src/config.c: In function 'blkid_read_config': libblkid/src/config.c:164:17: error: 'econf_readDirs' is deprecated: Use the econf_readConfig/econf_readConfigWithCallback instead [-Werror=deprecated-declarations] 164 | error = econf_readDirs(&file, | ^~~~~ * check for econf_readConfig() by ./configure and moson * add UL_VENDORDIR_PATH into pathnames.h to avoid #ifdef in code * use #ifdef HAVE_ECONF_READCONFIG to switch between econf_readDirs() and the econf_readConfig() Signed-off-by: Karel Zak configure.ac | 11 +++++++++-- include/pathnames.h | 7 +++++++ lib/logindefs.c | 11 +++++------ libblkid/src/config.c | 13 +++++++------ meson.build | 5 +++++ 5 files changed, 33 insertions(+), 14 deletions(-) commit 23a4dc0a35ec9d77653dfca509210ee6bb4c96e6 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 po-man/po4a.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 63d7937180fcce4ea7fc1d2855872e464f06e779 Author: Zbigniew Jędrzejewski-Szmek Date: Wed Nov 20 14:14:52 2024 +0100 Drop pointless bitfields Bitfields have their uses, but the uses here didn't make any sense. Code generated to read or write bitfields is more complicated (and slower) because, well, the bits need to be manipulated with special instructions. So bitfields should be used when we have a structure that is repeated hundreds or thousands of times in memory and those saving are higher than the cost of having more complicated code. This can happen for example in the kernel code. But the code here has structures that are instantiated once or or at most few times. In addition, a bitfield often does not save any memory because of alignment requirements. In the majority of cases modified here, the bitfield was the last field in a structure, so no memory savings were made. $ size build*/{mkswap,more,ul,col,rtcwake,lsmem,lscpu,eject,dmesg,uuidd,taskset,login} text data bss dec hex filename 132014 1988 88 134090 20bca build/mkswap 129342 1852 88 131282 200d2 build2/mkswap 55161 1480 128 56769 ddc1 build/more 54265 1480 128 55873 da41 build2/more 14364 868 112 15344 3bf0 build/ul 14316 868 112 15296 3bc0 build2/ul 28547 1000 112 29659 73db build/col 28435 1000 112 29547 736b build2/col 46914 1960 112 48986 bf5a build/rtcwake 46834 1960 112 48906 bf0a build2/rtcwake 63419 1744 176 65339 ff3b build/lsmem 63403 1744 176 65323 ff2b build2/lsmem 159885 2864 464 163213 27d8d build/lscpu 159757 2864 464 163085 27d0d build2/lscpu 90041 1704 88 91833 166b9 build/eject 89737 1704 88 91529 16589 build2/eject 82150 5152 1032 88334 1590e build/dmesg 81846 5152 1032 88030 157de build2/dmesg 37601 1368 80 39049 9889 build/uuidd 37585 1368 80 39033 9879 build2/uuidd 58906 1336 56 60298 eb8a build/taskset 58890 1336 56 60282 eb7a build2/taskset 84761 2128 152 87041 15401 build/login 84672 2128 152 86952 153a8 build2/login (To be clear: those small savings are not particularly important. The motivation for this patch is to eradicate the antipattern of making things more complicated without any benefit.) disk-utils/cfdisk.c | 8 +++--- disk-utils/fsck.c | 6 ++-- disk-utils/mkfs.minix.c | 4 +-- disk-utils/mkswap.c | 11 +++---- include/loopdev.h | 15 +++++----- include/pty-session.h | 7 +++-- lib/pager.c | 3 +- libfdisk/src/fdiskP.h | 11 +++---- libmount/src/lock.c | 4 +-- libsmartcols/src/filter-param.c | 4 +-- libsmartcols/src/smartcolsP.h | 32 ++++++++++----------- login-utils/chfn.c | 13 ++++----- login-utils/last.c | 12 ++++---- login-utils/login.c | 10 +++---- login-utils/su-common.c | 24 ++++++++-------- lsfd-cmd/lsfd.h | 8 +++--- misc-utils/blkid.c | 18 ++++++------ misc-utils/cal.c | 32 ++++++++++----------- misc-utils/getopt.c | 10 +++---- misc-utils/hardlink.c | 26 ++++++++--------- misc-utils/kill.c | 15 +++++----- misc-utils/lsblk.h | 29 ++++++++++--------- misc-utils/lslocks.c | 4 +-- misc-utils/mcookie.c | 3 +- misc-utils/uuidd.c | 6 ++-- misc-utils/uuidparse.c | 7 ++--- schedutils/taskset.c | 5 ++-- schedutils/uclampset.c | 13 +++++---- sys-utils/dmesg.c | 24 ++++++++-------- sys-utils/eject.c | 42 +++++++++++++-------------- sys-utils/hwclock.h | 44 ++++++++++++++-------------- sys-utils/irq-common.h | 9 +++--- sys-utils/irqtop.c | 12 ++++---- sys-utils/lscpu.c | 2 +- sys-utils/lscpu.h | 6 ++-- sys-utils/lsmem.c | 3 +- sys-utils/mountpoint.c | 10 +++---- sys-utils/rfkill.c | 7 ++--- sys-utils/rtcwake.c | 4 +-- sys-utils/setpriv.c | 28 +++++++++--------- sys-utils/swapon.c | 16 +++++------ term-utils/script.c | 13 ++++----- term-utils/setterm.c | 29 ++++++++++--------- text-utils/col.c | 21 +++++++------- text-utils/colcrt.c | 15 +++++----- text-utils/column.c | 21 +++++++------- text-utils/more.c | 64 ++++++++++++++++++++--------------------- text-utils/ul.c | 8 +++--- 48 files changed, 364 insertions(+), 354 deletions(-) commit 508fb0e7ac103b68531a59db2a4473897853ab52 Author: Karel Zak Date: Wed Nov 20 11:19:02 2024 +0100 agetty: always read additional issue file locations Currently, additional locations (such as /run or /usr/lib) are only read if /etc/issue does not exist. This behavior makes it difficult to use local settings (/etc) together with generated (/run) and distribution-specific (/usr/lib) files. Let's read all the locations. If the output of issue files is unwanted, the option --noissue can be used, or the default locations can be ignored by using --issue-file . Fixes: https://github.com/util-linux/util-linux/issues/3279 Addresses: https://github.com/systemd/systemd/issues/35071 Signed-off-by: Karel Zak term-utils/agetty.8.adoc | 6 ++++-- term-utils/agetty.c | 19 ++++--------------- 2 files changed, 8 insertions(+), 17 deletions(-) commit a5dd2fc5ff339079d60b72abb04f329a1e63dbda Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Jun 4 07:43:36 2024 +0000 build(deps): bump redhat-plumbers-in-action/differential-shellcheck Bumps [redhat-plumbers-in-action/differential-shellcheck](https://github.com/redhat-plumbers-in-action/differential-shellcheck) from 4 to 5. - [Release notes](https://github.com/redhat-plumbers-in-action/differential-shellcheck/releases) - [Changelog](https://github.com/redhat-plumbers-in-action/differential-shellcheck/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/redhat-plumbers-in-action/differential-shellcheck/compare/v4...v5) .github/workflows/differential-shellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d13b03815f0823f0c670a45c325b5f7a0a0a80dd Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Jun 4 07:43:32 2024 +0000 build(deps): bump actions/cache from 3 to 4 Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) .github/workflows/cibuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 39ace59b747be1fdf204304b7cd0171c79ffc1f0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Jun 4 07:43:26 2024 +0000 build(deps): bump github/codeql-action from 2 to 3 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) .github/workflows/codeql.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 649824d60a3598bbecca145abf9ecdd256f86b38 Merge: beffc1af8 680fb6f0f Author: Karel Zak Date: Wed Nov 20 09:56:03 2024 +0100 Merge branch 'hooksets_const' of https://github.com/MaxKellermann/util-linux * 'hooksets_const' of https://github.com/MaxKellermann/util-linux: schedutils: make pointer arrays const lsfd-cmd: make pointer arrays const libsmartcols: make pointer arrays const libfdisk: make pointer arrays const login-utils: make pointer arrays const libblkid: make pointer arrays const lib: make pointer arrays const term-utils: make pointer arrays const misc-utils: make pointer arrays const text-utils: make pointer arrays const sys-utils: make pointer arrays const disk-utils: make pointer arrays const include/c.h: pass const pointer array to print_features() libmount/hooks: make `hooksets` array const commit beffc1af871c0c37c5effbc3f9c909797ae55e04 Merge: e7c98fa4a 88e82338a Author: Karel Zak Date: Wed Nov 20 09:49:35 2024 +0100 Merge branch 'meson-rm-lastlog-compat-symlink-option' of https://github.com/jwillikers/util-linux * 'meson-rm-lastlog-compat-symlink-option' of https://github.com/jwillikers/util-linux: meson: remove unused lastlog-compat-symlink option commit e7c98fa4a5274ccc4744c185b7af927d781cc0dd Merge: 4c4b248c6 41bc86614 Author: Karel Zak Date: Wed Nov 20 09:47:52 2024 +0100 Merge branch 'NAS-130825' of https://github.com/ixhamza/util-linux * 'NAS-130825' of https://github.com/ixhamza/util-linux: libblkid: zfs: Use nvlist for detection instead of Uber blocks commit 88e82338ad82de004803d4dcb43cce467ad81eec Author: Jordan Williams Date: Tue Nov 19 08:44:20 2024 -0600 meson: remove unused lastlog-compat-symlink option This option was not used even when it was originally introduced. Signed-off-by: Jordan Williams meson_options.txt | 3 --- 1 file changed, 3 deletions(-) commit 5e9711473fc871155017c7747364b9e4ae2ecfb9 Author: Karel Zak Date: Tue Nov 19 11:54:00 2024 +0100 libmount: support X-mount.noloop libmount automatically creates a loop device and mounts it if the source of the mount is a regular file that contains a well-known filesystem. However, in some cases, this feature may be unwanted. The new mount option "X-mount.noloop" forces libmount to use the file directly as the mount source. Addresses: https://github.com/util-linux/util-linux/pull/3288 Signed-off-by: Karel Zak libmount/src/hook_loopdev.c | 3 +++ sys-utils/mount.8.adoc | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) commit 680fb6f0f53339a0ffca1d955882b6d5ab3a3c1e Author: Max Kellermann Date: Mon Nov 18 12:35:40 2024 +0100 schedutils: make pointer arrays const schedutils/ionice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 509439572e9cfae4b4483f46669b2a6566dceb35 Author: Max Kellermann Date: Mon Nov 18 12:35:30 2024 +0100 lsfd-cmd: make pointer arrays const lsfd-cmd/cdev.c | 2 +- lsfd-cmd/unkn.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit 01497fa2620898409130c9ca7957f6ca59563943 Author: Max Kellermann Date: Mon Nov 18 12:35:21 2024 +0100 libsmartcols: make pointer arrays const libsmartcols/src/filter-param.c | 2 +- libsmartcols/src/grouping.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 4969b3e56df16d45b2fe8f8097e5f8d29a87e485 Author: Max Kellermann Date: Mon Nov 18 12:35:13 2024 +0100 libfdisk: make pointer arrays const libfdisk/src/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 84b5e97ef131ec57ad2128bd5b3a5187a8cd9db5 Author: Max Kellermann Date: Mon Nov 18 12:35:02 2024 +0100 login-utils: make pointer arrays const login-utils/lslogins.c | 2 +- login-utils/sulogin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit bbc42cab222a0000482ea09e84d0ea8dd9c2b5e6 Author: Max Kellermann Date: Mon Nov 18 12:33:36 2024 +0100 libblkid: make pointer arrays const libblkid/src/devname.c | 6 +++--- libblkid/src/devno.c | 4 ++-- libblkid/src/probe.c | 2 +- libblkid/src/superblocks/bitlocker.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) commit fe467f86235c908c5271c0e7750b0967fbfadddc Author: Max Kellermann Date: Mon Nov 18 12:33:31 2024 +0100 lib: make pointer arrays const lib/colors.c | 2 +- lib/randutils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 8a45067fc6286e2cf7ba606440e48663c6524bd2 Author: Max Kellermann Date: Mon Nov 18 12:33:24 2024 +0100 term-utils: make pointer arrays const term-utils/agetty.c | 4 ++-- term-utils/setterm.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 4a1ee8d75923489a8e9ce9cbc6fdfd8783a7d8d5 Author: Max Kellermann Date: Mon Nov 18 12:33:18 2024 +0100 misc-utils: make pointer arrays const misc-utils/hardlink.c | 2 +- misc-utils/kill.c | 2 +- misc-utils/whereis.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) commit 0ea32b331ffbf58f123d576608200ea8c3ec3ee2 Author: Max Kellermann Date: Mon Nov 18 12:33:12 2024 +0100 text-utils: make pointer arrays const text-utils/hexdump-conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bf524d96ee145cff1eace2e04125bc0825887890 Author: Max Kellermann Date: Mon Nov 18 12:33:07 2024 +0100 sys-utils: make pointer arrays const sys-utils/blkzone.c | 4 ++-- sys-utils/chmem.c | 2 +- sys-utils/lscpu.c | 6 +++--- sys-utils/lsmem.c | 2 +- sys-utils/lsns.c | 2 +- sys-utils/renice.c | 2 +- sys-utils/rfkill.c | 2 +- sys-utils/rtcwake.c | 2 +- sys-utils/wdctl.c | 4 ++-- sys-utils/zramctl.c | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) commit 7efb0dc45734ce9305203452049d4a7752db46f5 Author: Max Kellermann Date: Mon Nov 18 12:33:01 2024 +0100 disk-utils: make pointer arrays const disk-utils/cfdisk.c | 4 ++-- disk-utils/fdisk-list.c | 2 +- disk-utils/fdisk-list.h | 2 +- disk-utils/fdisk-menu.c | 2 +- disk-utils/fsck.c | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) commit 889f101364202a129d495720019035baff04299a Author: Max Kellermann Date: Mon Nov 18 12:34:49 2024 +0100 include/c.h: pass const pointer array to print_features() include/c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 7c5fca67f94f493d18ae9e1fbc6540978cde5173 Author: Max Kellermann Date: Mon Nov 18 12:18:06 2024 +0100 libmount/hooks: make `hooksets` array const The pointed-to structures were const, but the pointers were not. libmount/src/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4c4b248c68149089c8be2f830214bb2be693307e Author: Karel Zak Date: Mon Nov 18 11:27:26 2024 +0100 lsirq,irqtop: cleanup threshold datatype Signed-off-by: Karel Zak sys-utils/irq-common.c | 4 ++-- sys-utils/irq-common.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 0fc13a60f9b70c7516a9a04d404649f3ea0df914 Merge: 704229743 609c958c6 Author: Karel Zak Date: Mon Nov 18 11:22:25 2024 +0100 Merge branch 'irq-stuff' of https://github.com/rjarry/util-linux * 'irq-stuff' of https://github.com/rjarry/util-linux: lsirq: add option to limit cpus lsirq,irqtop: add threshold option commit 704229743ad2718def32a43701f22ce8cdf495e5 Merge: 643ea5ce3 4095c5bb6 Author: Karel Zak Date: Mon Nov 18 11:18:58 2024 +0100 Merge branch 'PR/libmount-vfs-ro' of https://github.com/karelzak/util-linux-work * 'PR/libmount-vfs-ro' of https://github.com/karelzak/util-linux-work: libmount: implement ro[=vfs,fs] libmount: improving readability commit 643ea5ce30d6ef3c4e233885fc5570879d5a92a7 Merge: 22422bc65 e8a6b4101 Author: Karel Zak Date: Mon Nov 18 11:16:55 2024 +0100 Merge branch 'PR/nsenter-pidfd-oldkernel' of https://github.com/karelzak/util-linux-work * 'PR/nsenter-pidfd-oldkernel' of https://github.com/karelzak/util-linux-work: nsenter: improve portability to older kernels commit 22422bc65ac670f40d71b7ee07eb5a9118f11407 Merge: 8bf106507 2362bfa5f Author: Karel Zak Date: Mon Nov 18 11:13:26 2024 +0100 Merge branch 'PR/tty-group' of https://github.com/karelzak/util-linux-work * 'PR/tty-group' of https://github.com/karelzak/util-linux-work: mesg: remove ability to compile with fchmod(S_IWOTH) meson: add -D tty-setgid=[false|true] autotools: add --disable-makeinstall-tty-setgid commit 8bf10650732de0b2d1e8a0d888ff29c118de081c Merge: d8892bd0b 3b6e55d6c Author: Karel Zak Date: Mon Nov 18 11:12:53 2024 +0100 Merge branch 'PR/nsenter-empty-environ' of https://github.com/karelzak/util-linux-work * 'PR/nsenter-empty-environ' of https://github.com/karelzak/util-linux-work: nsenter: support empty environ[] commit d8892bd0bbb3327f704c0688a25eb3c8e9852796 Merge: 37e4ba36c 83359a297 Author: Karel Zak Date: Mon Nov 18 10:26:38 2024 +0100 Merge branch 'tmpfstests' of https://github.com/zeha/util-linux * 'tmpfstests' of https://github.com/zeha/util-linux: Skip tmpfs-sensitive tests if fstype cannot be determined commit 37e4ba36c5b9b185d30bc6a9224cf4997f620cd0 Merge: 8840a219f aa4efb203 Author: Karel Zak Date: Mon Nov 18 10:24:10 2024 +0100 Merge branch 'column-doc' of https://github.com/bertronika/util-linux * 'column-doc' of https://github.com/bertronika/util-linux: column.1.adoc: Fix spelling and improve option descriptions commit 8840a219fcf7702eba2295f7351fe92e884af14e Merge: dd39081e3 1dd27d1fa Author: Karel Zak Date: Mon Nov 18 10:22:41 2024 +0100 Merge branch 'swapfile-file-selinux' of https://github.com/keszybz/util-linux * 'swapfile-file-selinux' of https://github.com/keszybz/util-linux: mkswap: set selinux label also when creating file commit 1dd27d1fa733f97b3a94822ccfd406e1a572867d 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. disk-utils/mkswap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit aa4efb20305b4e4c328c718f102ac14c78d32c54 Author: Nejc Bertoncelj Date: Sat Nov 16 12:20:49 2024 +0100 column.1.adoc: Fix spelling and improve option descriptions text-utils/column.1.adoc | 94 ++++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 47 deletions(-) commit 83359a297911f39245343e270f8b9ea587df23f2 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 tests/ts/fadvise/drop | 6 +++--- tests/ts/fincore/count | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) commit 2362bfa5fcb26275aae1c6c06046b35186220f46 Author: Karel Zak Date: Fri Nov 15 11:53:37 2024 +0100 mesg: remove ability to compile with fchmod(S_IWOTH) The default is to use mesg(1) to modify write access for the "tty" group, but there is an obscure legacy. If mesg(1) is compiled with the option "--disable-use-tty-group", then it defaults to using fchmod(S_IWGRP | S_IWOTH). This means that your tty is then writable for everyone. Let's get rid of this ugly feature. Reported-by: Chris Hofstaedtler Signed-off-by: Karel Zak login-utils/login.1.adoc | 4 ++-- term-utils/mesg.1.adoc | 19 ++++++++++++++++++- term-utils/mesg.c | 4 ---- 3 files changed, 20 insertions(+), 7 deletions(-) commit 8a4082068dc40900711e1e749a8dbf921efb0e5d Author: Karel Zak Date: Fri Nov 15 11:32:34 2024 +0100 meson: add -D tty-setgid=[false|true] If your distribution does not define permissions for installed binaries and follows the upstream guidelines, disabling the tty group's setgid could be a beneficial decision in certain situations. Signed-off-by: Karel Zak meson.build | 11 +++++++++-- meson_options.txt | 4 ++++ 2 files changed, 13 insertions(+), 2 deletions(-) commit 5a391c158af90667769ec3267ecd2490052c7aa2 Author: Karel Zak Date: Fri Nov 15 11:30:17 2024 +0100 autotools: add --disable-makeinstall-tty-setgid If your distribution does not define permissions for installed binaries and follows the upstream guidelines, disabling the tty group's setgid could be a beneficial decision in certain situations. Signed-off-by: Karel Zak configure.ac | 8 ++++++++ term-utils/Makemodule.am | 4 ++++ 2 files changed, 12 insertions(+) commit dd39081e3a6a7857efa29bad0ef6663955f67a84 Author: Masatake YAMATO Date: Sat Nov 9 04:47:51 2024 +0900 lsfd: (man) add more filter examples related to unix stream sockets Inspired by the blog article: https://blog.fraggod.net/2024/08/06/list-connected-processes-for-unix-sockets-on-linux.html Signed-off-by: Masatake YAMATO lsfd-cmd/lsfd.1.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 41bc866143af5b1b65959bed299012478dfc8ada Author: Ameer Hamza Date: Fri Oct 4 21:57:44 2024 +0500 libblkid: zfs: Use nvlist for detection instead of Uber blocks Currently, blkid relies on the presence of Uber blocks to detect ZFS partition types. However, Uber blocks are not consistently dumped for cache and spare vdevs, particularly in pools created prior to https://github.com/openzfs/zfs/commit/d9885b3. Additionally, indirect vdevs are incorrectly detected by blkid due to the presence of Uber blocks in the label. ZFS itself does not depend on Uber blocks either when reading ZFS labels; instead, it parses the nvlist. This commit aligns blkid's approach with ZFS by parsing the nvlist in the label to detect ZFS partition types, requiring at least one valid label for successful detection. This change also ensures compatibility with wipefs, as it now uses nvlist headers for offsets instead of the Uber Magic offset. Consequently, running wipefs -a will zero out the nvlist header in each label, fully removing the ZFS partition type and making the pool unimportable. Previously, wipefs -a did not clear all the Uber blocks or delete all nvlist headers, allowing pools to remain importable even after wiping. Signed-off-by: Ameer Hamza libblkid/src/superblocks/zfs.c | 338 ++++++++++++++++++++++------------------- 1 file changed, 183 insertions(+), 155 deletions(-) commit 3b6e55d6c1eed0e88e319535fd18421b1a35ed3f 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. 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 609c958c630b67e7ba2ff50ed6b64fa310874fe1 Author: Robin Jarry Date: Tue Nov 5 11:02:38 2024 +0100 lsirq: add option to limit cpus For consistency with irqtop, add a --cpu-list lsirq option to specify a list of CPUs for which to display interrupt counters. get_scols_table() already supports a cpu_set_t argument. Simply parse the argument and pass it down. Signed-off-by: Robin Jarry bash-completion/lsirq | 4 ++++ sys-utils/lsirq.1.adoc | 3 +++ sys-utils/lsirq.c | 30 ++++++++++++++++++++++++++---- 3 files changed, 33 insertions(+), 4 deletions(-) commit 068b899ab865c6b7e9b5d151d979d58d0d4f0486 Author: Robin Jarry Date: Tue Nov 5 11:22:06 2024 +0100 lsirq,irqtop: add threshold option Add a new option to filter out IRQs whose counters are below the specified value. The argument supports plain integers and human readable values (e.g. 1.2K). Signed-off-by: Robin Jarry bash-completion/irqtop | 4 ++++ bash-completion/lsirq | 4 ++++ sys-utils/irq-common.c | 4 +++- sys-utils/irq-common.h | 1 + sys-utils/irqtop.1.adoc | 4 ++++ sys-utils/irqtop.c | 13 ++++++++++--- sys-utils/lsirq.1.adoc | 4 ++++ sys-utils/lsirq.c | 19 +++++++++++++++---- 8 files changed, 45 insertions(+), 8 deletions(-) commit 2bf297b55f78b77b0e585502546afa79264e693d Merge: 0e0fafce5 ffcd97071 Author: Karel Zak Date: Wed Nov 6 10:50:26 2024 +0100 Merge branch 'PR/lscpu-hotplug' of https://github.com/karelzak/util-linux-work * 'PR/lscpu-hotplug' of https://github.com/karelzak/util-linux-work: lscpu: fix incorrect number of sockets during hotplug commit e8a6b41016bf2b059c6f177505c75f19b47e5c9b Author: Karel Zak Date: Wed Nov 6 10:18:17 2024 +0100 nsenter: improve portability to older kernels The pidfd cannot be used to enter namespaces using setns() before Linux 5.7. To ensure compatibility with older kernels, we will check the kernel version before using pidfd_open() and, if necessary, fall back to using the classic /proc/#/ns/ files. Reported-by: Alex Xu Signed-off-by: Karel Zak sys-utils/nsenter.1.adoc | 2 +- sys-utils/nsenter.c | 27 ++++++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) commit 0e0fafce526d69fac11d19e41d4b1905077ac843 Merge: 4508f7a34 7e60554fc Author: Karel Zak Date: Tue Nov 5 11:17:10 2024 +0100 Merge branch 'PR/nsenter-pidfd' of https://github.com/karelzak/util-linux-work * 'PR/nsenter-pidfd' of https://github.com/karelzak/util-linux-work: nsenter: Rewrite --user-parent to use pidfd include/pidfd-utils: add namespaces ioctls nsenter: reuse pidfd for --net-socket nsenter: use macros to access the nsfiles array nsenter: use pidfd to enter target namespaces nsenter: use separate function to enter namespaces nsenter: add functions to enable/disable namespaces commit 4508f7a34b648f42f74f0b482710c8b0e80119dc Author: Karel Zak Date: Tue Nov 5 11:10:31 2024 +0100 libsmartcols: make __attributes__ more portable Let's use what is already used for libmount. The header file is a public header and does not require support for the __attribute__() compiler feature. We need an additional #ifdef to ensure portability. Signed-off-by: Karel Zak libsmartcols/src/libsmartcols.h.in | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) commit 34a6ce0b360ec382f21ecd64492168b4abed4613 Merge: 5776b85ba 1175cf426 Author: Karel Zak Date: Tue Nov 5 11:08:26 2024 +0100 Merge branch 'smartcols-printf' of https://github.com/rjarry/util-linux * 'smartcols-printf' of https://github.com/rjarry/util-linux: treewide: use scols printf api where possible libsmartcols: add printf api to fill in column data commit 5776b85ba52e75a28e64be12e14598c0876e7bda Merge: 472f89cce 7e2eb9cd5 Author: Karel Zak Date: Tue Nov 5 11:00:11 2024 +0100 Merge branch 'mkfds--minor-fixes' of https://github.com/masatake/util-linux * 'mkfds--minor-fixes' of https://github.com/masatake/util-linux: tests: (test_mkfds::make-regular-file) fix the default union member for \"readable\" parameter test_mkfds: reserve file descriptors in the early stage of execution commit 472f89cce0ded69076649aadbcc906dbc913a823 Merge: e963eebc9 35b67be19 Author: Karel Zak Date: Tue Nov 5 10:59:13 2024 +0100 Merge branch 'PR/hardlink-nftw-imrovements' of https://github.com/karelzak/util-linux-work * 'PR/hardlink-nftw-imrovements' of https://github.com/karelzak/util-linux-work: hardlink: implement --mount hardlink: add missing verbose messages and unify them hardlink: implement --exclude-subtree commit e963eebc9465f65f379053ab44ad960508ba1fa6 Author: Karel Zak Date: Tue Nov 5 10:56:14 2024 +0100 hardlink: add new options to the bash-completion Signed-off-by: Karel Zak bash-completion/hardlink | 2 ++ 1 file changed, 2 insertions(+) commit ffcd97071208a567541a0a3f72cebe6a353d7d28 Author: Anjali K Date: Mon Nov 4 12:02:26 2024 +0530 lscpu: fix incorrect number of sockets during hotplug lscpu sometimes shows incorrect 'Socket(s)' value if a hotplug operation is running. On a 32 CPU 2-socket system, the expected output is as shown below: Architecture: ppc64le Byte Order: Little Endian CPU(s): 32 On-line CPU(s) list: 0-31 Model name: POWER10 (architected), altivec supported Model: 2.0 (pvr 0080 0200) Thread(s) per core: 8 Core(s) per socket: 2 Socket(s): 2 On the same system, if hotplug is running along with lscpu, it shows "Socket(s):" as 3 and 4 incorrectly sometimes. Architecture: ppc64le Byte Order: Little Endian CPU(s): 32 On-line CPU(s) list: 0-11,16-31 Off-line CPU(s) list: 12-15 Model name: POWER10 (architected), altivec supported Model: 2.0 (pvr 0080 0200) Thread(s) per core: 8 Core(s) per socket: 1 Socket(s): 3 The number of sockets is considered as the number of unique core_siblings CPU groups. The issues causing the number of sockets to sometimes be higher during hotplug is: 1. The core_siblings of CPUs on the same socket are different because a CPU on the socket has been onlined/offlined in between. In the below example, nr sockets was wrongly incremented for CPU 5 though CPU 4 and 5 are on the same socket because their core_siblings was different as CPU 12 was onlined in between. CPU: 4 core_siblings: ff f0 0 0 0 0 0 0 CPU: 5 core_siblings: ff f8 0 0 0 0 0 0 2. The core_siblings file of a CPU is created when a CPU is onlined. It may have an invalid value for some time until the online operation is fully complete. In the below example, nr sockets is wrongly incremented because the core_siblings of CPU 14 was 0 as it had just been onlined. CPU: 14 core_siblings: 0 0 0 0 0 0 0 0 To fix this, make the below changes: 1. Instead of considering CPUs to be on different sockets if their core_siblings masks are unequal, consider them to be on different sockets only if their core_siblings masks don't have even one common CPU. Then CPUs on the same socket will be correctly identified even if offline/online operations happen while they are read if at least one CPU in the socket is online during both reads. 2. Check if a CPU's hotplug operation has been completed before using its core_siblings file [kzak@redhat.com: - use xmalloc(), - use ul_strtos32(), - use err() on CPU_ALLOC() error] Reported-by: Anushree Mathur Signed-off-by: Anjali K Signed-off-by: Karel Zak sys-utils/lscpu-topology.c | 68 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 61 insertions(+), 7 deletions(-) commit 1175cf426fce77c5be8eff9cd158e4210ab18ce9 Author: Robin Jarry Date: Thu Oct 31 23:55:44 2024 +0100 treewide: use scols printf api where possible Everywhere a string generated with xasprintf() is directly passed to scols_line_refer_data(), use scols_line_sprintf() to remove the need for an intermediate buffer. Replace the (now redundant) private scols_line_asprintf() function. Signed-off-by: Robin Jarry disk-utils/fdisk-list.c | 4 +- libsmartcols/samples/continuous-json.c | 7 +-- libsmartcols/samples/continuous.c | 8 ++- lsfd-cmd/lsfd.c | 4 +- misc-utils/lsclocks.c | 21 ++------ sys-utils/irq-common.c | 13 ++--- sys-utils/lscpu.c | 7 +-- sys-utils/lsipc.c | 98 ++++++++++++---------------------- 8 files changed, 56 insertions(+), 106 deletions(-) commit f0d0817c37931b504a7f6d4eb7ca94e2fb10a99a Author: Robin Jarry Date: Thu Oct 31 23:16:56 2024 +0100 libsmartcols: add printf api to fill in column data Add new API functions using printf(3) compatible format strings to fill in column data. These can be used to avoid intermediate buffers in the calling application code. Signed-off-by: Robin Jarry libsmartcols/docs/libsmartcols-sections.txt | 4 ++ libsmartcols/src/libsmartcols.h.in | 9 +++ libsmartcols/src/libsmartcols.sym | 7 ++ libsmartcols/src/line.c | 104 ++++++++++++++++++++++++++++ 4 files changed, 124 insertions(+) commit 7e2eb9cd5d475766227abb448ec23119e2b61f31 Author: Masatake YAMATO Date: Sun Oct 27 05:23:03 2024 +0900 tests: (test_mkfds::make-regular-file) fix the default union member for \"readable\" parameter Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 35eda933acd8c094ea54777a62e628d3654d3374 Author: Masatake YAMATO Date: Sun Oct 27 02:05:45 2024 +0900 test_mkfds: reserve file descriptors in the early stage of execution A factory specified with command line opens some files. After opening, the factory remaps the opened file descriptors (ofds) to file descriptors (rfds) specified with the command line with dup2 system all. This remapping may fail if there is an overlap between ofds and rfds. With this change, there cannot be an overlap between ofds and rfds; test_mkfds reserves rfds in the early stage of execution. Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) commit 35b67be1956ee0edbc938eb5971a43712e2a0475 Author: Karel Zak Date: Thu Oct 31 11:21:20 2024 +0100 hardlink: implement --mount Let's export another feature of nftw() to the hardlink command line. In this case, we will force the file-tree-walk to stay within the same filesystem. Addresses: https://github.com/util-linux/util-linux/discussions/3244 Signed-off-by: Karel Zak bash-completion/hardlink | 1 + misc-utils/hardlink.1.adoc | 3 +++ misc-utils/hardlink.c | 14 ++++++++++++-- 3 files changed, 16 insertions(+), 2 deletions(-) commit 657a721be68c80fb106e04118dca16c52b2dfab1 Author: Karel Zak Date: Thu Oct 31 11:00:32 2024 +0100 hardlink: add missing verbose messages and unify them * use the concept of "Skipped () " for all verbose messages * also add "Skipped" messages for the options --exclude and --exclude-subtree Signed-off-by: Karel Zak misc-utils/hardlink.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) commit 3001da7fa9458c3cc0bdbd26047ed43e618e1071 Author: Karel Zak Date: Thu Oct 31 10:51:11 2024 +0100 hardlink: implement --exclude-subtree Now, it is possible to exclude files by their names, but it does not allow for ignoring entire subtrees of the scanned hierarchy. The new option only applies to directory names and forces the file-tree-walk to skip the directory and all of its subdirectories. This is based on FTW_SKIP_SUBTREE, which was originally only available in glibc (since 2004). Therefore, the code is #ifdef-ed to make it portable to other libc versions. Addresses: https://github.com/util-linux/util-linux/discussions/3244 Signed-off-by: Karel Zak bash-completion/hardlink | 4 ++++ misc-utils/hardlink.1.adoc | 5 ++++- misc-utils/hardlink.c | 38 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 44 insertions(+), 3 deletions(-) commit 1453200e22dd4ec858be027653c167225f2fb358 Author: наб Date: Mon Oct 28 19:19:53 2024 +0100 hardlink: re-raise SIGINT instead of exiting Every TRUE return was either exit(1) or "return error;" anyway, this is more correct (exit-status-wise) and doesn't hang pipelines weirdly This also removes a seemingly-extraneous newline written to the standard output stream in the interrupt handler itself? misc-utils/hardlink.c | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) commit 91bd4db8260814298166604073a67ab8e1030a01 Author: наб Date: Mon Oct 28 19:19:34 2024 +0100 hardlink: fix 0-sized file processing The manual says that -s0 will process 0-sized files normally, but as it stands (a) hardlink considers 0-sized files unlinkable (so, with -l, unlistable) and (b) fileeq considers reading an empty prologue to be an error lib/fileeq.c | 2 +- misc-utils/hardlink.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) commit b4874971197255988a77b32779af02e207433c8c Author: наб Date: Mon Oct 28 19:19:30 2024 +0100 hardlink: add --list-duplicates and --zero --list-duplicates codifies what everyone keeps re-implementing with find -exec b2sum or src:perforate's finddup or whatever. hardlink already knows this, so make the data available thusly, in a format well-suited for pipeline processing (fixed-width key for uniq/cut/&c., tab delimiter for cut &a., -z for correct filename handling). misc-utils/hardlink.1.adoc | 6 ++++++ misc-utils/hardlink.c | 21 ++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) commit 2d2e78720440a611656ec0ce7fdb3e2e5a5f24eb Author: наб Date: Mon Oct 28 19:19:14 2024 +0100 hardlink.1: directory|file is mandatory misc-utils/hardlink.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9e2aafe5a493284615a17572c4ead4737bcc66a3 Merge: 46e653045 20ff617f7 Author: Karel Zak Date: Wed Oct 30 11:14:46 2024 +0100 Merge branch 'PR/liblastlog2-stderr' of https://github.com/karelzak/util-linux-work * 'PR/liblastlog2-stderr' of https://github.com/karelzak/util-linux-work: tests: (liblastlog2) don't write to stderr and stdout commit 46e653045b0d5709b38174502abc21ccfc01237a Merge: 254c0caa6 f03c26fdd Author: Karel Zak Date: Wed Oct 30 11:14:19 2024 +0100 Merge branch 'lsfd--bpf-prog-id-and-tag' of https://github.com/masatake/util-linux * 'lsfd--bpf-prog-id-and-tag' of https://github.com/masatake/util-linux: tests: (lsfd::mkfds-bpf-prog) verify BPF-PROG.{ID,TAG} column tests: (test_mkfds::bpf-prog) report id and tag lsfd: add BPF-PROG.TAG column lsfd: update bpf related tables lsfd: (bugfix) fix wrong type usage in anon_bpf_map_fill_column test_mkfds: (bugfix) listing ALL output values for a given factory commit 254c0caa616243c36212da745449e087c0656274 Author: Karel Zak Date: Wed Oct 30 11:10:19 2024 +0100 bits: cleanup --help output, add missing _( ) Signed-off-by: Karel Zak text-utils/bits.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit 4095c5bb6757b506acbe47a8bc60d8ebd04ba8a5 Author: Karel Zak Date: Tue Oct 29 15:56:31 2024 +0100 libmount: implement ro[=vfs,fs] The new mount API allows for specifying whether to use a read-only setting on the VFS or FS. Let's export this feature to the mount(8) command line and fstab by adding new optional arguments "fs" and "vfs" for the readonly mount flags. If nothing is specified, then the default will be to mount as read-only on both layers for a normal mount. # mount -o ro=vfs /dev/sdc /mnt/test ... fsopen("ext4", FSOPEN_CLOEXEC) = 3 fsconfig(3, FSCONFIG_SET_STRING, "source", "/dev/sdc", 0) = 0 fsconfig(3, FSCONFIG_CMD_CREATE, NULL, NULL, 0) = 0 mount_setattr(4, "", AT_EMPTY_PATH, {attr_set=MOUNT_ATTR_RDONLY, attr_clr=0, propagation=0 /* MS_??? */, userns_fd=0}, 32) = 0 move_mount(4, "", AT_FDCWD, "/mnt/test", MOVE_MOUNT_F_EMPTY_PATH) = 0 # mount -o ro=fs /dev/sdc /mnt/test ... fsopen("ext4", FSOPEN_CLOEXEC) = 3 fsconfig(3, FSCONFIG_SET_STRING, "source", "/dev/sdc", 0) = 0 fsconfig(3, FSCONFIG_SET_FLAG, "ro", NULL, 0) = 0 fsconfig(3, FSCONFIG_CMD_CREATE, NULL, NULL, 0) = 0 move_mount(4, "", AT_FDCWD, "/mnt/test", MOVE_MOUNT_F_EMPTY_PATH) = 0 # mount -o ro /dev/sdc /mnt/test ... fsopen("ext4", FSOPEN_CLOEXEC) = 3 fsconfig(3, FSCONFIG_SET_STRING, "source", "/dev/sdc", 0) = 0 fsconfig(3, FSCONFIG_SET_FLAG, "ro", NULL, 0) = 0 fsconfig(3, FSCONFIG_CMD_CREATE, NULL, NULL, 0) = 0 mount_setattr(4, "", AT_EMPTY_PATH, {attr_set=MOUNT_ATTR_RDONLY, attr_clr=0, propagation=0 /* MS_??? */, userns_fd=0}, 32) = 0 move_mount(4, "", AT_FDCWD, "/mnt/test", MOVE_MOUNT_F_EMPTY_PATH) = 0 The patch improves also the mount(8) man page to provide clearer information about VFS. Signed-off-by: Karel Zak libmount/src/hook_mount.c | 4 +++ libmount/src/mountP.h | 1 + libmount/src/optlist.c | 74 +++++++++++++++++++++++++++++++++++++++-- sys-utils/mount.8.adoc | 85 ++++++++++++++++++++++++++++++++++------------- 4 files changed, 139 insertions(+), 25 deletions(-) commit 03b2e73ae649a957a4f695df4f44c2cbce8d5f92 Author: Karel Zak Date: Tue Oct 29 08:58:14 2024 +0100 libmount: improving readability The function name mnt_optlist_is_recursive() is not accurate. It is only used for propagation operations based on the MS_REC flag and should not be confused with any other recursive stuff, such as ro=recursive. A more appropriate name for this function would be mnt_optlist_is_rpropagation(). Signed-off-by: Karel Zak libmount/src/context.c | 3 +++ libmount/src/hook_idmap.c | 2 +- libmount/src/mountP.h | 2 +- libmount/src/optlist.c | 10 +++++----- 4 files changed, 10 insertions(+), 7 deletions(-) commit f03c26fdd5ddf2d3e7ff32eeb42600b4ea4196be Author: Masatake YAMATO Date: Sat Oct 26 05:41:29 2024 +0900 tests: (lsfd::mkfds-bpf-prog) verify BPF-PROG.{ID,TAG} column Signed-off-by: Masatake YAMATO tests/expected/lsfd/mkfds-bpf-prog | 2 ++ tests/ts/lsfd/mkfds-bpf-prog | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) commit 4d1b8e1ebf87c39b0472b27a5f63397fe6f21556 Author: Masatake YAMATO Date: Sat Oct 26 05:32:47 2024 +0900 tests: (test_mkfds::bpf-prog) report id and tag Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 52 ++++++++++++++++++++++++++++++++++++++++++-- tests/ts/lsfd/mkfds-bpf-prog | 2 +- 2 files changed, 51 insertions(+), 3 deletions(-) commit ae08e49075af4737b499131e0cbbfb8410923bae Author: Masatake YAMATO Date: Mon Oct 14 16:31:02 2024 +0900 lsfd: add BPF-PROG.TAG column Signed-off-by: Masatake YAMATO configure.ac | 4 ++++ lsfd-cmd/lsfd.1.adoc | 5 ++++- lsfd-cmd/lsfd.c | 3 +++ lsfd-cmd/lsfd.h | 1 + lsfd-cmd/unkn.c | 16 ++++++++++++++++ meson.build | 3 ++- 6 files changed, 30 insertions(+), 2 deletions(-) commit f4a5ff1b2bb0e29f999e7880544c53b659ebcf11 Author: Masatake YAMATO Date: Mon Oct 14 16:51:33 2024 +0900 lsfd: update bpf related tables Signed-off-by: Masatake YAMATO lsfd-cmd/unkn.c | 2 ++ 1 file changed, 2 insertions(+) commit ccf3fbfb89a808da9cc2f8ffdd6664e401e0ad36 Author: Masatake YAMATO Date: Mon Oct 14 17:39:15 2024 +0900 lsfd: (bugfix) fix wrong type usage in anon_bpf_map_fill_column Where we should use anon_bpf_map_data, anon_bpf_prog_data was used. Fortunately, this has not been a big trouble because anon_bpf_map_data and anon_bpf_prog_data had no difference in their member layout Signed-off-by: Masatake YAMATO lsfd-cmd/unkn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cf95e16dd46fc9352d46c4a6240e12c7114e4aca Author: Masatake YAMATO Date: Sat Oct 26 05:14:06 2024 +0900 test_mkfds: (bugfix) listing ALL output values for a given factory Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6e1301d59350338303b22b0f12098a176d9f0a86 Author: Robin Jarry Date: Mon May 6 23:45:21 2024 +0200 text-utils: add bits command Add a new text utility to convert bit masks in various formats. This can be handy to avoid parsing affinity masks in one's head and/or to interact with the kernel in a more human friendly way. It is a rewrite in C of the bits command from my linux-tools python package so that it can be more widely available. Here is an example: ~# cat /sys/kernel/debug/tracing/tracing_cpumask ffffffff,ffffffff,ffffffff,ffffffff ~# bits -l ,$(cat /sys/kernel/debug/tracing/tracing_cpumask) 0-128 ~# bits -g 58,59,120,123 9000000,00000000,0c000000,00000000 ~# bits -g 58,59,120,123 > /sys/kernel/debug/tracing/tracing_cpumask ~# echo 1 > /sys/kernel/debug/tracing/tracing_on Add man page and basic tests. Link: https://git.sr.ht/~rjarry/linux-tools#bits Signed-off-by: Robin Jarry .gitignore | 1 + bash-completion/bits | 21 ++ configure.ac | 3 + meson.build | 14 ++ meson_options.txt | 2 + tests/commands.sh | 1 + tests/expected/misc/bits | 0 tests/expected/misc/bits-and | 1 + tests/expected/misc/bits-binary | 1 + tests/expected/misc/bits-default | 1 + tests/expected/misc/bits-grouped-mask | 1 + tests/expected/misc/bits-list | 1 + tests/expected/misc/bits-mask | 1 + tests/expected/misc/bits-not | 1 + tests/expected/misc/bits-or | 1 + tests/expected/misc/bits-parse-grouped-mask | 1 + tests/expected/misc/bits-parse-mask | 1 + tests/expected/misc/bits-parse-range | 1 + tests/expected/misc/bits-stdin | 1 + tests/expected/misc/bits-truncate | 1 + tests/expected/misc/bits-width | 1 + tests/expected/misc/bits-width-truncate | 1 + tests/expected/misc/bits-xor | 1 + tests/ts/misc/bits | 89 ++++++++ text-utils/Makemodule.am | 9 +- text-utils/bits.1.adoc | 133 +++++++++++ text-utils/bits.c | 330 ++++++++++++++++++++++++++++ text-utils/meson.build | 4 + 28 files changed, 622 insertions(+), 1 deletion(-) commit 20ff617f7b28375f4b8103a3e58ef280cb55b0a9 Author: Karel Zak Date: Tue Oct 22 11:17:23 2024 +0200 tests: (liblastlog2) don't write to stderr and stdout Signed-off-by: Karel Zak tests/expected/liblastlog2/write_read_user.err | 2 ++ tests/ts/liblastlog2/write_read_user | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) commit bc325a65d10ed6b136272fe64a67a042b81ae838 Author: Karel Zak Date: Tue Oct 22 10:22:08 2024 +0200 hwclock: cleanup save_adjtime() Signed-off-by: Karel Zak sys-utils/hwclock.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 9e7062455b0225092b8244801a6a277f0b82c193 Merge: 5f8817563 3dc249abb Author: Karel Zak Date: Tue Oct 22 10:13:04 2024 +0200 Merge branch 'patch-1' of https://github.com/bearhoney/util-linux * 'patch-1' of https://github.com/bearhoney/util-linux: Update chsh.1.adoc to avoid duplicates in man page commit 5f8817563bf33a34a48506b5aae7d836576a5136 Merge: a44b9888a 4acd71d24 Author: Karel Zak Date: Tue Oct 22 10:12:09 2024 +0200 Merge branch 'patch-1' of https://github.com/Geo25rey/util-linux * 'patch-1' of https://github.com/Geo25rey/util-linux: doc: fsck.8.adoc - fix email typo commit a44b9888a3c12df14057ab22a02efd57ba8d39b1 Merge: ef7b76baa 4e4fd6a5f Author: Karel Zak Date: Tue Oct 22 10:10:38 2024 +0200 Merge branch 'hwclock' of https://github.com/maks-mishin/util-linux * 'hwclock' of https://github.com/maks-mishin/util-linux: sys-utils: (save_adjtime): fix memory leak commit 7e60554fc4e8d2dd653b201556aa9e3fd956c968 Author: Karel Zak Date: Mon Oct 21 13:09:43 2024 +0200 nsenter: Rewrite --user-parent to use pidfd The latest kernel pidfd supports ioctls to ask for the target's namespaces. It seems we can use it for --user-parent if no user namespace is explicitly specified. The fallback is to use any other namespace or open the target's /proc//ns/user file directly. Signed-off-by: Karel Zak sys-utils/nsenter.c | 77 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 31 deletions(-) commit 7d2bfa92b463115aafcf0e73b48bf47cdca72f0b Author: Karel Zak Date: Mon Oct 21 13:08:36 2024 +0200 include/pidfd-utils: add namespaces ioctls Signed-off-by: Karel Zak include/pidfd-utils.h | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) commit 78e4452ba910db2f0175edce7732c1f1a2cb779c Author: Karel Zak Date: Fri Oct 18 14:50:11 2024 +0200 nsenter: reuse pidfd for --net-socket Signed-off-by: Karel Zak sys-utils/nsenter.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) commit 2f283d0dd32660161728576d107b9f9812ebd742 Author: Karel Zak Date: Fri Oct 18 14:08:35 2024 +0200 nsenter: use macros to access the nsfiles array This change implements macros to access the nsfiles array, resulting in a slight reduction in code. Signed-off-by: Karel Zak sys-utils/nsenter.c | 94 ++++++++++++++++++++++++++++------------------------- 1 file changed, 50 insertions(+), 44 deletions(-) commit f18be0ca5aa764404aa626c84cff315256c9ee73 Author: Karel Zak Date: Fri Oct 18 12:16:04 2024 +0200 nsenter: use pidfd to enter target namespaces The typical use case is to enter namespaces of the task (--target ). The original nsenter opens /proc//ns/* files and uses the file descriptors to enter the namespaces by setns(). The recent kernel allows using the pid file descriptor instead of the files in /proc, making it possible to enter multiple namespaces with one setns call. This solution reduces the number of syscalls (open+setns for each namespace), removes the dependence on /proc, and allows entering nested namespaces. This commit should be backwardly compatible, meaning it can be used on systems without pidfd_open(). Explicitly specified namespaces by filenames are still supported, and user namespaces are still entered first/last according to permissions privileging/deprivileging. Addresses: https://github.com/util-linux/util-linux/pull/301 Signed-off-by: Karel Zak sys-utils/nsenter.c | 66 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 16 deletions(-) commit ed0da317e078bc2c86ccf4d882b3867edd726253 Author: Karel Zak Date: Thu Oct 17 12:17:10 2024 +0200 nsenter: use separate function to enter namespaces Remove the complicated for-loop from the main() function and instead use a separate function to enable namespaces based on a given mask. Signed-off-by: Karel Zak sys-utils/nsenter.c | 62 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 25 deletions(-) commit 3dc249abb2685f42c84323ae758d5e1ba8d9d02a 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). login-utils/chsh.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4acd71d2495159d18ea326d43be1bfe97d13d383 Author: Geoffrey Casper Date: Sat Oct 19 01:34:35 2024 -0400 doc: fsck.8.adoc - fix email typo disk-utils/fsck.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit df321c9e038bccf6c99f82a1687e11a075635c93 Author: Karel Zak Date: Thu Oct 17 11:14:49 2024 +0200 nsenter: add functions to enable/disable namespaces Currently, enabled namespaces are those with an open file descriptor. However, if we support pidfd, this will become unnecessary and we will need an FD-independent enable/disable mechanism. It also makes sense to delay opening --target namespaces files until everything is ready and only handle it in one place. Signed-off-by: Karel Zak sys-utils/nsenter.c | 145 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 88 insertions(+), 57 deletions(-) commit 4e4fd6a5fc84b8dc172e1ea67b28064c67376d1a Author: Maks Mishin Date: Thu Oct 17 07:14:26 2024 +0300 sys-utils: (save_adjtime): fix memory leak Dynamic memory, referenced by 'content', is allocated by calling function 'xasprintf' and lost when function returns. Found by the static analyzer Svace. sys-utils/hwclock.c | 3 +++ 1 file changed, 3 insertions(+) commit ef7b76baa17ddb5414691fa8f49d61415c30871c Author: Karel Zak Date: Mon Oct 14 15:50:40 2024 +0200 sfdisk: add --sector-size commanand line option * improves compatibility with fdisk * add ability to work with disk images where libfdisk defaults to 512 Addresses: https://github.com/util-linux/util-linux/pull/3235 Signed-off-by: Karel Zak disk-utils/sfdisk.8.adoc | 5 ++++- disk-utils/sfdisk.c | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) commit fd38ee2274f7a30393d3839dfce556260355c3fa Author: Karel Zak Date: Mon Oct 14 15:48:46 2024 +0200 cfdisk: add --sector-size commanand line option * improves compatibility with fdisk * add ability to work with disk images where libfdisk defaults to 512 Signed-off-by: Karel Zak disk-utils/cfdisk.8.adoc | 3 +++ disk-utils/cfdisk.c | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) commit 54f9a79301dcf492cab8e07134f96a921d367aa0 Author: Karel Zak Date: Mon Oct 14 15:47:03 2024 +0200 fdisk: (man) improve --sector-size description Signed-off-by: Karel Zak disk-utils/fdisk.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7ada6547fcd1f649fadaa8021ff21e3e0f431459 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 libfdisk/src/wipe.c | 3 +++ 1 file changed, 3 insertions(+) commit fda5dc760a0501554f079558ebd95a4f91fba7cd Merge: 0567efc79 8f15d94a2 Author: Karel Zak Date: Mon Oct 14 10:12:48 2024 +0200 Merge branch 'setpriv-parse-securebits' of https://github.com/maks-mishin/util-linux * 'setpriv-parse-securebits' of https://github.com/maks-mishin/util-linux: sys-utils: (setpriv): fix potential memory leak commit 8f15d94a21cbc6886bdf2474e6e1bb507cab1149 Author: Maks Mishin Date: Thu Oct 10 20:23:49 2024 +0300 sys-utils: (setpriv): fix potential memory leak Dynamic memory, referenced by 'buf' is allocated by calling function 'xstrdup' add then changed by calling of strsep function. The free(buf) call is incorrect if buf != NULL, and points to some place inside or outside the source string. sys-utils/setpriv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 0567efc790d4426df3001c6f8a19e276f114a450 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 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 053c4aa6ef82f3df3cbd9940a7d816815236811a Merge: a128d9298 8aba5a498 Author: Karel Zak Date: Mon Oct 7 13:30:04 2024 +0200 Merge branch 'ci/llvm-19' of https://github.com/t-8ch/util-linux * 'ci/llvm-19' of https://github.com/t-8ch/util-linux: ci: use clang 19 commit a128d92986494d469b2d551abc995fb08d2be889 Merge: ef313820e d6502a5f9 Author: Karel Zak Date: Mon Oct 7 13:27:43 2024 +0200 Merge branch 'sock-netns-with-tests' of https://github.com/masatake/util-linux * 'sock-netns-with-tests' of https://github.com/masatake/util-linux: tests: (lsfd) verify SOCK.NETID and ENDPOINTS for sockets made in another netns tests: (lsns) verify the code finding an isolated netns via socket tests: (nsenter) verify the code entering the network ns via socket made in the ns tests: (test_sysinfo) add a helper to detect NS_GET_USERNS tests: (test_mkfds::foreign-sockets) new factory tests: (test_mkfds, refactor) use xmemdup newly added in xalloc.h xalloc.h: add xmemdup tests: (test_mkfds) fix a typo in an option name test_mkfds: (cosmetic) remove whitespaces between a function and its arguments commit ef313820ea80adabeb37d6597d984663f3cd381e Merge: 7319309ca 1bdfbe9a7 Author: Karel Zak Date: Mon Oct 7 13:18:13 2024 +0200 Merge branch 'libblkid/ubsan/exfat' of https://github.com/t-8ch/util-linux * 'libblkid/ubsan/exfat' of https://github.com/t-8ch/util-linux: libblkid: (exfat): validate fields used by prober commit 7319309ca3bfb8261e968a6a8f5794ef6a47dc2e Merge: 7b234963e ea0a10761 Author: Karel Zak Date: Mon Oct 7 10:22:07 2024 +0200 Merge branch 'lsfd--minor-fixes' of https://github.com/masatake/util-linux * 'lsfd--minor-fixes' of https://github.com/masatake/util-linux: lsfd: avoid accessing an uninitialized value lsfd: finalize abst_class lsfd,test_mkfds: (refactor) specify the variable itself as an operand of sizeof tests: (test_mkfds) add a missing word in a comment commit 1bdfbe9a7af4f5897624ec1ab14e9f60a5b72c61 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 libblkid/src/superblocks/exfat.c | 33 +++++++++++++++++++++ .../test_blkid_fuzz_files/oss-fuzz-371061095 | Bin 0 -> 1025 bytes 2 files changed, 33 insertions(+) commit ea0a1076181f27af39a0653f08fbc705e2b784ce Author: Masatake YAMATO Date: Thu Oct 3 15:17:01 2024 +0900 lsfd: avoid accessing an uninitialized value sb, a local variable in collect_file_symlink, accessed at bool is_socket = (sb.st_mode & S_IFMT) == S_IFSOCK; was not initialized if copy_file path is taken. Signed-off-by: Masatake YAMATO lsfd-cmd/lsfd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 8b0b4967745c8917d1c8e06c02362149328d01e1 Author: Masatake YAMATO Date: Thu Oct 3 15:14:10 2024 +0900 lsfd: finalize abst_class This fixes a memory leak of still-reachable kind. Signed-off-by: Masatake YAMATO lsfd-cmd/lsfd.c | 1 + 1 file changed, 1 insertion(+) commit 1e1f40d7c62f1be5d8206e4cc672c363d3e83e67 Author: Masatake YAMATO Date: Wed Oct 2 05:58:34 2024 +0900 lsfd,test_mkfds: (refactor) specify the variable itself as an operand of sizeof Signed-off-by: Masatake YAMATO lsfd-cmd/lsfd.c | 4 ++-- tests/helpers/test_mkfds.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 6a60a59f1ce873cc136820ecf54c5c49b158530d Author: Masatake YAMATO Date: Thu Oct 3 11:41:56 2024 +0900 tests: (test_mkfds) add a missing word in a comment Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds_ppoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d6502a5f903b6880b21a07f034b84219fad07dd5 Author: Masatake YAMATO Date: Thu Sep 19 04:32:42 2024 +0900 tests: (lsfd) verify SOCK.NETID and ENDPOINTS for sockets made in another netns This is for testing PR #3200. Signed-off-by: Masatake YAMATO tests/expected/lsfd/mkfds-foreign-sockets | 12 +++++ tests/ts/lsfd/mkfds-foreign-sockets | 80 +++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) commit b6b1b091ce55c3bdc13dfe4cb6c1daf347990b91 Author: Masatake YAMATO Date: Thu Sep 19 05:01:49 2024 +0900 tests: (lsns) verify the code finding an isolated netns via socket This is for testing PR #3200. Signed-off-by: Masatake YAMATO tests/expected/lsns/netns-from-sock | 12 ++++++ tests/ts/lsns/netns-from-sock | 77 +++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) commit 7b234963e20ab2763ecf62c3bd8c0b5823929f77 Merge: f1c26f015 f2cf41118 Author: Karel Zak Date: Wed Oct 2 10:06:10 2024 +0200 Merge branch 'PR/libmount-xnocanon' of https://github.com/karelzak/util-linux-work * 'PR/libmount-xnocanon' of https://github.com/karelzak/util-linux-work: mount: (man) add note about symlink over symlink tests: add X-mount.nocanonicalize tests libmount: support bind symlink over symlink libmount: add X-mount.nocanonicalize[=source|target] commit 5361a1f42c4987e239bf217be0a5e93f51e9a432 Author: Masatake YAMATO Date: Thu Sep 19 23:23:09 2024 +0900 tests: (nsenter) verify the code entering the network ns via socket made in the ns This is for testing PR #3200. Signed-off-by: Masatake YAMATO tests/commands.sh | 1 + tests/expected/nsenter/enter-via-socket | 2 ++ tests/ts/nsenter/enter-via-socket | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) commit 45b5ad380df387fa303c7ca08b73f6e42b2393cd Author: Masatake YAMATO Date: Sat Sep 21 05:10:38 2024 +0900 tests: (test_sysinfo) add a helper to detect NS_GET_USERNS This can be used to detect qemu-user returning ENOSYS for invalid ioctl numbers. Signed-off-by: Masatake YAMATO tests/helpers/test_sysinfo.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) commit 02d9903ed68919bf2a511d7ed795ddbf1390a41f Author: Masatake YAMATO Date: Thu Sep 19 04:04:40 2024 +0900 tests: (test_mkfds::foreign-sockets) new factory The way to make a socket in another net namespace is suggested by Dmitry Safonov. Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) commit 5ac589475166d0e30c5a4ad73ebf2d8398fa78b7 Author: Masatake YAMATO Date: Thu Sep 19 04:01:23 2024 +0900 tests: (test_mkfds, refactor) use xmemdup newly added in xalloc.h Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 2afb7e6ef49e10163f231a74fb7600637f9c309d Author: Masatake YAMATO Date: Fri Sep 27 03:58:07 2024 +0900 xalloc.h: add xmemdup Signed-off-by: Masatake YAMATO include/xalloc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 659a698b7eec731d5615ca8c3fa66c9b7e0d57d3 Author: Masatake YAMATO Date: Sat Sep 21 04:22:00 2024 +0900 tests: (test_mkfds) fix a typo in an option name Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5a22520783325fde1011a52e3c9fdb907455937d Author: Masatake YAMATO Date: Fri Sep 27 04:11:24 2024 +0900 test_mkfds: (cosmetic) remove whitespaces between a function and its arguments Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f2cf411186b52d549ca084b913a445f9aef22398 Author: Karel Zak Date: Thu Sep 26 15:56:02 2024 +0200 mount: (man) add note about symlink over symlink Signed-off-by: Karel Zak sys-utils/mount.8.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit a992cec68cac29ffbb17a792a198af5163bf0a77 Author: Karel Zak Date: Thu Sep 26 15:49:37 2024 +0200 tests: add X-mount.nocanonicalize tests Signed-off-by: Karel Zak tests/expected/mount/xnocanon-file-over-symlink | 2 + tests/expected/mount/xnocanon-symlink-over-file | 2 + tests/expected/mount/xnocanon-symlink-over-symlink | 2 + tests/ts/mount/xnocanon | 80 ++++++++++++++++++++++ 4 files changed, 86 insertions(+) commit f1c26f0154ec683065109d776e65e568e3917c79 Merge: e222504fb 89cdf55ea Author: Karel Zak Date: Tue Oct 1 13:56:52 2024 +0200 Merge branch 'test_mkfds-dont-free-and-close-when-exit-with-error' of https://github.com/masatake/util-linux * 'test_mkfds-dont-free-and-close-when-exit-with-error' of https://github.com/masatake/util-linux: tests: (test_mkfds) don't close fds and free memory objects when exiting with EXIT_FAILURE tests: (test_mkfds,refactor) simplify nested if conditions tests: (test_mkfds) save errno before calling system calls for clean-up tests: (test_mkfds, cosmetic) add an empty line before the definition of struct sysvshm_data commit e222504fbe6f0d5ef849507a6badf5b07f80d66a Merge: 93ba23d81 9f0e65846 Author: Karel Zak Date: Tue Oct 1 13:55:21 2024 +0200 Merge branch 'PR/libfdisk-EBR-list' of https://github.com/karelzak/util-linux-work * 'PR/libfdisk-EBR-list' of https://github.com/karelzak/util-linux-work: libfdisk: (dos) ignore incomplete EBR for non-wholedisk commit 8aba5a4989a837e4b4883e61c656c2b8a7927db4 Author: Thomas Weißschuh Date: Fri Sep 27 22:13:15 2024 +0200 ci: use clang 19 Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 89cdf55eac5606509253c04ec8b74bad6f2963b0 Author: Masatake YAMATO Date: Sat Sep 28 02:06:19 2024 +0900 tests: (test_mkfds) don't close fds and free memory objects when exiting with EXIT_FAILURE However, we keep calling unlink even when exiting with EXIT_FAILURE not to pollute file system. Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 371 ++------------------------------------------- 1 file changed, 12 insertions(+), 359 deletions(-) commit 0299a05618c1070bccb0bf8ef8d3c8a250d817a6 Author: Masatake YAMATO Date: Sat Sep 28 01:44:21 2024 +0900 tests: (test_mkfds,refactor) simplify nested if conditions Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit 6067787685ca8988c3894deb13c31d68fd794cc0 Author: Masatake YAMATO Date: Sat Sep 28 01:39:52 2024 +0900 tests: (test_mkfds) save errno before calling system calls for clean-up Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 4 ++++ 1 file changed, 4 insertions(+) commit b60b8ca0626c084f9356e8ca4c88e5e563951cca Author: Masatake YAMATO Date: Sat Sep 28 01:23:21 2024 +0900 tests: (test_mkfds, cosmetic) add an empty line before the definition of struct sysvshm_data Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 1 + 1 file changed, 1 insertion(+) commit 22cda2f71cdf2c75ac01cdbedf3a57b146186812 Author: Karel Zak Date: Thu Sep 26 14:44:36 2024 +0200 libmount: support bind symlink over symlink The new mount API allows for the use of AT_SYMLINK_NOFOLLOW when opening a mount tree (aka the "mount source" for libmount). As a result, you can now replace one symlink with another by using a bind mount. By default, the mount(8) command follows symlinks and canonicalizes all paths. However, with the X-mount.nocanonicalize=source option, it is possible to open the symlink itself. Similarly, with the X-mount.nocanonicalize=target option, the path of the mount point can be kept as the original symlink. (Using X-mount.nocanonicalize without any argument works for both the "source" and "target".) Example: # file /mnt/test/symlinkA /mnt/test/symlinkB /mnt/test/symlinkA: symbolic link to /mnt/test/fileA /mnt/test/symlinkB: symbolic link to /mnt/test/fileB # strace -e open_tree,move_mount \ ./mount --bind -o X-mount.nocanonicalize /mnt/test/symlinkA /mnt/test/symlinkB ... open_tree(AT_FDCWD, "/mnt/test/symlinkA", OPEN_TREE_CLONE|OPEN_TREE_CLOEXEC|AT_SYMLINK_NOFOLLOW) = 3 move_mount(3, "", AT_FDCWD, "/mnt/test/symlinkB", MOVE_MOUNT_F_EMPTY_PATH) = 0 # ls -la /mnt/test/symlinkB lrwxrwxrwx 1 root root 15 Sep 26 13:41 /mnt/test/symlinkB -> /mnt/test/fileA The result is that 'symlinkB' is still a symlink, but it now points to a different file. This commit also modifies umount(8) because it does not work with symlinks by default. The solution is to call umount2(UMOUNT_NOFOLLOW) for symlinks after a failed regular umount(). For example: # strace -e umount,umount2 \ ./umount /mnt/test/symlinkB ... umount2("/mnt/test/symlinkB", 0) = -1 EINVAL (Invalid argument) umount2("/mnt/test/symlinkB", UMOUNT_NOFOLLOW) = 0 Signed-off-by: Karel Zak libmount/src/context.c | 3 +++ libmount/src/context_umount.c | 10 ++++++++++ 2 files changed, 13 insertions(+) commit 93ba23d81326f64f2bd53d5ad00fa0a3d0ffb2a6 Merge: d159b58bf 2b12ea3a8 Author: Karel Zak Date: Wed Sep 25 13:43:50 2024 +0200 Merge branch 'meson/pidfd_getfd' of https://github.com/t-8ch/util-linux * 'meson/pidfd_getfd' of https://github.com/t-8ch/util-linux: meson: test for pidfd_getfd() commit d159b58bfd01bc261107c5a7a9e00d1715f33f14 Author: Thomas Weißschuh Date: Wed Sep 25 08:12:45 2024 +0200 login-utils/su-common: Validate all return values again The additional coded added in commit d6564701e812 ("login-utils/su-common: Check that the user didn't change during PAM transaction") was inserted in between the assignment and tests of "rc", making the return value unchecked. Add a new explicit check. Signed-off-by: Thomas Weißschuh login-utils/su-common.c | 2 ++ 1 file changed, 2 insertions(+) commit 2b12ea3a8966a6f3f1f9dd225d67dfcb362fd07d Author: Thomas Weißschuh Date: Wed Sep 25 08:09:29 2024 +0200 meson: test for pidfd_getfd() Commit 55c7120accab ("nsenter: Provide an option to join target process's socket net namespace") added stubs for pidfd_getfd() but didn't add the code for meson to check if the function is already available. Signed-off-by: Thomas Weißschuh meson.build | 1 + 1 file changed, 1 insertion(+) commit 42aa4cd4f6383875d4163620b0590c4ab659b68b 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 configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit d87ac5c6f2df44987528e03f603a35ab457f052c 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 configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 9f0e6584696de7533e5571107d03f3426a359138 Author: Karel Zak Date: Tue Sep 24 13:37:13 2024 +0200 libfdisk: (dos) ignore incomplete EBR for non-wholedisk The logical partitions are defined by a chain of extended partitions, with the beginning of the chain located on the whole disk device. If a user runs "fdisk --list /dev/sda4", libfdisk cannot calculate proper offsets for the items in the chain, resulting in the following error message: Failed to read extended partition table (offset=22528): Invalid argument This error message may confuse users and is unnecessary when fdisk is used in list-only mode (--list option). It would be sufficient to only print the content of the partition without the error message and not continue to the next item in the chain. However, in write mode (without --list), the error message will still be displayed as it is potentially dangerous to edit the EBR table. Addresses: https://issues.redhat.com/browse/RHEL-59867 Signed-off-by: Karel Zak libfdisk/src/dos.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit f56453448b9057d568ac908dabd79ef0ade6bed5 Merge: 466ed6db5 d6564701e Author: Karel Zak Date: Tue Sep 24 12:54:53 2024 +0200 Merge branch 'su-double-check-pam-user' of https://github.com/3v1n0/util-linux * 'su-double-check-pam-user' of https://github.com/3v1n0/util-linux: login-utils/su-common: Check that the user didn't change during PAM transaction commit a904aefe307359700dc64e3ad524baa6ee19e82a Author: Karel Zak Date: Thu Sep 19 11:13:22 2024 +0200 libmount: add X-mount.nocanonicalize[=source|target] The new kernel mount API can bind-mount over a symlink. However, this feature does not work with libmount because it canonicalizes all paths by default. A possible workaround is to use the --no-canonicalize option on the mount(8) command line, but this is a heavy-handed solution as it disables all conversions for all paths and tags (such as LABEL=) and fstab processing. This commit introduces the X-mount.nocanonicalize userspace mount option to control canonicalization. It only affects paths used for mounting and does not affect tags and searching in fstab. Additionally, this setting possible to use in fstab. If the optional argument [=source|target] is not specified, then paths canonicalization is disabled for both the source and target paths. Adresses: https://github.com/util-linux/util-linux/issues/2370 Signed-off-by: Karel Zak libmount/src/context.c | 37 +++++++++++++++++++++++++++++++++++-- libmount/src/context_mount.c | 2 +- libmount/src/mountP.h | 2 ++ sys-utils/mount.8.adoc | 9 ++++++++- 4 files changed, 46 insertions(+), 4 deletions(-) commit 466ed6db5fb7e976cae8e0ab8fd45dc505070e99 Merge: bc52ed77e 722f4284b Author: Karel Zak Date: Tue Sep 24 12:39:35 2024 +0200 Merge branch 'test_mkfds--fix-typos' of https://github.com/masatake/util-linux * 'test_mkfds--fix-typos' of https://github.com/masatake/util-linux: tests: (test_mkfds) fix the way to detect errors in fork(2) commit bc52ed77ea5fa75edfef89ac12779e370307ebd0 Merge: 21b3e3d12 50ff6cbfe Author: Karel Zak Date: Tue Sep 24 12:38:47 2024 +0200 Merge branch 'master' of https://github.com/hramrach/util-linux * 'master' of https://github.com/hramrach/util-linux: partx: Fix example in man page commit 21b3e3d12d9ad8b079dfdf90cb0a0c5f3a05915b Author: Karel Zak Date: Tue Sep 24 12:34:17 2024 +0200 bash-completion: add nsenter --net-socket Signed-off-by: Karel Zak bash-completion/nsenter | 1 + 1 file changed, 1 insertion(+) commit 3041c1c56957ce664fa31c1fb7cb8eb57510e3a0 Merge: 84031abc8 3c6adc940 Author: Karel Zak Date: Tue Sep 24 12:31:39 2024 +0200 Merge branch 'sock-netns' of https://github.com/0x7f454c46/util-linux * 'sock-netns' of https://github.com/0x7f454c46/util-linux: lsns: List network namespaces that are held by a socket lsfd: Gather information on target socket's net namespace nsenter: Provide an option to join target process's socket net namespace commit 84031abc87f3e8fd4ff9796ce6c738646d7b95ed Merge: f1a6ad112 937c13872 Author: Karel Zak Date: Tue Sep 24 12:28:59 2024 +0200 Merge branch 'patch-2' of https://github.com/firasuke/util-linux * 'patch-2' of https://github.com/firasuke/util-linux: Fix typos in TODO commit f1a6ad112585f0c4b974e8329358d33bcaa0b477 Merge: 3b026868d ff8752841 Author: Karel Zak Date: Tue Sep 24 12:28:37 2024 +0200 Merge branch 'patch-1' of https://github.com/firasuke/util-linux * 'patch-1' of https://github.com/firasuke/util-linux: Update description of --disable-poman in configure.ac commit 3b026868da87ce2a9ca9abbac48e0a4784452e22 Author: Michal Suchanek Date: Tue Sep 24 11:05:59 2024 +0200 CI: Downgrade checkout version for compat build The current checkout action does not run on Ubuntu 18.04 /usr/bin/docker exec 90a3de3652fb2e69b0cf70fc8567dba6b1a25bf1a6645236d19bb6f1486c6158 sh -c "cat /etc/*release | grep ^ID" /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node) Fixes: #3215 .github/workflows/cibuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 50ff6cbfe5bf0fa20dc61631346b2d6ccafc0b41 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 disk-utils/partx.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3c6adc940f902072c02f8df2457e23ba3ca56acc Author: Dmitry Safonov <0x7f454c46@gmail.com> Date: Wed Sep 18 18:48:54 2024 +0100 lsns: List network namespaces that are held by a socket While parsing process's fds, check the network namespace of the socket. That will provide fuller list of namespaces in the system. Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com> sys-utils/lsns.c | 81 +++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 63 insertions(+), 18 deletions(-) commit 28dcffb67bafae89053d08615178de05bb790543 Author: Dmitry Safonov <0x7f454c46@gmail.com> Date: Tue Sep 17 00:18:12 2024 +0100 lsfd: Gather information on target socket's net namespace A sample of the output before (with SOCK.NETNS): COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME SOCK.NETNS [..] > tmp_ipv4 114075 root 0 rw---- CHR pts:7 27 10 /dev/pts/7 > tmp_ipv4 114075 root 1 rw---- CHR pts:7 27 10 /dev/pts/7 > tmp_ipv4 114075 root 2 rw---- CHR pts:7 27 10 /dev/pts/7 > tmp_ipv4 114075 root 3 r----- REG nsfs 3 4026531840 net:[4026531840] > tmp_ipv4 114075 root 4 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 5 r----- REG nsfs 3 4026532864 net:[4026532864] > tmp_ipv4 114075 root 6 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 7 r----- REG nsfs 3 4026532947 net:[4026532947] > tmp_ipv4 114075 root 8 rw---- TCP sockfs 10 100750 state=listen laddr=10.0.254.1:7010 4026532947 > tmp_ipv4 114075 root 9 r----- REG nsfs 3 4026533109 net:[4026533109] > tmp_ipv4 114075 root 10 rw---- TCP sockfs 10 100763 socket:[100763] > tmp_ipv4 114075 root 11 rw---- TCP sockfs 10 100776 state=listen laddr=10.0.254.1:7012 4026533109 > tmp_ipv4 114075 root 12 r----- REG nsfs 3 4026533271 net:[4026533271] > tmp_ipv4 114075 root 13 rw---- TCP sockfs 10 100789 socket:[100789] > tmp_ipv4 114075 root 14 rw---- TCP sockfs 10 100802 state=listen laddr=10.0.254.1:7014 4026533271 > tmp_ipv4 114075 root 15 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 16 r----- REG nsfs 3 4026532783 net:[4026532783] > tmp_ipv4 114075 root 17 rw---- TCP sockfs 10 100815 state=listen laddr=10.0.254.1:7015 4026532783 > tmp_ipv4 114075 root 18 r----- REG nsfs 3 4026533511 net:[4026533511] > tmp_ipv4 114075 root 19 rw---- TCP sockfs 10 100828 socket:[100828] > tmp_ipv4 114075 root 20 rw---- TCP sockfs 10 100841 state=listen laddr=10.0.254.1:7017 4026533511 > tmp_ipv4 114075 root 21 r----- REG nsfs 3 4026533673 net:[4026533673] > tmp_ipv4 114075 root 22 rw---- TCP sockfs 10 100854 socket:[100854] > tmp_ipv4 114075 root 23 rw---- TCP sockfs 10 100867 state=listen laddr=10.0.254.1:7019 4026533673 > tmp_ipv4 114075 root 24 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 25 r----- REG nsfs 3 4026533754 net:[4026533754] > tmp_ipv4 114075 root 26 rw---- TCP sockfs 10 100880 state=listen laddr=10.0.254.1:7020 4026533754 > tmp_ipv4 114075 root 27 r----- REG nsfs 3 4026532504 net:[4026532504] > tmp_ipv4 114075 root 28 rw---- TCP sockfs 10 100893 socket:[100893] > tmp_ipv4 114075 root 29 rw---- TCP sockfs 10 100906 state=listen laddr=10.0.254.1:7022 4026532504 > tmp_ipv4 114075 root 30 r----- REG nsfs 3 4026533999 net:[4026533999] > tmp_ipv4 114075 root 31 rw---- TCP sockfs 10 100919 socket:[100919] > tmp_ipv4 114075 root 32 rw---- TCP sockfs 10 100932 state=listen laddr=10.0.254.1:7024 4026533999 > tmp_ipv4 114075 root 33 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 34 r----- REG nsfs 3 4026534080 net:[4026534080] > tmp_ipv4 114075 root 35 rw---- TCP sockfs 10 100945 state=listen laddr=10.0.254.1:7025 4026534080 > tmp_ipv4 114075 root 36 r----- REG nsfs 3 4026534242 net:[4026534242] > tmp_ipv4 114075 root 37 rw---- TCP sockfs 10 100958 socket:[100958] > tmp_ipv4 114075 root 38 rw---- TCP sockfs 10 100971 state=listen laddr=10.0.254.1:7027 4026534242 > tmp_ipv4 114075 root 39 r----- REG nsfs 3 4026534404 net:[4026534404] > tmp_ipv4 114075 root 40 rw---- TCP sockfs 10 100984 socket:[100984] > tmp_ipv4 114075 root 41 rw---- TCP sockfs 10 100997 state=listen laddr=10.0.254.1:7029 4026534404 > tmp_ipv4 114075 root 42 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 43 r----- REG nsfs 3 4026534484 net:[4026534484] > tmp_ipv4 114075 root 44 rw---- TCP sockfs 10 101010 state=listen laddr=10.0.254.1:7030 4026534484 > tmp_ipv4 114075 root 45 r----- REG nsfs 3 4026534646 net:[4026534646] > tmp_ipv4 114075 root 46 rw---- TCP sockfs 10 101023 socket:[101023] > tmp_ipv4 114075 root 47 rw---- TCP sockfs 10 101036 state=listen laddr=10.0.254.1:7032 4026534646 > tmp_ipv4 114075 root 48 r----- REG nsfs 3 4026534808 net:[4026534808] > tmp_ipv4 114075 root 49 rw---- TCP sockfs 10 101049 socket:[101049] > tmp_ipv4 114075 root 50 rw---- TCP sockfs 10 101062 state=listen laddr=10.0.254.1:7034 4026534808 > tmp_ipv4 114075 root 51 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 52 r----- REG nsfs 3 4026534889 net:[4026534889] > tmp_ipv4 114075 root 53 rw---- TCP sockfs 10 101075 state=listen laddr=10.0.254.1:7035 4026534889 > tmp_ipv4 114075 root 54 r----- REG nsfs 3 4026535051 net:[4026535051] > tmp_ipv4 114075 root 55 rw---- TCP sockfs 10 101088 socket:[101088] > tmp_ipv4 114075 root 56 rw---- TCP sockfs 10 101101 state=listen laddr=10.0.254.1:7037 4026535051 > tmp_ipv4 114075 root 57 r----- REG nsfs 3 4026535213 net:[4026535213] > tmp_ipv4 114075 root 58 rw---- TCP sockfs 10 101114 socket:[101114] > tmp_ipv4 114075 root 59 rw---- TCP sockfs 10 101127 state=listen laddr=10.0.254.1:7039 4026535213 > tmp_ipv4 114075 root 60 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 61 r----- REG nsfs 3 4026535294 net:[4026535294] > tmp_ipv4 114075 root 62 rw---- TCP sockfs 10 101140 state=listen laddr=10.0.254.1:7040 4026535294 [..] A sample of the output after: > COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME SOCK.NETNS [..] > tmp_ipv4 114075 root 0 rw---- CHR pts:7 27 10 /dev/pts/7 > tmp_ipv4 114075 root 1 rw---- CHR pts:7 27 10 /dev/pts/7 > tmp_ipv4 114075 root 2 rw---- CHR pts:7 27 10 /dev/pts/7 > tmp_ipv4 114075 root 3 r----- REG nsfs 3 4026531840 net:[4026531840] > tmp_ipv4 114075 root 4 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 5 r----- REG nsfs 3 4026532864 net:[4026532864] > tmp_ipv4 114075 root 6 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 7 r----- REG nsfs 3 4026532947 net:[4026532947] > tmp_ipv4 114075 root 8 rw---- TCP sockfs 10 100750 state=listen laddr=10.0.254.1:7010 4026532947 > tmp_ipv4 114075 root 9 r----- REG nsfs 3 4026533109 net:[4026533109] > tmp_ipv4 114075 root 10 rw---- TCP sockfs 10 100763 state=listen laddr=10.0.254.1:7011 4026533028 > tmp_ipv4 114075 root 11 rw---- TCP sockfs 10 100776 state=listen laddr=10.0.254.1:7012 4026533109 > tmp_ipv4 114075 root 12 r----- REG nsfs 3 4026533271 net:[4026533271] > tmp_ipv4 114075 root 13 rw---- TCP sockfs 10 100789 state=listen laddr=10.0.254.1:7013 4026533190 > tmp_ipv4 114075 root 14 rw---- TCP sockfs 10 100802 state=listen laddr=10.0.254.1:7014 4026533271 > tmp_ipv4 114075 root 15 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 16 r----- REG nsfs 3 4026532783 net:[4026532783] > tmp_ipv4 114075 root 17 rw---- TCP sockfs 10 100815 state=listen laddr=10.0.254.1:7015 4026532783 > tmp_ipv4 114075 root 18 r----- REG nsfs 3 4026533511 net:[4026533511] > tmp_ipv4 114075 root 19 rw---- TCP sockfs 10 100828 state=listen laddr=10.0.254.1:7016 4026533430 > tmp_ipv4 114075 root 20 rw---- TCP sockfs 10 100841 state=listen laddr=10.0.254.1:7017 4026533511 > tmp_ipv4 114075 root 21 r----- REG nsfs 3 4026533673 net:[4026533673] > tmp_ipv4 114075 root 22 rw---- TCP sockfs 10 100854 state=listen laddr=10.0.254.1:7018 4026533592 > tmp_ipv4 114075 root 23 rw---- TCP sockfs 10 100867 state=listen laddr=10.0.254.1:7019 4026533673 > tmp_ipv4 114075 root 24 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 25 r----- REG nsfs 3 4026533754 net:[4026533754] > tmp_ipv4 114075 root 26 rw---- TCP sockfs 10 100880 state=listen laddr=10.0.254.1:7020 4026533754 > tmp_ipv4 114075 root 27 r----- REG nsfs 3 4026532504 net:[4026532504] > tmp_ipv4 114075 root 28 rw---- TCP sockfs 10 100893 state=listen laddr=10.0.254.1:7021 4026533835 > tmp_ipv4 114075 root 29 rw---- TCP sockfs 10 100906 state=listen laddr=10.0.254.1:7022 4026532504 > tmp_ipv4 114075 root 30 r----- REG nsfs 3 4026533999 net:[4026533999] > tmp_ipv4 114075 root 31 rw---- TCP sockfs 10 100919 state=listen laddr=10.0.254.1:7023 4026533918 > tmp_ipv4 114075 root 32 rw---- TCP sockfs 10 100932 state=listen laddr=10.0.254.1:7024 4026533999 > tmp_ipv4 114075 root 33 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 34 r----- REG nsfs 3 4026534080 net:[4026534080] > tmp_ipv4 114075 root 35 rw---- TCP sockfs 10 100945 state=listen laddr=10.0.254.1:7025 4026534080 > tmp_ipv4 114075 root 36 r----- REG nsfs 3 4026534242 net:[4026534242] > tmp_ipv4 114075 root 37 rw---- TCP sockfs 10 100958 state=listen laddr=10.0.254.1:7026 4026534161 > tmp_ipv4 114075 root 38 rw---- TCP sockfs 10 100971 state=listen laddr=10.0.254.1:7027 4026534242 > tmp_ipv4 114075 root 39 r----- REG nsfs 3 4026534404 net:[4026534404] > tmp_ipv4 114075 root 40 rw---- TCP sockfs 10 100984 state=listen laddr=10.0.254.1:7028 4026534323 > tmp_ipv4 114075 root 41 rw---- TCP sockfs 10 100997 state=listen laddr=10.0.254.1:7029 4026534404 > tmp_ipv4 114075 root 42 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 43 r----- REG nsfs 3 4026534484 net:[4026534484] > tmp_ipv4 114075 root 44 rw---- TCP sockfs 10 101010 state=listen laddr=10.0.254.1:7030 4026534484 > tmp_ipv4 114075 root 45 r----- REG nsfs 3 4026534646 net:[4026534646] > tmp_ipv4 114075 root 46 rw---- TCP sockfs 10 101023 state=listen laddr=10.0.254.1:7031 4026534565 > tmp_ipv4 114075 root 47 rw---- TCP sockfs 10 101036 state=listen laddr=10.0.254.1:7032 4026534646 > tmp_ipv4 114075 root 48 r----- REG nsfs 3 4026534808 net:[4026534808] > tmp_ipv4 114075 root 49 rw---- TCP sockfs 10 101049 state=listen laddr=10.0.254.1:7033 4026534727 > tmp_ipv4 114075 root 50 rw---- TCP sockfs 10 101062 state=listen laddr=10.0.254.1:7034 4026534808 > tmp_ipv4 114075 root 51 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 52 r----- REG nsfs 3 4026534889 net:[4026534889] > tmp_ipv4 114075 root 53 rw---- TCP sockfs 10 101075 state=listen laddr=10.0.254.1:7035 4026534889 > tmp_ipv4 114075 root 54 r----- REG nsfs 3 4026535051 net:[4026535051] > tmp_ipv4 114075 root 55 rw---- TCP sockfs 10 101088 state=listen laddr=10.0.254.1:7036 4026534970 > tmp_ipv4 114075 root 56 rw---- TCP sockfs 10 101101 state=listen laddr=10.0.254.1:7037 4026535051 > tmp_ipv4 114075 root 57 r----- REG nsfs 3 4026535213 net:[4026535213] > tmp_ipv4 114075 root 58 rw---- TCP sockfs 10 101114 state=listen laddr=10.0.254.1:7038 4026535132 > tmp_ipv4 114075 root 59 rw---- TCP sockfs 10 101127 state=listen laddr=10.0.254.1:7039 4026535213 > tmp_ipv4 114075 root 60 r----- REG nsfs 3 4026532537 net:[4026532537] > tmp_ipv4 114075 root 61 r----- REG nsfs 3 4026535294 net:[4026535294] > tmp_ipv4 114075 root 62 rw---- TCP sockfs 10 101140 state=listen laddr=10.0.254.1:7040 4026535294 [..] Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com> lsfd-cmd/lsfd.c | 4 ++++ lsfd-cmd/lsfd.h | 1 + lsfd-cmd/sock-xinfo.c | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) commit 55c7120accab83c5837c2182cd6b4637b0c21c44 Author: Dmitry Safonov <0x7f454c46@gmail.com> Date: Fri Sep 13 23:29:55 2024 +0100 nsenter: Provide an option to join target process's socket net namespace The network namespace of a socket can be different from the target process. Previously there were some userspace issues where a net-namespace was held alive by a socket leak. For this purpose Arista's linux kernel has a patch to provide socket => netns map by procfs pid/fd directory links. Add nsenter option to join the network namespace of a target process' socket. Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com> configure.ac | 2 ++ include/pidfd-utils.h | 15 ++++++++++++++ sys-utils/nsenter.1.adoc | 3 +++ sys-utils/nsenter.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 71 insertions(+), 1 deletion(-) commit 937c13872cb6a4d9f3e10537f00e1af3abfa8e8a Author: Firas Khalil Khana Date: Mon Sep 23 23:41:01 2024 +0300 Fix typos in TODO Documentation/TODO | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit ff8752841ddc94f8867088b0c0002ed830f3300b Author: Firas Khalil Khana Date: Mon Sep 23 21:17:42 2024 +0300 Update description of --disable-poman in configure.ac configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 81ea117e0396274808a77d40bf11af44ea047285 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 Makefile.am | 1 + libuuid/uuid.pc.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit 7a78552b5cdb911fc579465c9c575bd42a872bd2 Merge: f9991659d 3d68304c3 Author: Karel Zak Date: Mon Sep 23 11:23:38 2024 +0200 Merge branch 'lsns--dont-close--1' of https://github.com/masatake/util-linux * 'lsns--dont-close--1' of https://github.com/masatake/util-linux: lsns: don't call close(2) if unnecessary commit f9991659d14995d5333006c979872c433fb90865 Merge: 2213bdc64 3ac22836c Author: Karel Zak Date: Mon Sep 23 11:21:17 2024 +0200 Merge branch 'test_mkfds--describing-return-values' of https://github.com/masatake/util-linux * 'test_mkfds--describing-return-values' of https://github.com/masatake/util-linux: test: (test_mkfds) add -O option for describing output values commit 2213bdc646f65b52dd511d0c785d7de5cfa683aa Author: Rosen Penev Date: Sun Sep 22 11:54:46 2024 -0700 meson: don't install getopt examples if disabled No need to do so. Signed-off-by: Rosen Penev misc-utils/meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 3ac22836ce7a24788c0d0ee3ac8f35cb78056650 Author: Masatake YAMATO Date: Sat Sep 21 06:11:36 2024 +0900 test: (test_mkfds) add -O option for describing output values Some factories prints some extra values in addition to the pid of the process opening file descriptors. Unlike parameters, test_mkfds didn't provide the way to explain the extra values. The new option --output-values/-O provies it. Example output: $ ./test_mkfds -O eventfd NTH DESCRIPTION 0 the pid owning the file descriptor(s) 1 the pid of child process $ ./test_mkfds -O cdev-tun NTH DESCRIPTION 0 the pid owning the file descriptor(s) 1 the network device name Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 63 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 51 insertions(+), 12 deletions(-) commit d6564701e81254064ace56b57e6090620ed29d28 Author: Marco Trevisan (Treviño) Date: Fri Sep 20 17:23:16 2024 +0200 login-utils/su-common: Check that the user didn't change during PAM transaction PAM modules can change the user during their execution, in such case su would still use the user that has been provided giving potentially access to another user with the credentials of another one. So prevent this to happen, by ensuring that the final PAM user is matching the one required login-utils/su-common.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 3d68304c3b57633c0757b5d00c59168b2144bc31 Author: Masatake YAMATO Date: Fri Sep 20 01:15:11 2024 +0900 lsns: don't call close(2) if unnecessary Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 722f4284b2428744049db1ba3b32ada41cf8883c Author: Masatake YAMATO Date: Thu Sep 19 02:36:53 2024 +0900 tests: (test_mkfds) fix the way to detect errors in fork(2) Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d985dfec9275945aa24f0603cc61faac556ae855 Merge: 75f3568b6 8f6f35aeb Author: Karel Zak Date: Wed Sep 18 10:29:47 2024 +0200 Merge branch 'PR/sfdisk-discard' of https://github.com/karelzak/util-linux-work * 'PR/sfdisk-discard' of https://github.com/karelzak/util-linux-work: sfdisk: add --discard-free include/blkdev: share BLKDISCARD macros commit 75f3568b6cde6e703aea6ebc85deaa1c00926c56 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jun 6 07:37:46 2024 +0000 build(deps): bump actions/checkout from 1 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v1...v4) .github/workflows/cibuild.yml | 14 +++++++------- .github/workflows/codeql.yml | 2 +- .github/workflows/coverity.yml | 2 +- .github/workflows/differential-shellcheck.yml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) commit d897c216c2121e743791d3c5e94be1b7dc6e6e7d Merge: 20d0c0cd8 5aee3a1e6 Author: Karel Zak Date: Tue Sep 17 13:57:19 2024 +0200 Merge branch 'look/fix-completion' of https://github.com/ziyao233/util-linux * 'look/fix-completion' of https://github.com/ziyao233/util-linux: bash-completion: look: rewrite completion logic commit 8f6f35aeb63341ce90122259196501467e44734b Author: Karel Zak Date: Mon Sep 16 14:50:43 2024 +0200 sfdisk: add --discard-free Why do we need this? It can be difficult for end-users to discard unpartitioned areas using blkdiscard, as it requires using fdisk to obtain a list of free areas and then using blkdiscard with the correct --offset and --length options. It is less risky for end-users to use (s)fdisk, as they have a better understanding of the disk layout. Addresses: https://github.com/util-linux/util-linux/issues/2804 Signed-off-by: Karel Zak bash-completion/sfdisk | 1 + disk-utils/sfdisk.8.adoc | 7 +++++ disk-utils/sfdisk.c | 75 +++++++++++++++++++++++++++++++++++++++++++++ sys-utils/blkdiscard.8.adoc | 2 +- 4 files changed, 84 insertions(+), 1 deletion(-) commit 123d4de40dd96c1e720b1e87a6b17d362cc244ce Author: Karel Zak Date: Mon Sep 16 14:27:15 2024 +0200 include/blkdev: share BLKDISCARD macros Move BLKDISCARD* ioctl identifiers to the include/blkdev.h file to prevent duplicate definitions. Signed-off-by: Karel Zak disk-utils/fdisk.c | 3 --- include/blkdev.h | 12 +++++++++++- sys-utils/blkdiscard.c | 13 +------------ 3 files changed, 12 insertions(+), 16 deletions(-) commit 20d0c0cd847665e543a0c7e7bd65b210e0a90d61 Author: Thomas Weißschuh Date: Mon Sep 16 19:55:46 2024 +0200 ci: use upload action v4 The used v1 is deprecated and its usage generates errors. Use the current v4 instead. Signed-off-by: Thomas Weißschuh .github/workflows/cifuzz.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5aee3a1e6b0609acca371307f418f89e5a641136 Author: Yao Zi Date: Mon Sep 9 18:08:30 2024 +0000 bash-completion: look: rewrite completion logic look(1) opens /usr/share/dict/words as dictionary by default. Doing TAB completion for look(1) without the dictionary installed will result in popups like $ look look: /usr/share/dict/words: No such file or directory messing up the terminal. As /usr/share/dict/words is not shipped by quite a few distros nowadays and it should not be listed as a hard dependency of util-linux, we make sure the dictionary exists before calling look(1) when doing completion, avoiding these error messages. When completing the word without anything specified on the command line, alphabets and numbers instead of all words are listed as a hint, for better interacting experience. Signed-off-by: Yao Zi bash-completion/look | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) commit 311842735f29d80efe44e829559e1e5aedfeffd9 Merge: 7ab6dae89 a494f7220 Author: Karel Zak Date: Tue Sep 10 12:11:19 2024 +0200 Merge branch 'PR/hwclock-param' of github.com:karelzak/util-linux-work * 'PR/hwclock-param' of github.com:karelzak/util-linux-work: hwclock: add -param-index commit 7ab6dae899be6becde48babf1032930a98a0ac5e Author: Karel Zak Date: Mon Sep 9 12:02:34 2024 +0200 lsblk: update bash-completion/lsblk * update columns list * add --properties-by Signed-off-by: Karel Zak bash-completion/lsblk | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) commit ecd17e38534a1e242e0e2237cbb3e1be85ac6132 Author: Karel Zak Date: Mon Sep 9 11:45:48 2024 +0200 lsblk: update --help * Add missing "--properties-by" parameter. * Shorten some strings. Signed-off-by: Karel Zak misc-utils/lsblk.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit a494f7220ab0df730784f0f13ea917ea4b5c04dd Author: Karel Zak Date: Thu Sep 5 12:23:15 2024 +0200 hwclock: add -param-index Addresses: https://github.com/util-linux/util-linux/issues/3180 Signed-off-by: Karel Zak sys-utils/hwclock-rtc.c | 4 ++-- sys-utils/hwclock.c | 6 ++++++ sys-utils/hwclock.h | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) commit a3bf59a6f497a9314d4671ddd481235e2eecbbec Merge: 7d13654dd 3b7aeba58 Author: Karel Zak Date: Thu Sep 5 11:59:57 2024 +0200 Merge branch 'sg' of https://github.com/tmpgnh/util-linux * 'sg' of https://github.com/tmpgnh/util-linux: Optionally execute a program after group change commit 7d13654dd363c8be44044d0e071e99f99599fbda Merge: 0ddb3c3a0 579075976 Author: Karel Zak Date: Thu Sep 5 10:18:38 2024 +0200 Merge branch 'PR/env-whitelist' of github.com:karelzak/util-linux-work * 'PR/env-whitelist' of github.com:karelzak/util-linux-work: login: add LOGIN_ENV_SAFELIST /etc/login.def item su: use lib/env.c for --whitelist-environment env: add env_list_add_getenv() and env_list_add_getenvs() autotools: improve devel-non-docs config-gen scenario env: cleanup env_list API env: add "overwrite" argument to env_list_setenv() env: save parsed variables into ul_env_list tests: add su --whitelist-environment test commit 0ddb3c3a0c57757ae10c6728f6b64739d1ead5c2 Merge: 0032b4892 83efe3463 Author: Karel Zak Date: Thu Sep 5 10:17:24 2024 +0200 Merge branch 'fix_more' of https://github.com/ikspress/util-linux * 'fix_more' of https://github.com/ikspress/util-linux: more: fix compilation commit 0032b489225be2a01e17f460732015d1434d6c7a Author: Jan Engelhardt Date: Fri Aug 30 20:44:56 2024 +0000 lscpu: add procfs–sysfs dump from Milk-V Pioneer already in tree: rv64-linux: just a BeagleV Starlight SBC (no longer in production) rv64-visionfive2 is interesting because it's a system with an odd CPU count / mix of core types (4+1) new dump: rv64-milkvpioneer is interesting because it's arguably a server board, i.e. with a whole bunch of cores and NUMA nodes. [kzak@redhat.com: - add this commit message] Signed-off-by: Jan Engelhardt tests/expected/lscpu/lscpu-rv64-milkvpioneer | 152 ++++++++++++++++++++++++++ tests/ts/lscpu/dumps/rv64-milkvpioneer.tar.gz | Bin 0 -> 98132 bytes 2 files changed, 152 insertions(+) commit 83efe3463293de6a79c35bf33e5bdc4764fa35a8 Author: Yang Kun <91833768+ikspress@users.noreply.github.com> Date: Tue Sep 3 22:38:57 2024 +0800 more: fix compilation configure.ac | 2 +- text-utils/more.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) commit 579075976769ffc772012f82b1d2678f403ddb9a Author: Karel Zak Date: Wed Aug 28 12:10:50 2024 +0200 login: add LOGIN_ENV_SAFELIST /etc/login.def item It is possible to preserve the entire environment (-p), but it is rarely a good idea. The new configuration file item allows for specifying a list of variables to protect, such as locale-related environment variables. Addresses: https://github.com/util-linux/util-linux/pull/3159 Signed-off-by: Karel Zak login-utils/login.1.adoc | 6 +++++- login-utils/login.c | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) commit 65f1d00e7d0c559517e56f990425e5b583954954 Author: Karel Zak Date: Wed Aug 28 12:08:30 2024 +0200 su: use lib/env.c for --whitelist-environment Do not use a local implementation, instead use code from the lib/ directory. Signed-off-by: Karel Zak login-utils/su-common.c | 63 +++++++------------------------------------------ 1 file changed, 8 insertions(+), 55 deletions(-) commit f52cce59febb9c4f5f6a7f3f6f645801ca5abf15 Author: Karel Zak Date: Wed Aug 28 11:23:31 2024 +0200 env: add env_list_add_getenv() and env_list_add_getenvs() * Add env_list_add_getenv() to import a single variable from the environ[] array. The function may accept a default value if getenv() does not return anything. * Add env_list_add_getenvs() to import multiple variables from the environ[] array. Signed-off-by: Karel Zak include/env.h | 7 ++++++- lib/Makemodule.am | 2 +- lib/env.c | 43 ++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 49 insertions(+), 3 deletions(-) commit 6588c4cd4c144561891742ce65e97f7292beb077 Author: Karel Zak Date: Wed Sep 4 12:30:47 2024 +0200 autotools: improve devel-non-docs config-gen scenario Signed-off-by: Karel Zak tools/config-gen.d/devel-non-docs.conf | 3 +++ 1 file changed, 3 insertions(+) commit 8616dff420c817f6dbd3cd4d01e1186662c16a8f Author: Karel Zak Date: Wed Aug 28 10:24:41 2024 +0200 env: cleanup env_list API * rename env_from_fd() to env_list_from_fd() * rename remove_entry() to ul_remove_entry() Signed-off-by: Karel Zak include/env.h | 6 ++---- lib/env.c | 8 ++++---- sys-utils/nsenter.c | 2 +- text-utils/more.c | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) commit 0d87646bc53115636d7bb2bdf46a90df88aa6e46 Author: Karel Zak Date: Wed Sep 4 12:19:41 2024 +0200 env: add "overwrite" argument to env_list_setenv() Signed-off-by: Karel Zak include/env.h | 2 +- lib/env.c | 6 +++--- sys-utils/mount.c | 2 +- sys-utils/nsenter.c | 2 +- sys-utils/umount.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) commit aa789c1efcd28223308d010c830bc7f22c52927b Author: Karel Zak Date: Tue Aug 27 13:07:56 2024 +0200 env: save parsed variables into ul_env_list The struct ul_env_list is currently only used to store the value of env when sanitizing environ[]. It would be beneficial to also use the functions related to ul_env_list for other purposes. In order to do this, it is important to keep the NAME and VALUE components separate. * Accept non-terminated name and value for env_list_add(). * Add env_list_add_from_string() to add item to the list from a "name=value" string. * Add env_list_add_variable() to add item to the list using separate "name" and "value" strings. * Update __sanitize_env() to use env_list_add_from_string(). * Modify the test to use "abc" as the value instead of copying the variable name (with '=') to the value. Signed-off-by: Karel Zak include/env.h | 4 +++ lib/env.c | 87 ++++++++++++++++++++++++++++++++++++++++------------------- 2 files changed, 63 insertions(+), 28 deletions(-) commit 3489e86248361611db214a7b866cdc8e9b1d9a7a Author: Karel Zak Date: Wed Aug 28 12:23:25 2024 +0200 tests: add su --whitelist-environment test Signed-off-by: Karel Zak tests/commands.sh | 1 + tests/expected/su/environ | 4 ++++ tests/ts/su/environ | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) commit 5be86d47ad6d1bbdf6699e7cabc8dc663abfa1d7 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 sys-utils/chcpu.8.adoc | 2 ++ 1 file changed, 2 insertions(+) commit d4c819768fe5a666902d50a961cab770f81b5247 Author: Mete Durlu Date: Mon Sep 2 17:05:52 2024 +0200 chcpu(8): Fix typo Signed-off-by: Mete Durlu sys-utils/chcpu.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c9674e73a7fd96a19b45bb7756cc384dde846991 Author: Karel Zak Date: Mon Sep 2 14:21:40 2024 +0200 libfdisk: check alignment reset return codes Traditionally, there was only recalculation based on disk properties. However, since libfdisk now supports additional script headers to modify the default alignment, we need to check return codes. This is because users can specify nonsensical values. If we ignore the return codes, the library will report the issue multiple times and return an error to the application when creating a new disk label. Old version: >>> Script header accepted. >>> Last LBA specified by script is out of range. Last LBA specified by script is out of range. Last LBA specified by script is out of range. Failed to apply script headers, disk label not created: Numerical result out of range Fixed version: >>> Script header accepted. >>> Last LBA specified by script is out of range. Failed to apply script headers, disk label not created: Numerical result out of range. Signed-off-by: Karel Zak libfdisk/src/alignment.c | 20 +++++++++++++------- libfdisk/src/context.c | 3 +-- libfdisk/src/gpt.c | 5 ++++- libfdisk/src/label.c | 16 +++++++++++----- libfdisk/src/script.c | 8 ++++++-- 5 files changed, 35 insertions(+), 17 deletions(-) commit 4877d7f61a72e46aba3fc52f347d1cd74124dba5 Author: Karel Zak Date: Mon Sep 2 14:04:18 2024 +0200 sfdisk: ignore last-lba from script on --force The last LBA depends on the disk size. It seems like a good idea to ignore it when using the --force option, in order to make it possible to apply the script on smaller disks. Addresses: https://github.com/util-linux/util-linux/issues/3186 Signed-off-by: Karel Zak disk-utils/sfdisk.8.adoc | 2 +- disk-utils/sfdisk.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) commit 728659867e56378542ec86a3229a3d7cc973c76e Merge: 0c68c3d45 8d66c53d3 Author: Karel Zak Date: Thu Aug 29 11:55:28 2024 +0200 Merge branch 'patch-1' of https://github.com/hmaarrfk/util-linux * 'patch-1' of https://github.com/hmaarrfk/util-linux: Define EXIT_ENOSYS in test helpers commit 0c68c3d454b565dab1b5f454ed8a42df7b655c4b Merge: 1acc432ca 9c787eaac Author: Karel Zak Date: Thu Aug 29 11:54:21 2024 +0200 Merge branch 'PR/autotools-securelib' of github.com:karelzak/util-linux-work * 'PR/autotools-securelib' of github.com:karelzak/util-linux-work: autotools: fix securedir and pam_lastlog2 install commit 1acc432caf962a07a30bb9ae915a9670b4b265ed Merge: 803553567 8fb843b0f Author: Karel Zak Date: Thu Aug 29 11:53:42 2024 +0200 Merge branch 'spelling-and-typos' of https://github.com/mr-bronson/util-linux * 'spelling-and-typos' of https://github.com/mr-bronson/util-linux: fix it's vs. its, and some adjacent errors commit 8035535675b81a343c3edd201c8196831b171557 Merge: 25c6fc917 1399c7576 Author: Karel Zak Date: Thu Aug 29 11:52:31 2024 +0200 Merge branch 'PR/buildsys-lsfd-bpf' of github.com:karelzak/util-linux-work * 'PR/buildsys-lsfd-bpf' of github.com:karelzak/util-linux-work: meson: check for BPF_OBJ_NAME_LEN and linux/bpf.h autotools: Check for BPF_OBJ_NAME_LEN (required by lsfd) commit 3b7aeba581e4421f25b9a739c43eb5fe3bdb31be Author: Gábor Németh Date: Thu Aug 29 08:59:23 2024 +0200 Optionally execute a program after group change We accept a `-c` command option or possible second argument which is then invoked through the user's shell after the group change, as by the `sg` utility. The default is still running the shell itself. bash-completion/newgrp | 12 ++++++++++-- login-utils/newgrp.1.adoc | 9 ++++++++- login-utils/newgrp.c | 20 +++++++++++++------- 3 files changed, 31 insertions(+), 10 deletions(-) commit 8d66c53d34f4d79ba4d84ab868e3aabd722aa073 Author: Mark Harfouche Date: Wed Aug 28 22:02:06 2024 -0400 Define EXIT_ENOSYS in test helpers tests/helpers/test_mkfds.c | 1 + 1 file changed, 1 insertion(+) commit 8fb843b0f0090da47484dd4b6c7f4df373f09cc6 Merge: 70f8db2d8 25c6fc917 Author: Bron Potomac <122595269+mr-bronson@users.noreply.github.com> Date: Tue Aug 27 12:39:18 2024 +0000 Merge branch 'master' into spelling-and-typos commit 9c787eaac43f5f01146f792b0239f587e4b81202 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 Makefile.am | 6 +++--- configure.ac | 6 +++--- pam_lastlog2/src/Makemodule.am | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) commit 25c6fc917ae4d30243ba655081ee84a839f338ba Merge: ca7932962 e6aacb8dd Author: Karel Zak Date: Tue Aug 27 11:25:33 2024 +0200 Merge branch 'PR/findmnt-Q-tree' of github.com:karelzak/util-linux-work * 'PR/findmnt-Q-tree' of github.com:karelzak/util-linux-work: tests: update findmnt -Q tests findmnt: improve -Q to output tree commit ca793296272206a56af8e6ca8f77a044c5495b28 Author: Karel Zak Date: Tue Aug 27 11:14:01 2024 +0200 libmount: cleanup comments Signed-off-by: Karel Zak libmount/src/context.c | 4 ++-- libmount/src/context_umount.c | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) commit 70f8db2d87444131a11bdc620332b72e8ae7d629 Author: mr-bronson Date: Tue Aug 27 06:19:47 2024 +0000 fix it's vs. its, and some adjacent errors But still need rewrite of opaque comments @ libmount/src/context_umount.c:350-353 and libmount/src/context.c:1149-1150. Documentation/releases/v2.22-ReleaseNotes | 2 +- Documentation/releases/v2.25-ReleaseNotes | 2 +- Documentation/releases/v2.26-ReleaseNotes | 2 +- libblkid/src/Makemodule.am | 2 +- libblkid/src/superblocks/sysv.c | 4 ++-- libfdisk/src/partition.c | 2 +- libmount/src/Makemodule.am | 2 +- libmount/src/context.c | 4 ++-- libmount/src/context_umount.c | 2 +- misc-utils/findmnt.c | 2 +- schedutils/chrt.c | 2 +- sys-utils/chmem.8.adoc | 2 +- sys-utils/eject.c | 2 +- tests/ts/hexdump/highlighting | 8 ++++---- text-utils/column.1.adoc | 2 +- text-utils/hexdump.h | 4 ++-- 16 files changed, 22 insertions(+), 22 deletions(-) commit 1399c75764811398086b9e7bbb59c5ebfccf2310 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 meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 036d72749ca274294051b43fd66727061a772b9c 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 configure.ac | 5 +++++ 1 file changed, 5 insertions(+) commit e6aacb8ddbd6f22fbe59af001e890101a411fdc2 Author: Karel Zak Date: Mon Aug 26 13:46:54 2024 +0200 tests: update findmnt -Q tests Now the tree-like output is possible for "findmnt -Q". Signed-off-by: Karel Zak tests/expected/findmnt/filterQ-options | 60 ++++++++++---------- tests/expected/findmnt/filterQ-options-name | 4 +- tests/expected/findmnt/filterQ-options-nameval-neg | 64 +++++++++++----------- tests/expected/findmnt/filterQ-options-neg | 8 +-- tests/expected/findmnt/filterQ-options-no | 8 +-- tests/expected/findmnt/filterQ-types | 6 +- tests/expected/findmnt/filterQ-types-multi | 8 +-- tests/expected/findmnt/filterQ-types-neg | 60 ++++++++++---------- 8 files changed, 109 insertions(+), 109 deletions(-) commit d1917754c633f8eed141ff1b1dbde6bcfe1f8098 Merge: e8f7cd670 640b9480b Author: Karel Zak Date: Mon Aug 26 12:26:34 2024 +0200 Merge branch 'PR/more-stderr' of github.com:karelzak/util-linux-work * 'PR/more-stderr' of github.com:karelzak/util-linux-work: more: make sure we have data on stderr commit e8f7cd67051efb009d6a296703814ab27cbae0c8 Merge: 047f6bce5 44020ecb8 Author: Karel Zak Date: Mon Aug 26 12:25:58 2024 +0200 Merge branch 'PR/lscpu-optimize' of github.com:karelzak/util-linux-work * 'PR/lscpu-optimize' of github.com:karelzak/util-linux-work: lscpu: optimize query virt pci device commit 047f6bce59b2695f91457c434fe17719988d0fdc Merge: 6dd59417e 2011a616a Author: Karel Zak Date: Mon Aug 26 12:24:36 2024 +0200 Merge branch 'libblkid/apfs/checksum' of https://github.com/t-8ch/util-linux * 'libblkid/apfs/checksum' of https://github.com/t-8ch/util-linux: libblkid: apfs: validate checksums commit 6dd59417e81967036037d430cc56b3e64d45f5a3 Author: Yang Kun <91833768+ikspress@users.noreply.github.com> Date: Sat Aug 24 22:15:16 2024 +0800 libblkid: improve portability libblkid/src/probe.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) commit 2011a616aa533c336f9242f25017ce7043557e4c Author: Thomas Weißschuh Date: Tue Aug 6 19:07:48 2024 +0200 libblkid: apfs: validate checksums The apfs superblock contains a checksum based on Fletcher-64. Validate the checksum to make the probing more robust. Signed-off-by: Thomas Weißschuh libblkid/src/superblocks/apfs.c | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) commit 44020ecb8b703eec74c35c006a405d6d1aaa4ce7 Author: Guixin Liu Date: Wed Aug 21 16:49:54 2024 +0800 lscpu: optimize query virt pci device The lscpu command needs to traverse the /proc/bus/pci/devices file three times to check for any PCI devices related to virtualization. If there are many PCI devices on the machine, this can lead to increased execution time for lscpu. It would be beneficial to consolidate these queries into a single check to optimize the execution time of lscpu. Use time command to test on a machine with 13000 PCI devices: before: real 0m13.506s user 0m0.028s sys 0m13.409s after: real 0m5.834s user 0m0.018s sys 0m5.771s Signed-off-by: Guixin Liu sys-utils/lscpu-virt.c | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) commit 76082d4bfabe537d3e49201b124f4311a17e28b6 Author: Karel Zak Date: Thu Aug 22 12:31:41 2024 +0200 findmnt: improve -Q to output tree $ findmnt -Q 'FSTYPE=="ext4"' TARGET SOURCE FSTYPE OPTIONS / /dev/sda4 ext4 rw,relatime ├─/var /dev/sda3 ext4 rw,relatime │ └─/var/cache /dev/sda5 ext4 rw,relatime ├─/mnt/virt /dev/sdb1 ext4 rw,relatime └─/boot /dev/sda2 ext4 rw,relatime Addresses: https://github.com/util-linux/util-linux/pull/3090 Signed-off-by: Karel Zak misc-utils/findmnt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 8326c99a76526e614f5c779c3601a2cc471467e0 Merge: 3988f6b5c 71d18daee Author: Karel Zak Date: Thu Aug 22 11:31:21 2024 +0200 Merge branch 'findmnt-Q' of https://github.com/masatake/util-linux * 'findmnt-Q' of https://github.com/masatake/util-linux: tests: (findmnt) add a case testing -Q option findmnt: (man) write about -Q,--filter option findmnt: add -Q,--filter option findmnt: (refactor) convert add_column macro to a function findmnt: (refactor) add a helper function making an instance of libscols_table findmnt: (refactor) remove global variables shared between findmnt.c and fintmnt-verify.c commit 3988f6b5cc9b6d48b4fc5415b7e00b85fb39ea6d Merge: d98a17d57 f0497e723 Author: Karel Zak Date: Thu Aug 22 11:19:39 2024 +0200 Merge branch 'fix_generated_header_paths' of https://github.com/amibranch/util-linux * 'fix_generated_header_paths' of https://github.com/amibranch/util-linux: meson: fix generated header paths commit d98a17d57a2432392702e6411fb090bed9ae516c Merge: 5225bdad2 20d2d381f Author: Karel Zak Date: Thu Aug 22 11:18:45 2024 +0200 Merge branch 'simplify' of https://github.com/ikspress/util-linux * 'simplify' of https://github.com/ikspress/util-linux: meson: simplify code ipcrm: simplify code commit 640b9480bd3efc0f4bc7f38a785d02cda70ec5c3 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 text-utils/more.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) commit f0497e72316f0109ac258472af998b971b5e6d27 Author: amibranch <147333645+amibranch@users.noreply.github.com> Date: Wed Aug 21 15:30:55 2024 +0000 meson: fix generated header paths meson.build | 4 ++-- misc-utils/Makemodule.am | 4 ++-- tools/all_errnos | 3 ++- tools/all_syscalls | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) commit 5225bdad29231862ae25d367cc29fa94e4c57480 Author: mr-bronson Date: Wed Aug 21 15:28:22 2024 +0000 fix spelling and typos A good start. Some lines moved because they were under a misspelled duplicate heading. Documentation/poeigl.txt | 2 +- Documentation/releases/v2.13-ReleaseNotes | 10 +++++----- Documentation/releases/v2.14-ReleaseNotes | 6 +++--- Documentation/releases/v2.15-ReleaseNotes | 4 ++-- Documentation/releases/v2.16-ReleaseNotes | 2 +- Documentation/releases/v2.17-ReleaseNotes | 6 +++--- Documentation/releases/v2.19-ReleaseNotes | 2 +- Documentation/releases/v2.20-ReleaseNotes | 6 +++--- Documentation/releases/v2.21-ReleaseNotes | 16 ++++++++-------- Documentation/releases/v2.22-ReleaseNotes | 4 ++-- Documentation/releases/v2.23-ReleaseNotes | 8 +++----- Documentation/releases/v2.24-ReleaseNotes | 2 +- Documentation/releases/v2.25-ReleaseNotes | 23 +++++++++++------------ Documentation/releases/v2.26-ReleaseNotes | 4 ++-- Documentation/releases/v2.28-ReleaseNotes | 2 +- Documentation/releases/v2.29-ReleaseNotes | 4 ++-- Documentation/releases/v2.30-ReleaseNotes | 2 +- Documentation/releases/v2.32-ReleaseNotes | 4 ++-- Documentation/releases/v2.34-ReleaseNotes | 6 +++--- Documentation/releases/v2.35-ReleaseNotes | 5 ++--- Documentation/releases/v2.36-ReleaseNotes | 6 +++--- Documentation/releases/v2.37-ReleaseNotes | 10 +++++----- Documentation/releases/v2.38-ReleaseNotes | 8 ++++---- Documentation/releases/v2.39-ReleaseNotes | 10 +++++----- Documentation/releases/v2.40-ReleaseNotes | 4 ++-- include/pt-mbr-partnames.h | 2 +- include/pt-mbr.h | 2 +- include/pt-sun.h | 2 +- include/xxhash.h | 2 +- lib/crc32c.c | 2 +- lib/fileeq.c | 2 +- libblkid/src/config.c | 2 +- libfdisk/src/fdiskP.h | 2 +- libfdisk/src/gpt.c | 2 +- libfdisk/src/item.c | 4 ++-- libfdisk/src/partition.c | 2 +- libfdisk/src/table.c | 2 +- libmount/python/pylibmount.c | 2 +- libmount/src/hook_mount.c | 2 +- libmount/src/optlist.c | 2 +- libsmartcols/src/calculate.c | 2 +- libsmartcols/src/filter.c | 6 +++--- libsmartcols/src/grouping.c | 2 +- login-utils/lslogins.c | 2 +- m4/ul.m4 | 22 +++++++++++----------- misc-utils/hardlink.c | 4 ++-- misc-utils/kill.c | 2 +- schedutils/chrt.c | 2 +- sys-utils/hwclock-cmos.c | 2 +- sys-utils/lscpu.h | 2 +- tests/expected/lsfd/mkfds-unix-in-netns-dgram | 4 ++-- tests/expected/lsfd/mkfds-unix-in-netns-seqpacket | 4 ++-- tests/expected/lsfd/mkfds-unix-in-netns-stream | 4 ++-- tests/helpers/test_mkfds_ppoll.c | 2 +- tests/ts/lsblk/README | 2 +- tests/ts/lsfd/mkfds-unix-in-netns | 4 ++-- tests/ts/lsns/ioctl_ns | 2 +- tests/ts/mount/shared-subtree | 2 +- 58 files changed, 127 insertions(+), 131 deletions(-) commit 96ac92a3d2734f70562f210564f5c3dde60f722a Author: Yang Hau Date: Tue Aug 20 23:48:19 2024 +0800 fix typos Signed-off-by: Karel Zak misc-utils/findmnt-verify.c | 6 +++--- misc-utils/lsblk.c | 4 ++-- sys-utils/setpriv-landlock.c | 2 +- tests/helpers/test_mkfds.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) commit 98c888fabce3077a6fb94188524d84fdea6591ba Merge: 4ecb959c3 67e194aee Author: Karel Zak Date: Tue Aug 20 15:27:01 2024 +0200 Merge branch 'tailing' of https://github.com/stoeckmann/util-linux * 'tailing' of https://github.com/stoeckmann/util-linux: Fix typos commit 4ecb959c3e0534700c20f2a9fa5639540d9b2e62 Merge: 8fecebbae d2cf3cd61 Author: Karel Zak Date: Tue Aug 20 15:21:06 2024 +0200 Merge branch 'fdisk-sgi-bootfile' of https://github.com/mr-bronson/util-linux * 'fdisk-sgi-bootfile' of https://github.com/mr-bronson/util-linux: fdisk: fix sgi_menu_cb return value fdisk: fix fdisk_sgi_set_bootfile return value fdisk: fix sgi_check_bootfile name size minimum fdisk: fix SGI boot file prompt commit 20d2d381fc7ba8a2cb8440128cda444a53f9f9f4 Author: Yang Kun <91833768+ikspress@users.noreply.github.com> Date: Tue Aug 20 20:43:11 2024 +0800 meson: simplify code meson.build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit ffd9710559415baec7161f80ea3041a846dbbfe6 Author: Yang Kun <91833768+ikspress@users.noreply.github.com> Date: Tue Aug 20 20:38:15 2024 +0800 ipcrm: simplify code sys-utils/ipcrm.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) commit 8fecebbaed70165d84e0ea518497e7d4d82b083d Author: Uwe Seimet Date: Mon Aug 19 17:56:44 2024 +0200 Add missing section comment include/pt-gpt-partnames.h | 2 ++ 1 file changed, 2 insertions(+) commit d62a8a69806b762e38ca4238b7b6be1e70bcdff0 Author: Uwe Seimet Date: Mon Aug 19 10:49:02 2024 +0200 Add GPT type for Minix filesystem include/pt-gpt-partnames.h | 1 + 1 file changed, 1 insertion(+) commit d2cf3cd6137d5612a3984b301e6c25d429976886 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. disk-utils/fdisk-menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d10b038506936f3ad584fa2e017d2d860ed6d133 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'. libfdisk/src/sgi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 6dfc07a7189eea461d52ff85620b286a4817a658 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. libfdisk/src/sgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 50f2c94846d737afc00692ed440e5e1f02281f6e Author: mr-bronson Date: Sun Aug 18 00:49:27 2024 +0000 fdisk: fix SGI boot file prompt Prompt was clearly missing something. libfdisk/src/sgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 67e194aee27285e386b9a697f5f597e89ac1c4e1 Author: Tobias Stoeckmann Date: Wed Aug 14 21:37:39 2024 +0200 Fix typos These occurrences should be "trailing" instead of "tailing". include/pathnames.h | 2 +- include/strutils.h | 2 +- lib/fileutils.c | 2 +- lib/loopdev.c | 2 +- lib/strutils.c | 2 +- libfdisk/src/ask.c | 2 +- libmount/python/fs.c | 4 ++-- libmount/python/tab.c | 4 ++-- libmount/src/tab.c | 2 +- libsmartcols/samples/fromfile.c | 2 +- libsmartcols/src/table.c | 2 +- misc-utils/blkid.c | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) commit bfb62b68a4141c0866346f6471839c105d0cf4fc Merge: e3df81cd1 753c0c601 Author: Karel Zak Date: Wed Aug 14 11:07:23 2024 +0200 Merge branch 'setpriv-ptracer' of https://github.com/geofft/util-linux * 'setpriv-ptracer' of https://github.com/geofft/util-linux: setpriv: Add --ptracer, which calls PR_SET_PTRACER commit e3df81cd1ff9f44dd83acf506582401f2f5db840 Merge: a5af422fb 8818717f2 Author: Karel Zak Date: Wed Aug 14 09:54:44 2024 +0200 Merge branch 'lastlog2' of https://github.com/stoeckmann/util-linux * 'lastlog2' of https://github.com/stoeckmann/util-linux: lastlog2: Improve comments and documentation Treat out of memory as error commit a5af422fbbdbcc3b5f4ac3cd73458588b76f8562 Merge: 3bc3e2ad1 f0ccb5295 Author: Karel Zak Date: Wed Aug 14 09:52:19 2024 +0200 Merge branch 'meson' of https://github.com/ldv-alt/util-linux * 'meson' of https://github.com/ldv-alt/util-linux: meson: use a / b instead of join_paths(a, b) commit 3bc3e2ad1384c00e53929f80dd1a6e1f1ee4d98b Merge: 77217a71e 29a4c5446 Author: Karel Zak Date: Wed Aug 14 09:50:33 2024 +0200 Merge branch 'openwrt/23.05.4' of https://github.com/t-8ch/util-linux * 'openwrt/23.05.4' of https://github.com/t-8ch/util-linux: ci: use OpenWRT SDK v23.05.4 commit 77217a71e0e6eeec05d0b5b488b3c57811143aff Merge: e2b3f9915 a508b2534 Author: Karel Zak Date: Wed Aug 14 09:49:50 2024 +0200 Merge branch 'ts_helper_cap' of https://github.com/t-8ch/util-linux * 'ts_helper_cap' of https://github.com/t-8ch/util-linux: tests: properly look for ts_cap helper commit 753c0c60141cfc5cc4dfa83bcaa4a8b1838e9287 Author: Geoffrey Thomas Date: Mon Aug 12 23:02:05 2024 +0000 setpriv: Add --ptracer, which calls PR_SET_PTRACER This makes it easier to use a debugger on systems with Yama configured without making the debugger binary itself privileged. Signed-off-by: Geoffrey Thomas sys-utils/setpriv.1.adoc | 3 +++ sys-utils/setpriv.c | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) commit 8818717f2771adebb9e3e0f0031bca9f19bfff86 Author: Tobias Stoeckmann Date: Mon Aug 12 17:37:53 2024 +0200 lastlog2: Improve comments and documentation Fix grammar issues and unify style across documentation and code comments. No functional change. liblastlog2/README.md | 6 +++--- liblastlog2/man/lastlog2.3.adoc | 2 +- liblastlog2/man/ll2_import_lastlog.3.adoc | 4 ++-- liblastlog2/man/ll2_new_context.3.adoc | 8 ++++---- liblastlog2/man/ll2_read_all.3.adoc | 2 +- liblastlog2/man/ll2_read_entry.3.adoc | 2 +- liblastlog2/man/ll2_remove_entry.3.adoc | 4 ++-- liblastlog2/man/ll2_rename_user.3.adoc | 4 ++-- liblastlog2/man/ll2_unref_context.3.adoc | 4 ++-- liblastlog2/man/ll2_update_login_time.3.adoc | 6 +++--- liblastlog2/man/ll2_write_entry.3.adoc | 4 ++-- liblastlog2/src/lastlog2.c | 28 +++++++++++++++++----------- misc-utils/lastlog2.8.adoc | 2 +- 13 files changed, 41 insertions(+), 35 deletions(-) commit f79b2cf4177844fb64773a119f1cb1e41c8ccaf8 Author: Tobias Stoeckmann Date: Mon Aug 12 17:37:03 2024 +0200 Treat out of memory as error Otherwise it might happen that a configured file location is not taken into account. A NULL value would lead to default file location. pam_lastlog2/src/pam_lastlog2.c | 4 ++++ 1 file changed, 4 insertions(+) commit f0ccb529593326073bd36d8fe6a52ea9f9434cb3 Author: Dmitry V. Levin Date: Sun Aug 11 08:00:00 2024 +0000 meson: use a / b instead of join_paths(a, b) According to [1], since meson 0.49.0, using the / operator on strings is equivalent to calling join_paths(). As the expressions written using the / operator are shorter and nicer than their equivalents written using join_paths(), and given that we've been using this new operator since commit 5f2c862a4aff19f5bc732e677405f04e2d07c211, let's convert remaining join_paths() invocations to use the / operator instead. [1] https://mesonbuild.com/Reference-manual_functions.html#join_paths libblkid/meson.build | 2 +- libfdisk/meson.build | 2 +- libmount/meson.build | 2 +- libsmartcols/meson.build | 2 +- meson.build | 34 +++++++++++++++++----------------- 5 files changed, 21 insertions(+), 21 deletions(-) commit 29a4c54468964962f3973c523acb3278fa6b303e Author: Thomas Weißschuh Date: Tue Aug 6 21:32:42 2024 +0200 ci: use OpenWRT SDK v23.05.4 Binary builds and SDKs for archs38 are not provided anymore. The SDK now also requires STAGING_DIR_HOST to be set. Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 7 ++----- .github/workflows/openwrt-sdk-env.sh | 9 +++++---- 2 files changed, 7 insertions(+), 9 deletions(-) commit a508b25343448d44cec38ced996a932bc46da63a Author: Thomas Weißschuh Date: Tue Aug 6 19:44:00 2024 +0200 tests: properly look for ts_cap helper Helpers should use ts_check_test_command, not ts_check_prog. Signed-off-by: Thomas Weißschuh tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e2b3f9915333b6e423e1f47d3f5e7cc6ea0ff482 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 libmount/src/context_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7903560fa34fe1810cdaf3dcda7cafbdefb488ac 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 libmount/src/context_mount.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit a75c7a102e5dc3408ce8603a8722ba24f589971c Merge: efa9a08f7 b4737c992 Author: Karel Zak Date: Mon Aug 5 11:13:35 2024 +0200 Merge branch 'typos' of https://github.com/howjmay/util-linux-c * 'typos' of https://github.com/howjmay/util-linux-c: Fix the typos commit efa9a08f78c4c0009c01648a3da81d1884cf7bbc Author: Uwe Seimet Date: Sat Aug 3 13:12:53 2024 +0200 Add GPT type "Atari TOS raw data (XHDI)" include/pt-gpt-partnames.h | 1 + 1 file changed, 1 insertion(+) commit b4737c992e3bf762c8c37961cf828641e342831d Author: Yang Hau Date: Fri Aug 2 21:05:35 2024 +0800 Fix the typos libsmartcols/src/filter.c | 2 +- libsmartcols/src/grouping.c | 2 +- login-utils/sulogin.c | 8 ++++---- lsfd-cmd/lsfd.c | 2 +- misc-utils/findmnt-verify.c | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) commit 640ec0523b9b61baa85ee218176ba80a260353a0 Merge: 5d1129e68 cb8d503a3 Author: Karel Zak Date: Fri Aug 2 12:39:21 2024 +0200 Merge branch 'bash-completion--fadvise--typo' of https://github.com/masatake/util-linux * 'bash-completion--fadvise--typo' of https://github.com/masatake/util-linux: fadvise: fix a typo of an option name in the bash completion rule commit 5d1129e6879a05aa9ac5804ffc8ace22cda735c1 Author: Karel Zak Date: Mon Jul 29 10:21:28 2024 +0200 lscpu: make code more readable Signed-off-by: Karel Zak 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 50a3efab6d126b28fcdcc28f1a0cd5cd596ae357 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 sys-utils/lscpu-arm.c | 37 ++++++++++++++++++++++++++++++++++++- sys-utils/lscpu.c | 3 ++- sys-utils/lscpu.h | 2 ++ 3 files changed, 40 insertions(+), 2 deletions(-) commit cb8d503a3f9617506af947b2f1f885293daab5fa Author: Masatake YAMATO Date: Tue Jul 30 14:05:00 2024 +0900 fadvise: fix a typo of an option name in the bash completion rule Signed-off-by: Masatake YAMATO bash-completion/fadvise | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 86b6684e7a215a0608bd130371bd7b3faae67aca Merge: 28b49d31c 51369aa1e Author: Karel Zak Date: Mon Jul 29 10:00:26 2024 +0200 Merge branch 'patch-2' of https://github.com/satmandu/util-linux * 'patch-2' of https://github.com/satmandu/util-linux: Add thread dep to libuuid meson.build commit 28b49d31cc46514e0dac4eb178f5afc272b6ae49 Author: Victor Westerhuis Date: Wed Jul 24 17:32:28 2024 +0200 libblkid: bitlocker: add drive label libblkid/src/superblocks/bitlocker.c | 41 ++++++++++++++++++++++++++- tests/expected/blkid/low-probe-bitlocker-win7 | 2 ++ 2 files changed, 42 insertions(+), 1 deletion(-) commit 6edc0013e2d5424916019cdc4597787c5d569a52 Author: Victor Westerhuis Date: Wed Jul 24 17:31:04 2024 +0200 libblkid: bitlocker: use volume identifier as UUID libblkid/src/superblocks/bitlocker.c | 48 ++++++++++++++++++--------- tests/expected/blkid/low-probe-bitlocker-win7 | 2 ++ 2 files changed, 35 insertions(+), 15 deletions(-) commit 63d3b78b67123da942edc084bc2257ed20874be2 Author: Victor Westerhuis Date: Thu Jul 25 12:58:34 2024 +0200 libblkid: bitlocker: add image for Windows 7+ BitLocker 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 a4d0f18f46b9968a02653a5a7b5332f8c0466ba9 Author: Victor Westerhuis Date: Thu Jul 25 15:10:16 2024 +0200 libblkid: bitlocker: fix version on big-endian systems libblkid/src/superblocks/bitlocker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6a14f8d1727035a68b1fef167499930e09a2b234 Author: Karel Zak Date: Wed Jul 24 09:13:08 2024 +0200 agetty: fix ambiguous ‘else’ [-Werror=dangling-else] Signed-off-by: Karel Zak term-utils/agetty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 20b405c0fea29675e1fb54b894eb1c18459f9d50 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 term-utils/agetty.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 4283a76ce540a083440e069c80ace0ed3c0874c2 Merge: 66cb35480 54ff6aff5 Author: Karel Zak Date: Tue Jul 23 14:07:10 2024 +0200 Merge branch 'PR/coverity-misc' of github.com:karelzak/util-linux-work * 'PR/coverity-misc' of github.com:karelzak/util-linux-work: cal: make sure day_in_week() does not overrun array size [coverity scan] commit 66cb3548061a70d8b72ab92f808d567475dcbc7c Author: Karel Zak Date: Tue Jul 23 13:57:46 2024 +0200 scriptlive: add --echo It would be beneficial to have a method for controlling the ECHO flag. References: https://github.com/util-linux/util-linux/pull/3133 Signed-off-by: Karel Zak term-utils/scriptlive.1.adoc | 5 +++++ term-utils/scriptlive.c | 18 +++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) commit 8c70fbd2bdc2098ef403e5a4ceed0dc0d0df4264 Merge: eac056c66 ea8eab0d7 Author: Karel Zak Date: Tue Jul 23 13:44:48 2024 +0200 Merge branch 'scriptlive_echo' of https://github.com/werekraken/util-linux * 'scriptlive_echo' of https://github.com/werekraken/util-linux: scriptlive: echo re-run commands from in stream commit eac056c66f746795c876f9dede6c3427f82809ee Author: Cristian Rodríguez Date: Thu Jul 18 20:40:33 2024 -0400 libuuid: fix gcc15 warnings gcc15 complains that the initialization is too long, indeed it is not counting the last null byte, fix by simply not using an explicit count Signed-off-by: Karel Zak libuuid/src/unparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ea8eab0d77b4ed23165b285bc064717387b35bc3 Author: Matt Cover Date: Sat Jul 20 14:49:35 2024 -0700 scriptlive: echo re-run commands from in stream term-utils/scriptlive.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 51369aa1e11b14af26cdb91f5fff6bbbf1d306af 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 libuuid/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 198e920aa24743ef6ace4e07cf6237de527f9261 Author: oittaa <8972248+oittaa@users.noreply.github.com> Date: Tue Jul 16 03:35:58 2024 +0200 libuuid: set variant in the corrrect byte: __uuid_set_variant_and_version libuuid/src/gen_uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 42029e92075108471659a30f09b7b5f185f12405 Merge: 30603d6b5 6916d9711 Author: Karel Zak Date: Mon Jul 15 12:16:16 2024 +0200 Merge branch 'mes2' of https://github.com/neheb/util-linux * 'mes2' of https://github.com/neheb/util-linux: meson: add options for more utilities commit 30603d6b5774027ed4ee624c2de8da31bbe842b9 Merge: 6fc5b5af4 e58bd8eea Author: Karel Zak Date: Mon Jul 15 12:15:28 2024 +0200 Merge branch 'kill--decode' of https://github.com/masatake/util-linux * 'kill--decode' of https://github.com/masatake/util-linux: kill: (test) add a case for testing -l 0xSIGMASK and -d $PID options kill: add a feature decoding signal masks commit 54ff6aff58a59ad50a77483786b209da25e1ed73 Author: Karel Zak Date: Thu Jul 11 14:15:44 2024 +0200 cal: make sure day_in_week() does not overrun array size [coverity scan] It's very theoretical, but protect against this possibility. Signed-off-by: Karel Zak misc-utils/cal.c | 3 +++ 1 file changed, 3 insertions(+) commit 6fc5b5af4bfea4e3115cddb2c1716b3120bb3d4f Author: Karel Zak Date: Thu Jul 11 13:26:30 2024 +0200 agetty: add "systemd" to --version output Signed-off-by: Karel Zak term-utils/agetty.c | 3 +++ 1 file changed, 3 insertions(+) commit 7af2539f58b3bd3bb2f5e44138595be116c8d76c 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 misc-utils/uuidd-tmpfiles.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5a2ef794e70580525e2f51172ee929e511591d6d Merge: 36bda8270 b64b769b4 Author: Karel Zak Date: Wed Jul 10 11:31:54 2024 +0200 Merge branch 'bug3120' of https://github.com/dgibson/util-linux * 'bug3120' of https://github.com/dgibson/util-linux: unshare: Add options to identity map the user's subordinate uids and gids commit 36bda82703a9467f3465271e4393ed0328a4fa47 Merge: 9771bb106 32c56a21a Author: Karel Zak Date: Wed Jul 10 11:22:05 2024 +0200 Merge branch 'mess' of https://github.com/neheb/util-linux * 'mess' of https://github.com/neheb/util-linux: meson: po: disable if nls is disabled commit 9771bb106ce6eedc20043e99217089923a55b120 Merge: 88e717dee 88dc6ca73 Author: Karel Zak Date: Wed Jul 10 10:07:34 2024 +0200 Merge branch 'tos_basic_data' of https://github.com/uweseimet/util-linux * 'tos_basic_data' of https://github.com/uweseimet/util-linux: Add GPT type "Atari TOS basic data" (734E5AFE-F61A-11E6-BC64-92361F002671) commit 88e717dee90eee55eacc29c0950f535b855b0906 Author: Karel Zak Date: Wed Jul 10 10:06:54 2024 +0200 lsmem: improve coding style Signed-off-by: Karel Zak sys-utils/lsmem.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 01b1b23d04c4405e99e7522e4420580d420d91d2 Merge: e0c41735a 57714290b Author: Karel Zak Date: Wed Jul 10 10:05:20 2024 +0200 Merge branch 'lsmem' of https://github.com/biubiuzy/util-linux * 'lsmem' of https://github.com/biubiuzy/util-linux: lsmem: make lsmem to check for the nodes more robust commit e0c41735aa13a7a62e42c0428823537d3edc02a8 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 misc-utils/uuidd-tmpfiles.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 88dc6ca73a617b0d8097e765ec3baa90f479f6a9 Author: Uwe Seimet Date: Tue Jul 9 12:23:14 2024 +0200 Add GPT type "Atari TOS basic data" (734E5AFE-F61A-11E6-BC64-92361F002671) include/pt-gpt-partnames.h | 3 +++ 1 file changed, 3 insertions(+) commit f459895e86de6736e575e9a0f3e17d789cc1b89d Merge: 8d5f879e6 aec8bf943 Author: Karel Zak Date: Tue Jul 9 10:42:58 2024 +0200 Merge branch 'spaces' of https://github.com/emperor06/util-linux * 'spaces' of https://github.com/emperor06/util-linux: column: Adds option -S so whitespaces are used instead of tabs in non table mode. commit b64b769b40163dd3fc70b933a08babd4d781aba3 Author: David Gibson Date: Tue Jul 9 15:44:31 2024 +1000 unshare: Add options to identity map the user's subordinate uids and gids --map-users=auto, --map-groups=auto and --map-auto allow automatically mapping the first block of user or group IDs owned by the effective user from /etc/sub[ug]id to a block starting at user ID 0. Add options --map-users=subids, --map-groups=subids and --map-subids to perform a mapping of the same IDs, but as an identity mapping instead of to UID 0. This is useful in similar situations to --map-current-user, but preserves access to the user's subordinate IDs. That allows nested namespaces to be created with more complex user mappings, either with unshare or with a container runtime such as podman. Fixes: https://github.com/util-linux/util-linux/issues/3120 Signed-off-by: David Gibson sys-utils/unshare.1.adoc | 7 +++++-- sys-utils/unshare.c | 43 +++++++++++++++++++++++++++++++------------ 2 files changed, 36 insertions(+), 14 deletions(-) commit 6916d9711d1001562809b6723ff1dc6547eea246 Author: Rosen Penev Date: Tue Jul 2 12:52:13 2024 -0700 meson: add options for more utilities Allows using -Dauto_features=disabled to disable most utilities. Signed-off-by: Rosen Penev meson.build | 232 ++++++++++++++++++++++++++++++++++-------------------- meson_options.txt | 36 ++++++++- 2 files changed, 181 insertions(+), 87 deletions(-) commit 8d5f879e6a57581e885099b6f33e0fe9b23a7d88 Author: Pino Toscano Date: Mon Jul 8 19:16:30 2024 +0200 liblastlog2: tests: provide fallback PATH_MAX definition ... by including the helper "c.h", which will do the right job. Signed-off-by: Pino Toscano liblastlog2/src/tests/tst_dlopen.c | 2 ++ 1 file changed, 2 insertions(+) commit 41da8d3bb694d543a4e95f4004af35d2d3ec299d Merge: 444bff876 3131bd3f6 Author: Karel Zak Date: Mon Jul 8 13:17:35 2024 +0200 Merge branch 'patch-1' of https://github.com/tbertels/util-linux * 'patch-1' of https://github.com/tbertels/util-linux: Prevent problems with period after the URL commit 444bff876b6eecb033338bac9486f113e61dc610 Author: Karel Zak Date: Mon Jul 8 13:15:05 2024 +0200 meson: add missing sample-mount-overwrite Signed-off-by: Karel Zak meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) commit aec8bf943a71a25cbaa5cfc1b113263cadc74dd0 Author: drax Date: Sun Jul 7 01:29:27 2024 +0200 column: Adds option -S so whitespaces are used instead of tabs in non table mode. Entries are padded with whitespaces, then spaces are added to separate the columns. This should fix https://github.com/util-linux/util-linux/issues/1551 bash-completion/column | 3 ++- text-utils/column.1.adoc | 3 +++ text-utils/column.c | 58 ++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 51 insertions(+), 13 deletions(-) commit cfba323db2539cc9482c071a2952476b1ead7667 Merge: 837c3537e 480e5d559 Author: Karel Zak Date: Mon Jul 8 12:44:04 2024 +0200 Merge branch 'build-only-linux' of https://github.com/pinotree/util-linux * 'build-only-linux' of https://github.com/pinotree/util-linux: build-sys: build sample-mount-overwrite only on Linux commit 837c3537e3fe149aadf37dc7913ba170e4c36bd1 Author: Karel Zak Date: Mon Jul 8 12:41:34 2024 +0200 tests: add mount-api-utils.h to linux only ifdef This is a cosmetic change. Let's use the already defined Linux-only ifdef for mount-api-utils.h too. Signed-off-by: Karel Zak tests/helpers/test_sysinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e58bd8eea18bbdf30fd84f84f649ce8ba96eeb46 Author: Masatake YAMATO Date: Mon Jul 8 02:53:52 2024 +0900 kill: (test) add a case for testing -l 0xSIGMASK and -d $PID options Signed-off-by: Masatake YAMATO meson.build | 8 ++++ tests/commands.sh | 1 + tests/expected/kill/decode | 20 +++++++++ tests/helpers/Makemodule.am | 4 ++ tests/helpers/test_sigstate.c | 94 +++++++++++++++++++++++++++++++++++++++++++ tests/ts/kill/decode | 69 +++++++++++++++++++++++++++++++ 6 files changed, 196 insertions(+) commit b7eef7df264aa704e1dd8c1ebe373103bf8bd569 Author: Pino Toscano Date: Sun Jul 7 09:08:06 2024 +0200 tests: include only on Linux Include only on Linux; it is used for fsopen(), which is available only on Linux. Signed-off-by: Pino Toscano tests/helpers/test_sysinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 480e5d55995a881ea5a8a3b4d750b20b831c1def Author: Pino Toscano Date: Sun Jul 7 08:52:45 2024 +0200 build-sys: build sample-mount-overwrite only on Linux This sample uses the libmnt_context API, which is available only on Linux. Signed-off-by: Pino Toscano libmount/samples/Makemodule.am | 2 ++ 1 file changed, 2 insertions(+) commit 3131bd3f67011c6f94317099efee30904e271599 Author: Thomas Bertels <3265870+tbertels@users.noreply.github.com> Date: Thu Jul 4 12:41:51 2024 +0200 Prevent problems with period after the URL Otherwise, the period gets included in the URL which makes it not work. man-common/bugreports.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 57714290bdc99cab533edbc4a021d6ee3a7cc211 Author: zhangyao Date: Thu Jul 4 16:28:51 2024 +0800 lsmem: make lsmem to check for the nodes more robust See #3110. sys-utils/lsmem.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 873370b6298b33ca1c757b3238c70a6ad6d4758e Author: Masatake YAMATO Date: Sun Jun 30 21:09:44 2024 +0900 kill: add a feature decoding signal masks -l/--list option is extended to work well with the output of ps command: $ ps s $$ UID PID PENDING BLOCKED IGNORED CAUGHT STAT TTY TIME COMMAND 1000 1588189 0000000000000000 0000000000010000 0000000000384004 000000004b813efb S pts/56 0:00 bash $ ./kill --list 0x000000004b813efb HUP INT ILL TRAP ABRT ... If you know the pid you are interested in, you can skip running ps comman with -d/--show-process-state option: $ ./kill --show-process-state $$ Blocked: INT Ignored: TERM TSTP TTIN TTOU Caught: HUP INT PIPE ALRM CHLD WINCH Signed-off-by: Masatake YAMATO misc-utils/kill.1.adoc | 30 +++++++++++-- misc-utils/kill.c | 115 ++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 135 insertions(+), 10 deletions(-) commit 32c56a21a2a5f0bab9dcf6ed75b10566b60aecbf Author: Rosen Penev Date: Tue Jul 2 12:51:37 2024 -0700 meson: po: disable if nls is disabled Doesn't make much sense to build. Signed-off-by: Rosen Penev po/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0309a6f5ca018d83420e49e0f9d046fecdb29261 Author: Karel Zak Date: Tue Jul 2 11:23:13 2024 +0200 rename: use ul_basename() Fixes: https://github.com/util-linux/util-linux/issues/3071 Signed-off-by: Karel Zak meson.build | 1 + misc-utils/Makemodule.am | 1 + misc-utils/rename.c | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) commit ff8ee29d648111eb222612ad4251e4c3b236a389 Author: Karel Zak Date: Tue Jul 2 11:14:06 2024 +0200 lib/fileutils: add ul_basename() Unfortunately, the basename() function can be affected by the creativity of different libc authors, resulting in varying behavior across implementations. Instead, use a local implementation to ensure consistency and portability. Signed-off-by: Karel Zak include/fileutils.h | 1 + lib/fileutils.c | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) commit 0588f2480f14a3381553ab7f4498b68055edcc5c Merge: a7df5b638 20dc72d8c Author: Karel Zak Date: Tue Jul 2 09:32:19 2024 +0200 Merge branch 'automake/install-dependency' of https://github.com/t-8ch/util-linux * 'automake/install-dependency' of https://github.com/t-8ch/util-linux: autotools: Properly order install dependencies of pam_lastlog2 autotools: make pam install path configurable commit a7df5b6380b2679635293130b0a5eba904464c1b Author: Cristian Rodríguez Date: Mon Jul 1 18:10:49 2024 -0400 misc-utils:uuidd: Use ul_sig_err instead of errx Calling errx in sa_handler is as-unsafe as it is implemented using stdio. misc-utils/uuidd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f8ae8ed48b84ea38e3556f620ade901ac09d93af Author: Karel Zak Date: Mon Jul 1 14:35:55 2024 +0200 libfdisk: fix fdisk_partition_start_follow_default() docs Unfortunately, the behavior is different between DOS (original docs) and GPT. Due to the need for backward compatibility, it is likely impossible to change the default setting ... Addresses: https://github.com/util-linux/util-linux/issues/3097 Signed-off-by: Karel Zak libfdisk/src/partition.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 20dc72d8c1f3a53c0408858f0046e1849644c710 Author: Thomas Weißschuh Date: Sun Jun 30 11:23:53 2024 +0200 autotools: Properly order install dependencies of pam_lastlog2 As pam_lastlog2 is relinked during installation, all its dependencies need to already be installed. This is the same issue that affected pylibmount which was fixed in commit 324330aca644 ("build-sys: Properly order install dependencies of pylibmount"). Extend the logic added in that commit to also apply to pam_lastlog2. Closes: #3011 Signed-off-by: Thomas Weißschuh Makefile.am | 4 +++- configure.ac | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) commit 8c03e75c0b837f4285bd34f08eae40b48d3378be Author: Thomas Weißschuh Date: Mon Jul 1 14:04:46 2024 +0200 autotools: make pam install path configurable While at it, also move the initial definition of usesecurelib_exec_LTLIBRARIES into Makefile.am. Also add "exec" to the target name which is recognized by automake to mark the targets as architecture-specific. Signed-off-by: Thomas Weißschuh Makefile.am | 1 + configure.ac | 3 +++ pam_lastlog2/src/Makemodule.am | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) commit e889581f65636e83631297de09c9c000b49a300c Merge: bc041c128 6186f3f17 Author: Karel Zak Date: Thu Jun 27 11:56:52 2024 +0200 Merge branch 'PR/lsblk-properties-by' of github.com:karelzak/util-linux-work * 'PR/lsblk-properties-by' of github.com:karelzak/util-linux-work: lsblk: add --properties-by option commit bc041c12826e40fd4b2ab77c0c1f0c6962e4670b Merge: e73641958 a0af8981e Author: Karel Zak Date: Thu Jun 27 11:56:33 2024 +0200 Merge branch 'PR/cfdisk-tiny-fixes' of github.com:karelzak/util-linux-work * 'PR/cfdisk-tiny-fixes' of github.com:karelzak/util-linux-work: lib/colors: free unnecessary ncurses resources cfdisk: fix possible integer overflow [coverity scan] commit e73641958fd994d6b93722bdc1e828487867ddf8 Merge: 0c412439a 37641f246 Author: Karel Zak Date: Thu Jun 27 11:54:37 2024 +0200 Merge branch 'hexdump-build' of https://github.com/robimarko/util-linux * 'hexdump-build' of https://github.com/robimarko/util-linux: hexdump: allow enabling with --disable-all-programs commit 0c412439a632871d1e94bc94cf3b226123ef61fc Author: Emanuele Torre Date: Wed Jun 26 09:43:43 2024 +0200 sys-utils/setpgid: fix --help typo (foregound > foreground) + alignment Typo reported by @yurchor on github https://github.com/util-linux/util-linux/commit/f092076fecc7ada2911df1b34f75091573ac08a8#r139271937 sys-utils/setpgid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4b9e4d3f5950fcbcc177c315058b6e335d8c4362 Author: Emanuele Torre Date: Wed Jun 26 09:22:59 2024 +0200 sys-utils/setpgid: make -f work f was missing from the getopt_long optstring so only --foreground was working, not -f. sys-utils/setpgid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 37641f246ee9df7289b4e3054b3ded3912773722 Author: Robert Marko Date: Tue Jun 25 17:32:08 2024 +0200 hexdump: allow enabling with --disable-all-programs Currently, if --disable-all-programs is used hexdump cannot be built as --enable-hexdump is not recognized, so lets add support for it. Signed-off-by: Robert Marko configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 6186f3f176da4b122b127ca8f9448429b8712366 Author: Karel Zak Date: Mon Jun 24 12:09:38 2024 +0200 lsblk: add --properties-by option This new option allows for controlling the method(s) used by lsblk to gather file system and partition data about devices. Fixes: https://github.com/util-linux/util-linux/issues/2047 Signed-off-by: Karel Zak misc-utils/lsblk-properties.c | 66 ++++++++++++++++++++++++++++++++++++++----- misc-utils/lsblk.8.adoc | 14 +++++++++ misc-utils/lsblk.c | 11 ++++++-- misc-utils/lsblk.h | 16 +++++++++++ 4 files changed, 98 insertions(+), 9 deletions(-) commit 3d95630ace3177015ab1d59cc941e3db1bba3bf9 Merge: b8a1e1f26 e15d24dc9 Author: Karel Zak Date: Mon Jun 24 10:05:14 2024 +0200 Merge branch 'PR/swapoff-oom' of github.com:karelzak/util-linux-work * 'PR/swapoff-oom' of github.com:karelzak/util-linux-work: swapoff: avoid being killed by OOM commit a0af8981edf80dc921aee5c94e251ce7e8144d25 Author: Karel Zak Date: Mon Jun 24 10:00:33 2024 +0200 lib/colors: free unnecessary ncurses resources Signed-off-by: Karel Zak lib/colors.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 72f801dbcd99bc1dcbfdb0bf8e1f5d2f1ad753c6 Author: Karel Zak Date: Mon Jun 24 09:46:37 2024 +0200 cfdisk: fix possible integer overflow [coverity scan] Signed-off-by: Karel Zak disk-utils/cfdisk.c | 2 ++ 1 file changed, 2 insertions(+) commit b8a1e1f26779fcacae84a6761748b1ecf73236e1 Merge: 2d965d51d 0389a9eae Author: Karel Zak Date: Thu Jun 20 12:22:06 2024 +0200 Merge branch 'PR/libmount-fix-mesg' of github.com:karelzak/util-linux-work * 'PR/libmount-fix-mesg' of github.com:karelzak/util-linux-work: libmount: improving robustness in reading kernel messages commit 2d965d51dc477340b24995ed330a32c97e98d631 Merge: fc67f18be 9d55de0d0 Author: Karel Zak Date: Thu Jun 20 12:20:07 2024 +0200 Merge branch 'PR/unshare-binfmt_misc' of github.com:karelzak/util-linux-work * 'PR/unshare-binfmt_misc' of github.com:karelzak/util-linux-work: unshare: load binfmt_misc interpreter unshare: mount binfmt_misc commit fc67f18be51f57ee9a59a0f8f7ad16f284a24a3e 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 sys-utils/losetup.8.adoc | 2 +- sys-utils/umount.8.adoc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) commit e15d24dc9eb7004227c895e09a2e60945a708147 Author: Karel Zak Date: Thu Jun 20 12:07:12 2024 +0200 swapoff: avoid being killed by OOM Based on patch from dparalen . Fixes: https://github.com/util-linux/util-linux/issues/3095 Signed-off-by: Karel Zak include/pathnames.h | 2 ++ sys-utils/swapoff.c | 5 +++++ 2 files changed, 7 insertions(+) commit 71d18daee0f4515bbf412f2a010e048f7311b1cc Author: Masatake YAMATO Date: Thu Jun 20 00:09:04 2024 +0900 tests: (findmnt) add a case testing -Q option The mostly derrived from "filter" test case. Signed-off-by: Masatake YAMATO tests/expected/findmnt/filterQ-options | 31 +++++++++ tests/expected/findmnt/filterQ-options-name | 7 ++ tests/expected/findmnt/filterQ-options-nameval | 3 + .../expected/findmnt/filterQ-options-nameval-multi | 3 + tests/expected/findmnt/filterQ-options-nameval-neg | 33 ++++++++++ tests/expected/findmnt/filterQ-options-neg | 5 ++ tests/expected/findmnt/filterQ-options-no | 5 ++ tests/expected/findmnt/filterQ-options-no-multi | 3 + tests/expected/findmnt/filterQ-types | 4 ++ tests/expected/findmnt/filterQ-types-multi | 5 ++ tests/expected/findmnt/filterQ-types-neg | 31 +++++++++ tests/ts/findmnt/filterQ | 77 ++++++++++++++++++++++ 12 files changed, 207 insertions(+) commit 4c91a8e14d95f11004a17e124815dbd7a558655c Author: Masatake YAMATO Date: Wed Jun 19 00:14:05 2024 +0900 findmnt: (man) write about -Q,--filter option Signed-off-by: Masatake YAMATO misc-utils/findmnt.8.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 1edbdb857cf083d2fefe92dc3c4bef703480a1cf Author: Masatake YAMATO Date: Sun Apr 7 06:27:47 2024 +0900 findmnt: add -Q,--filter option NOTE: --poll and --filter cannot use together. Signed-off-by: Masatake YAMATO misc-utils/findmnt.c | 142 ++++++++++++++++++++++++++++++++++++++++++++++----- misc-utils/findmnt.h | 1 + 2 files changed, 131 insertions(+), 12 deletions(-) commit d8709a732628073b3a3b9c912e8e2006df7dbe1e Author: Masatake YAMATO Date: Sun Apr 7 04:56:29 2024 +0900 findmnt: (refactor) convert add_column macro to a function Signed-off-by: Masatake YAMATO misc-utils/findmnt.c | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) commit 881faede96b226faf09faefb48bb276b1bd99cbb Author: Masatake YAMATO Date: Sun Apr 7 04:42:53 2024 +0900 findmnt: (refactor) add a helper function making an instance of libscols_table Signed-off-by: Masatake YAMATO misc-utils/findmnt.c | 97 +++++++++++++++++++++++++++++----------------------- 1 file changed, 54 insertions(+), 43 deletions(-) commit b0eeb58858584870dd2f87fca27034875d91f750 Author: Masatake YAMATO Date: Sun Apr 7 04:30:26 2024 +0900 findmnt: (refactor) remove global variables shared between findmnt.c and fintmnt-verify.c Signed-off-by: Masatake YAMATO misc-utils/findmnt-verify.c | 90 ++++++------ misc-utils/findmnt.c | 347 +++++++++++++++++++++++--------------------- misc-utils/findmnt.h | 14 +- 3 files changed, 232 insertions(+), 219 deletions(-) commit 9d55de0d0d5c6298b38b58c3f4dc876c56213f85 Author: Laurent Vivier Date: Wed Jun 19 10:19:51 2024 +0200 unshare: load binfmt_misc interpreter add -l, --load-interp to load a binfmt_misc interpreter at startup. The interpreter is loaded from the initial fileystem if the 'F' flags is provided, otherwise from inside the new namespace This makes possible to start a chroot of another architecture without being root. Signed-off-by: Laurent Vivier sys-utils/unshare.1.adoc | 18 +++++++++++++++++ sys-utils/unshare.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 69 insertions(+), 1 deletion(-) commit a60c44cfccec9f3562d618c2dc779f09d13c1975 Author: Laurent Vivier Date: Wed Jun 19 10:19:50 2024 +0200 unshare: mount binfmt_misc add --mount-binfmt[=] to mount binfmt_misc filesystem, this results in clearing inherited interpreters from the previous namespace Signed-off-by: Laurent Vivier include/pathnames.h | 1 + sys-utils/unshare.1.adoc | 3 +++ sys-utils/unshare.c | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) commit 6850e89e5b0b35e7bfe90915e56bd598c25f0b10 Author: Karel Zak Date: Wed Jun 19 11:54:40 2024 +0200 lslocks: remove unnecessary code Signed-off-by: Karel Zak misc-utils/lslocks.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 0389a9eae9281405d177d0eb9ad979d7bd47a7c6 Author: Karel Zak Date: Wed Jun 19 11:19:49 2024 +0200 libmount: improving robustness in reading kernel messages * Ensure data termination from read() function * Allocate space for terminator using "sizeof(buf)-1" Signed-off-by: Karel Zak libmount/src/hook_mount.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit 24e3ede3dab15fcbf18d16ac09ae57ba4827c4b5 Author: Thomas Weißschuh Date: Wed Jun 12 23:32:15 2024 +0200 lib/sysfs: zero-terminate result of sysfs_blkdev_get_devchain() sysfs_blkdev_get_devchain() does not zero-terminate its result, but the caller expects a C-string. Use ul_buffer_get_string() which includes a trailing zero-byte. Now it's also valid for sz and bufsz to be equal. See #3088. Signed-off-by: Thomas Weißschuh lib/sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 49e177d627f80640aac81522090cbdc151204c2d Author: Thomas Weißschuh Date: Thu Jun 13 11:39:34 2024 +0200 lib/buffer: introduce ul_buffer_get_string() Some users need a zero-byte-terminated string. As the buffer internally already maintains a zero-termination, add a helper function that exposes this to users. Signed-off-by: Thomas Weißschuh include/buffer.h | 1 + lib/buffer.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) commit 84e33a138dc9faf2b1b154df5eaed910aa236eeb Author: Thomas Weißschuh Date: Wed Jun 12 23:30:28 2024 +0200 lib/sysfs: abort device hierarchy walk at root of sysfs It does not make sense to leave the sysfs hierarchy during the walk of the parent directories. Signed-off-by: Thomas Weißschuh lib/sysfs.c | 4 ++++ 1 file changed, 4 insertions(+) commit e9977b8c120c07ded70dfa29a67934004b4d692d Merge: ed61f54dc e12128496 Author: Karel Zak Date: Mon Jun 10 11:10:07 2024 +0200 Merge branch 'lsfd--close-all' of https://github.com/masatake/util-linux * 'lsfd--close-all' of https://github.com/masatake/util-linux: lsfd: minimize the output related to lsfd itself commit ed61f54dcd61130658335a2de97e06453af3fdde 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. Suggested by Johannes Edmeier (@joshiste). Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e1212849663ce29f6b2b03ab5ffc85375da1f002 Author: Masatake YAMATO Date: Thu Jan 4 11:33:51 2024 +0900 lsfd: minimize the output related to lsfd itself Copied from the test case in lib/fileutils.c. lsfd-cmd/lsfd.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 41e7686c9ad1ea7892b9d8941c266869bf6a28dd Author: Karel Zak Date: Thu Jun 6 09:36:28 2024 +0200 Wall: Fix terminal flag usage . Signed-off-by: Karel Zak term-utils/scriptreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 75197662decb7a1d332197df9786a846f9d46e47 Merge: 8922775ef f1bd8d0dd Author: Karel Zak Date: Thu Jun 6 09:32:19 2024 +0200 Merge branch 'ci/armv7' of https://github.com/t-8ch/util-linux * 'ci/armv7' of https://github.com/t-8ch/util-linux: ci: test on armv7 lsfd: (tests) skip tests using fd flags on qemu-user commit 8922775ef33c2327c31f008704250c0b3168f12d Merge: f66264f54 1a02c7a7a Author: Karel Zak Date: Thu Jun 6 09:30:25 2024 +0200 Merge branch 'spelling' of https://github.com/scop/util-linux * 'spelling' of https://github.com/scop/util-linux: *: spelling and grammar fixes commit f66264f54527a00491f6cd53b22293a2c51ecf85 Merge: fa1fc98fd c7886716d Author: Karel Zak Date: Thu Jun 6 09:27:19 2024 +0200 Merge branch 'feat/logger-sd-completions' of https://github.com/scop/util-linux * 'feat/logger-sd-completions' of https://github.com/scop/util-linux: bash-completion: add logger --sd-* completions commit fa1fc98fd967f85f8e8f915d1b56f187b50cae3c Merge: 42ab38594 8bd4d796f Author: Karel Zak Date: Thu Jun 6 09:26:26 2024 +0200 Merge branch 'wdctl/compat-chardev' of https://github.com/t-8ch/util-linux * 'wdctl/compat-chardev' of https://github.com/t-8ch/util-linux: wdctl: always query device node when sysfs is unavailable commit 42ab385948082aa486e14197ab6b25c442eea437 Merge: d7282ef8b 0af497c66 Author: Karel Zak Date: Thu Jun 6 09:25:10 2024 +0200 Merge branch 'PR/wall-tty-list' of github.com:karelzak/util-linux-work * 'PR/wall-tty-list' of github.com:karelzak/util-linux-work: wall: always use utmp as fallback commit 1a02c7a7a9257b597eabd0bc26e9a01697c23db7 Author: Ville Skyttä Date: Tue Jun 4 23:44:40 2024 +0300 *: spelling and grammar fixes Signed-off-by: Ville Skyttä configure.ac | 2 +- disk-utils/fdisk.8.adoc | 2 +- disk-utils/sfdisk.c | 2 +- include/xxhash.h | 4 ++-- lib/fileeq.c | 6 +++--- libblkid/src/blkid.h.in | 4 ++-- libblkid/src/devname.c | 2 +- libblkid/src/superblocks/ext.c | 4 ++-- libfdisk/samples/mkpart.c | 2 +- liblastlog2/man/ll2_read_all.3.adoc | 2 +- libmount/src/context.c | 4 ++-- libmount/src/context_mount.c | 2 +- libmount/src/context_umount.c | 2 +- libmount/src/hook_mount.c | 4 ++-- libmount/src/hook_mount_legacy.c | 2 +- libmount/src/hook_selinux.c | 2 +- libmount/src/hook_subdir.c | 2 +- libmount/src/hook_veritydev.c | 2 +- libmount/src/hooks.c | 2 +- libmount/src/lock.c | 2 +- libmount/src/mountP.h | 2 +- libmount/src/optlist.c | 6 +++--- libmount/src/optstr.c | 2 +- libmount/src/tab_update.c | 6 +++--- libsmartcols/samples/continuous.c | 2 +- libsmartcols/scols-filter.5.adoc | 2 +- libsmartcols/src/calculate.c | 6 +++--- libsmartcols/src/column.c | 4 ++-- libsmartcols/src/filter-expr.c | 2 +- libsmartcols/src/filter-param.c | 4 ++-- libsmartcols/src/filter-parser.y | 2 +- libsmartcols/src/filter.c | 6 +++--- libsmartcols/src/smartcolsP.h | 4 ++-- libuuid/src/predefined.c | 2 +- login-utils/su-common.c | 2 +- lsfd-cmd/cdev.c | 2 +- lsfd-cmd/file.c | 2 +- lsfd-cmd/lsfd.c | 6 +++--- lsfd-cmd/sock.h | 2 +- meson.build | 2 +- misc-utils/findmnt-verify.c | 2 +- misc-utils/findmnt.c | 2 +- misc-utils/hardlink.c | 2 +- misc-utils/lastlog2.8.adoc | 2 +- misc-utils/lastlog2.c | 2 +- misc-utils/lsblk-devtree.c | 4 ++-- misc-utils/lsblk-mnt.c | 4 ++-- misc-utils/lsblk.c | 2 +- misc-utils/test_uuidd.c | 2 +- misc-utils/uuidd.8.adoc | 2 +- pam_lastlog2/man/pam_lastlog2.8.adoc | 2 +- po-man/Makefile.am | 2 +- po-man/util-linux-man.pot | 4 ++-- po/util-linux.pot | 2 +- sys-utils/lscpu.h | 4 ++-- sys-utils/lsipc.c | 2 +- sys-utils/unshare.c | 2 +- sys-utils/wdctl.c | 2 +- term-utils/agetty.c | 2 +- tools/all_errnos | 2 +- tools/checkconfig.sh | 2 +- 61 files changed, 85 insertions(+), 85 deletions(-) commit c7886716d754408717e6ca1dd7ade09fdc46029f Author: Ville Skyttä Date: Tue Jun 4 23:19:38 2024 +0300 bash-completion: add logger --sd-* completions Signed-off-by: Ville Skyttä bash-completion/logger | 6 ++++++ 1 file changed, 6 insertions(+) commit 8bd4d796f4d6a0480c0744302ca40fa5ad5de070 Author: Thomas Weißschuh Date: Tue Jun 4 21:06:49 2024 +0200 wdctl: always query device node when sysfs is unavailable When there is no sysfs at all for the watchdog, fall back to reading from the device node. This is also useful if the legacy compat /dev/watchdog device which never has a sysfs interface. Closes: #3073 Signed-off-by: Thomas Weißschuh sys-utils/wdctl.c | 3 +++ 1 file changed, 3 insertions(+) commit f1bd8d0dd2d7f1f8ef6da0e14b66866dce53ad32 Author: Thomas Weißschuh Date: Sun Feb 4 21:46:48 2024 +0100 ci: test on armv7 Currently no tests are running on 32bit ARM. Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 1 + 1 file changed, 1 insertion(+) commit dd8ef6c062fe0b11f2c3c0cc50270e97fde4c1e2 Author: Thomas Weißschuh Date: Mon Apr 29 08:11:57 2024 +0200 lsfd: (tests) skip tests using fd flags on qemu-user The flags value visible in /proc/$PID/fdinfo/ is encoded using the platform the kernel is running on. Not all platforms use the same numeric flag value, making this cross-platform interpretation brittle. Signed-off-by: Thomas Weißschuh tests/ts/lsfd/mkfds-directory | 2 ++ tests/ts/lsfd/mkfds-symlink | 2 ++ 2 files changed, 4 insertions(+) commit d7282ef8b3b030bbecee4264ae7674e0bf08d52c Author: Karel Zak Date: Tue Jun 4 13:19:13 2024 +0200 scriptreplay: fix uninitialized value [coverity scan] * fix uninitialized value "rc" * simplify if(rc) block Signed-off-by: Karel Zak term-utils/scriptreplay.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) commit a19884fc837ac6e4746eaba3764c59db2e3f046f Merge: 5d1ba902d 7d42c9799 Author: Karel Zak Date: Tue Jun 4 09:41:26 2024 +0200 Merge branch 'master' of https://github.com/jamacku/util-linux * 'master' of https://github.com/jamacku/util-linux: ci: enable dependency manager for GitHub Actions commit 5d1ba902d85abfb0d77dd114525bd752e5eca4d7 Merge: 6dee9d092 937f05098 Author: Karel Zak Date: Tue Jun 4 09:35:20 2024 +0200 Merge branch 'squash' of https://github.com/BourgeoisBear/util-linux * 'squash' of https://github.com/BourgeoisBear/util-linux: last/lastb field truncation indicator commit 6dee9d092ec09f88b79f4ace7eef683e1803c0c8 Merge: 9becd2824 9bb19b6d0 Author: Karel Zak Date: Tue Jun 4 09:29:13 2024 +0200 Merge branch 'as-safe-printf' of https://github.com/crrodriguez/util-linux * 'as-safe-printf' of https://github.com/crrodriguez/util-linux: Allow printf to be used on signal handlers commit 9becd28242258171026bdaab314740d7d98adcfc Merge: 47d67f32b 2a684833d Author: Karel Zak Date: Tue Jun 4 09:14:49 2024 +0200 Merge branch 'PR/libmount-fds' of github.com:karelzak/util-linux-work * 'PR/libmount-fds' of github.com:karelzak/util-linux-work: libmount: fix tree FD usage in subdir hook commit 47d67f32b65a62023a9f766a6e94e052d4e41b66 Merge: a596a441a 7a136d595 Author: Karel Zak Date: Tue Jun 4 09:14:22 2024 +0200 Merge branch 'master' of https://github.com/jlinton/util-linux * 'master' of https://github.com/jlinton/util-linux: lscpu: New Arm Cortex part numbers commit 2a684833d723e29af0ba772b3e6917492c69e023 Author: Karel Zak Date: Mon Jun 3 12:33:01 2024 +0200 libmount: fix tree FD usage in subdir hook * Initialize the tree file descriptor in the hook_subdir.c module if it has not been initialized yet. (hook_mount.c does not open the tree if the mount. helper will be executed.) * Move the function to open the tree to context.c to make it more generic and usable in more places. Reported-by: Linus Heckemann Signed-off-by: Karel Zak libmount/src/context.c | 41 +++++++++++++++++++++++++++++++++++++++++ libmount/src/hook_mount.c | 43 +++---------------------------------------- libmount/src/hook_subdir.c | 31 +++++++++++++++++++------------ libmount/src/mountP.h | 3 +++ 4 files changed, 66 insertions(+), 52 deletions(-) commit 0af497c6688b53a3a176176bfbcdca821bd856ec Author: Karel Zak Date: Mon Jun 3 14:32:18 2024 +0200 wall: always use utmp as fallback Wall(1) can be compiled with systemd support to read the names of ttys from the systemd session list. However, this may not work on all systems. In case of failure, the best option is to use the traditional utmp method as a fallback. This commit uses strv (string vector) to collect tty names from both sources (systemd and utmp) and then sends a message to all ttys. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2283049 Signed-off-by: Karel Zak term-utils/wall.c | 57 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 18 deletions(-) commit a596a441ac6ef90d5fdfa14830d5c3c88885e4ec Author: Karel Zak Date: Thu May 30 14:26:43 2024 +0200 tests: add dump from ARM with A510+A710+A715+X3 Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-arm-A510-A710-A715-X3 | 83 ++++++++++++++++++++++ tests/ts/lscpu/dumps/arm-A510-A710-A715-X3.tar.gz | Bin 0 -> 36447 bytes 2 files changed, 83 insertions(+) commit b699f6ffa3f4d4188993647299e42b087fadfa58 Author: Karel Zak Date: Thu May 30 14:11:38 2024 +0200 tests: update lscpu vmware_fpe output The cpuinfo for vmware_fpe defines two types of CPUs, which differ in their flags. However, this difference is ignored by lscpu. The latest version now uses the flags that were defined later. Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-vmware_fpe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit eb6514b4c2618ff68abbafd36fc3520beed87812 Author: Karel Zak Date: Thu May 30 13:59:16 2024 +0200 lscpu: use CPU types de-duplication The new CPU type was always allocated when a new relevant value for the type was found in the cpuinfo file. However, this solution is fragile because it can result in the parser creating a cputype struct with incomplete information. For instance, on ARM systems with multiple CPU types, a new CPU type would be triggered by a different "CPU part ID". In cases where the vendor remained the same, a new type would be created later but the vendor would not be initialized. The new implementation creates a new CPU type for each CPU (almost) and then later de-duplicates the array based on vendor, model, etc. Addresses: https://github.com/util-linux/util-linux/issues/3062 Signed-off-by: Karel Zak include/strutils.h | 30 +++++++++ sys-utils/lscpu-cpu.c | 2 +- sys-utils/lscpu-cputype.c | 154 ++++++++++++++++++++++++++++++++++++++-------- sys-utils/lscpu.1.adoc | 4 +- 4 files changed, 164 insertions(+), 26 deletions(-) commit 7a136d595f1b3b48128afdb9bd110a40aec771af Author: Jeremy Linton Date: Wed May 29 11:04:38 2024 -0500 lscpu: New Arm Cortex part numbers Arm has announced the Cortex-X925 and published the TRM here: https://developer.arm.com/documentation/102807/0001/?lang=en As well as the Cortex-A725 with a TRM here: https://developer.arm.com/documentation/107652/0001/?lang=en Signed-off-by: Jeremy Linton sys-utils/lscpu-arm.c | 2 ++ 1 file changed, 2 insertions(+) commit 0284eb3a8a6505dd9745b042089046ad368bfe74 Merge: c22152e07 172aeb36e Author: Karel Zak Date: Tue May 28 12:43:00 2024 +0200 Merge branch 'PR/libmount-exec-errors' of github.com:karelzak/util-linux-work * 'PR/libmount-exec-errors' of github.com:karelzak/util-linux-work: libmount: expose exec errors commit c22152e07601205e0342f4aa9382164eaf09d7af Merge: 55ca447a6 d616c2fb4 Author: Karel Zak Date: Tue May 28 12:32:49 2024 +0200 Merge branch 'scriptreplay/add-interactive-playback/2999' of https://github.com/jNullj/util-linux * 'scriptreplay/add-interactive-playback/2999' of https://github.com/jNullj/util-linux: format: fix switch case indent fix clang compile replace fgetwc with fgetc format: fix comments and if braces format format: CamelCase to SnakeCase Refactor convoluted switch case into if else fix formatting and add mising break Add missing author Add interactive playback docs Add right arrow key to step forward in playback Remove uneeded veriable Add support for adjusting replay speed with arrow keys Refactor to handle responsive input Add pause functionality to replay Refactor delay_for function signature to use const struct timeval Set stdin to nonblock commit 172aeb36e9d98c235cf63ebd630c4c67ea43d26b Author: Karel Zak Date: Mon May 27 14:04:31 2024 +0200 libmount: expose exec errors * Introduce special exit status 126 to inform about failed execl of the /sbin/[u]mount. helpers. * Introduce MNT_ERR_EXEC as an API return code to inform about failed execl() calls. * Add mount and umount messages for failed execl() calls. * Add EXIT STATUS section to umount man page. Addresses: https://github.com/util-linux/util-linux/pull/3063 Signed-off-by: Karel Zak libmount/src/context_mount.c | 28 +++++++++++++++++++++------- libmount/src/context_umount.c | 22 ++++++++++++++++------ libmount/src/libmount.h.in | 13 +++++++++++++ sys-utils/mount.8.adoc | 5 +++++ sys-utils/umount.8.adoc | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 90 insertions(+), 13 deletions(-) commit d616c2fb43e5d302fbc6af2d335c0574c63af9c6 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Mon May 27 19:21:48 2024 +0300 format: fix switch case indent Linux kernel coding style prefers switch and case at the same indent level. term-utils/scriptreplay.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) commit c2c16fdb72a83aef157813045738ed5c96513309 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Mon May 27 19:18:15 2024 +0300 fix clang compile This commit fix clang compile issue. Replace local char veriables with generic ch already used by the in function. Reduce memory usage. term-utils/scriptreplay.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) commit 55ca447a6a95226fd031a126fb48b01b3efd6284 Merge: 7a2efe680 bf751e8ef Author: Karel Zak Date: Mon May 27 11:51:46 2024 +0200 Merge branch 'fix-unnecessary-remake' of https://github.com/ChenQi1989/util-linux * 'fix-unnecessary-remake' of https://github.com/ChenQi1989/util-linux: libsmartcols/src/Makemodule.am: ensure filter-scanner/paser.c file is newer than the .h file commit 7a2efe6800d99daf7eb36f6b77b7583bac2e11ca Merge: cbfcbbf9c 10ce2af42 Author: Karel Zak Date: Mon May 27 11:48:49 2024 +0200 Merge branch 'PR/cal-fix-weeknumber-colors' of github.com:karelzak/util-linux-work * 'PR/cal-fix-weeknumber-colors' of github.com:karelzak/util-linux-work: tests: add color schema to cal(1) tests cal: colorize --vertical output. cal: properly colorize the week number in vertical output. cal: fix --week use and colors commit cbfcbbf9cda722e83715330b09abfa817460275e Merge: 9f15d2de8 9f94d1212 Author: Karel Zak Date: Mon May 27 11:48:13 2024 +0200 Merge branch 'PR/libmount-errmsg' of github.com:karelzak/util-linux-work * 'PR/libmount-errmsg' of github.com:karelzak/util-linux-work: libmount: (loop) detect and report lost loop nodes libmount: add mnt_context_sprintf_errmsg() libmount: add functions to use error buffer libmount: use regular function to save/reset syscalls status commit bf751e8effcc348495aa3a7aeb7a4257cf2ffa6e Author: Chen Qi Date: Sat May 25 11:41:35 2024 +0800 libsmartcols/src/Makemodule.am: ensure filter-scanner/paser.c file is newer than the .h file In released tarball, for filter-scanner/parser, the .h and the .c file has the same mtime. The 'make' tool thinks .h is newer than the .c file, thus deciding to remake it. This will not only cause unnecessary rebuild, but also parallel make error. For example, after 'make', when running 'make install', the libmount.la and findmnt are both rebuilt and findmnt building will somethings error out complaining 'libmount.so: no such file or directory' or 'libmount.so: file format not recognized'. Touch the generated .c file to ensure it's newer than the .h file. In this way, in new released tarballs in the future, there will be no unnecessary remake. fixes util-linux/util-linux#3061 Signed-off-by: Chen Qi libsmartcols/src/Makemodule.am | 2 ++ 1 file changed, 2 insertions(+) commit 7000120bc2324e9eca19a5b40eb24861526d1f34 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Fri May 24 22:23:48 2024 +0300 replace fgetwc with fgetc there is no real reason to use fgetwc here as arrow key press is not read as a multi-byte by fgetwc and the logic implemented here also reads the keypress byte by bytes. term-utils/scriptreplay.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 10ce2af422fc2465a6d5210a4f616b1b8d8ee3d3 Author: Karel Zak Date: Thu May 23 13:13:34 2024 +0200 tests: add color schema to cal(1) tests Signed-off-by: Karel Zak tests/expected/cal/color-first-day | 16 ++++---- tests/expected/cal/color-last-day | 16 ++++---- .../expected/cal/color-reformation-corner-cases-1 | 10 ++--- .../expected/cal/color-reformation-corner-cases-2 | 10 ++--- .../expected/cal/color-reformation-corner-cases-3 | 10 ++--- .../expected/cal/color-reformation-corner-cases-4 | 10 ++--- tests/expected/cal/color-vertical | 16 ++++---- tests/expected/cal/color-vertical-week | 18 ++++----- tests/expected/cal/colorw-first-day-week-numbers | 16 ++++---- tests/expected/cal/colorw-last-day-week-numbers | 16 ++++---- .../colorw-reformation-corner-cases-1-week-numbers | 10 ++--- .../colorw-reformation-corner-cases-2-week-numbers | 10 ++--- .../colorw-reformation-corner-cases-3-week-numbers | 10 ++--- .../colorw-reformation-corner-cases-4-week-numbers | 10 ++--- tests/ts/cal/color | 47 +++++++--------------- tests/ts/cal/colorw | 37 ++++++----------- tests/ts/cal/terminal-colors.d/cal.scheme | 6 +++ 17 files changed, 123 insertions(+), 145 deletions(-) commit 9f15d2de8117732845b2e891a2d24d987ee4e3ed Merge: 08e5865a1 a1361b5d3 Author: Karel Zak Date: Thu May 23 10:53:29 2024 +0200 Merge branch 'symver' of https://github.com/nekopsykose/util-linux * 'symver' of https://github.com/nekopsykose/util-linux: pam_lastlog2: remove symbol that doesn't exist from version script commit 08e5865a10eefb493fb6deec2ea692e25bafd2bf Merge: b4e02ae8f 74f3265b9 Author: Karel Zak Date: Thu May 23 10:52:45 2024 +0200 Merge branch 'add_eupl' of https://github.com/ThijsRay/util-linux * 'add_eupl' of https://github.com/ThijsRay/util-linux: docs: add European Public License v1.2 commit b4e02ae8fd450a5ab80dc979d4d28f0833e22578 Merge: 83011e4e7 f9d28c8e2 Author: Karel Zak Date: Thu May 23 10:52:14 2024 +0200 Merge branch 'coresched_bash_completions' of https://github.com/ThijsRay/util-linux * 'coresched_bash_completions' of https://github.com/ThijsRay/util-linux: coresched: add bash completions commit 0bfd75dbf413be85049e0c89551f208cfa64a2ea Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Thu May 23 00:06:34 2024 +0300 format: fix comments and if braces format term-utils/scriptreplay.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) commit 28d7c58404ec8b38021f90bd8930783f0279ebe0 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Wed May 22 23:25:15 2024 +0300 format: CamelCase to SnakeCase term-utils/scriptreplay.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) commit 83011e4e7589981f43c5509030404dc048ab2fa9 Author: Thomas Weißschuh Date: Wed May 22 17:10:26 2024 +0200 libuuid: link test_uuid_time with pthread Since commit a3f1255f1891 ("libuuid: clear uuidd cache on fork()") compilation of gen_uuid.c requires libpthreads. Signed-off-by: Thomas Weißschuh libuuid/src/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f9d28c8e234503d5c6b4a91a2475df94ab599bbd Author: Thijs Raymakers Date: Wed May 22 16:24:01 2024 +0200 coresched: add bash completions Signed-off-by: Thijs Raymakers bash-completion/coresched | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) commit 74f3265b9a079f9f60ad6e606d77deae0029a43a Author: Thijs Raymakers Date: Wed May 22 13:38:18 2024 +0200 docs: add European Public License v1.2 schedutils/coresched is licensed under the EUPL 1.2. Signed-off-by: Thijs Raymakers Documentation/licenses/COPYING.EUPL-1.2 | 287 ++++++++++++++++++++++++++++++++ README.licensing | 2 + 2 files changed, 289 insertions(+) commit a1361b5d3db512b00bc1dc1016b6ea178bd018f9 Author: psykose Date: Wed May 22 10:23:55 2024 +0000 pam_lastlog2: remove symbol that doesn't exist from version script otherwise ld.lld by default errors with ld: error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined since the symbol is not in the library pam_lastlog2/src/pam_lastlog2.sym | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 2d4f025d57ddb56f9124bebc17a79c14b11e720d Merge: 6a865db90 5175604b4 Author: Karel Zak Date: Wed May 22 12:14:43 2024 +0200 Merge branch 'libuuid/coverity' of https://github.com/t-8ch/util-linux * 'libuuid/coverity' of https://github.com/t-8ch/util-linux: libuuid: construct UUIDv7 without "struct uuid" libuuid: construct UUIDv6 without "struct uuid" libuuid: add helper to set version and variant in uuid_t commit 6a865db90c93a7037cea39c619726c9dae2eea99 Merge: 8ba82a04e 86d3f3f03 Author: Karel Zak Date: Wed May 22 12:13:23 2024 +0200 Merge branch 'clang-17' of https://github.com/nvinson/util-linux * 'clang-17' of https://github.com/nvinson/util-linux: Conditionally add uuid_time64 to sym. version map commit 8ba82a04eab1b33f8377380d3638daea3a996268 Merge: ea3173806 a3f1255f1 Author: Karel Zak Date: Wed May 22 12:12:34 2024 +0200 Merge branch 'libuuid/fork' of https://github.com/t-8ch/util-linux * 'libuuid/fork' of https://github.com/t-8ch/util-linux: libuuid: clear uuidd cache on fork() libuuid: split uuidd cache into dedicated struct libuuid: drop check for HAVE_TLS commit ea3173806476609b395c3d08a0052c9f4bb1e7ea Merge: d1277787a 67e9380c3 Author: Karel Zak Date: Wed May 22 12:11:00 2024 +0200 Merge branch 'patch-1' of https://github.com/strongtz/util-linux * 'patch-1' of https://github.com/strongtz/util-linux: Add Qualcomm Oryon ARM core commit d1277787a9dd6a4df2c664cfe7242261a63f3be0 Merge: 4647fc6af 244dc7998 Author: Karel Zak Date: Wed May 22 12:10:37 2024 +0200 Merge branch 'libuuid/time-tests' of https://github.com/t-8ch/util-linux * 'libuuid/time-tests' of https://github.com/t-8ch/util-linux: libuuid: test time-based UUID generation commit 4647fc6afbf7e99c49531600425df60f1243fcd2 Merge: cc814c818 beef18da4 Author: Karel Zak Date: Wed May 22 12:09:31 2024 +0200 Merge branch 'master' of https://github.com/ffontaine/util-linux * 'master' of https://github.com/ffontaine/util-linux: sys-utils/setarch.c: fix build with uclibc-ng < 1.0.39 commit cc814c81849560805ac1f2a136bb828c5c0936e3 Merge: 14ba2efea 8a01276a3 Author: Karel Zak Date: Wed May 22 12:08:50 2024 +0200 Merge branch 'PR/libsmartcols-fix-stages' of github.com:karelzak/util-linux-work * 'PR/libsmartcols-fix-stages' of github.com:karelzak/util-linux-work: libsmartcols: fix reduction stages use commit 14ba2efea1d9f4abfff13d73d66791bbbf608e5b Merge: 1b6adce24 5a2889f8d Author: Karel Zak Date: Wed May 22 12:08:13 2024 +0200 Merge branch 'PR/hardlink-trees-prio' of github.com:karelzak/util-linux-work * 'PR/hardlink-trees-prio' of github.com:karelzak/util-linux-work: hardlink: add --prioritize-trees commit 1b6adce24ef07aaeb0aa434eb642378f11706951 Author: Karel Zak Date: Wed May 22 12:02:56 2024 +0200 fdisk: fix typos Adresses: https://github.com/util-linux/util-linux/issues/2804 Signed-off-by: Karel Zak disk-utils/fdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9f94d121228b924e7dcc81f30efb2de983ea3359 Author: Karel Zak Date: Wed May 22 11:36:25 2024 +0200 libmount: (loop) detect and report lost loop nodes Fixed: https://github.com/util-linux/util-linux/issues/2605 Signed-off-by: Karel Zak libmount/src/hook_loopdev.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 41476dd406114f231bea5bc1aa6297cfbb5474ba Author: Karel Zak Date: Wed May 22 11:32:55 2024 +0200 libmount: add mnt_context_sprintf_errmsg() Let's make it easy to create error message and return the message to applications also when not generated by a syscall (kernel). Signed-off-by: Karel Zak libmount/src/context.c | 20 ++++++++++++++++++++ libmount/src/context_mount.c | 5 +++++ libmount/src/mountP.h | 1 + 3 files changed, 26 insertions(+) commit c40235720ee0a742f4d8aca2333e1ccad726269a Author: Karel Zak Date: Wed May 22 10:52:04 2024 +0200 libmount: add functions to use error buffer * Add mnt_context_set_errmsg() and mnt_context_append_errmsg() functions. * Replace custom code with mnt_context_syscall_save_status() function. * Optionally use syscall name when generating error message. Signed-off-by: Karel Zak libmount/src/context.c | 31 +++++++++++++++++++++++++++++-- libmount/src/context_mount.c | 11 +++++++---- libmount/src/hook_mount.c | 8 ++------ libmount/src/hook_mount_legacy.c | 11 +++-------- libmount/src/mountP.h | 5 ++++- 5 files changed, 45 insertions(+), 21 deletions(-) commit 5175604b48b7dea9b60fe5f2ee440891032d522f Author: Thomas Weißschuh Date: Tue May 21 18:44:19 2024 +0200 libuuid: construct UUIDv7 without "struct uuid" The layout of "struct uuid" is specific to UUIDv1. Using it for UUIDv7 makes the logic complicated and confuses Coverity. Signed-off-by: Thomas Weißschuh libuuid/src/gen_uuid.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) commit f26ea8dfd0bf465271657a5e46b57853b646eea3 Author: Thomas Weißschuh Date: Tue May 21 18:43:36 2024 +0200 libuuid: construct UUIDv6 without "struct uuid" The layout of "struct uuid" is specific to UUIDv1. Using it for UUIDv6 makes the logic complicated and confuses Coverity. Signed-off-by: Thomas Weißschuh libuuid/src/gen_uuid.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) commit 22b8c3f588664f0879f2214cb7671b3716051749 Author: Thomas Weißschuh Date: Tue May 21 18:41:59 2024 +0200 libuuid: add helper to set version and variant in uuid_t Signed-off-by: Thomas Weißschuh libuuid/src/gen_uuid.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 6b871f465b436a792623bb9492ada9d51e22b4ba Author: Karel Zak Date: Tue May 21 12:44:11 2024 +0200 libmount: use regular function to save/reset syscalls status This commit is just cleanup to keep internal API consistent. Signed-off-by: Karel Zak libmount/src/context.c | 31 ++++++++++++++++++++++++++++--- libmount/src/hook_mount.c | 4 ++-- libmount/src/hook_subdir.c | 9 ++++----- libmount/src/mountP.h | 25 ++++--------------------- 4 files changed, 38 insertions(+), 31 deletions(-) commit 67e9380c3959b8c27fa20a6bf22a1199588df7dc Author: Sophon Date: Tue May 21 15:42:17 2024 +0800 Add Qualcomm Oryon ARM core Adding core information for Oryon found in Qualcomm Snapdragon X series SoCs sys-utils/lscpu-arm.c | 1 + 1 file changed, 1 insertion(+) commit 9abbe9e800ccb9b2d6ff58091811cce73e2b5319 Author: Karel Zak Date: Tue May 21 09:29:08 2024 +0200 cal: colorize --vertical output. Let's use the same colors as we currently use for regular output. Signed-off-by: Karel Zak misc-utils/cal.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) commit 70080ecf39e70e6b4d0aef1c1eecd75614e32390 Author: Karel Zak Date: Mon May 20 15:54:37 2024 +0200 cal: properly colorize the week number in vertical output. Signed-off-by: Karel Zak misc-utils/cal.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) commit f9c0c1bf23e713c622239a68fd36d30a87574567 Author: Karel Zak Date: Mon May 20 15:07:24 2024 +0200 cal: fix --week use and colors * don't overwrite --week= by the current date, default only to the current year, if the year is not specified * introduce "weeks" color sequence to colorize all week numbers. Note that the man page suggests using "weeknumber" to colorize all week numbers, but the code only uses this sequence for the week requested by the --week option. This commit maintains backward compatibility, although it would be better to use "weeknumber" for all week numbers and "weekwanted" for the desired week. Signed-off-by: Karel Zak misc-utils/cal.1.adoc | 10 +++++++++- misc-utils/cal.c | 46 +++++++++++++++++++++++++++++++++++----------- 2 files changed, 44 insertions(+), 12 deletions(-) commit 6cc9d27d9851090d118c0851dcf0aeaf869da132 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Sat May 18 18:18:57 2024 +0300 Refactor convoluted switch case into if else term-utils/scriptreplay.c | 43 +++++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 24 deletions(-) commit 244dc7998dac929d89bdedc6de421b7b7c59cdca Author: Thomas Weißschuh Date: Thu May 16 19:05:01 2024 +0200 libuuid: test time-based UUID generation Signed-off-by: Thomas Weißschuh libuuid/meson.build | 9 +++++++++ libuuid/src/Makemodule.am | 6 ++++++ libuuid/src/gen_uuid.c | 35 ++++++++++++++++++++++++++++++++++- meson.build | 11 +++++++++++ tests/commands.sh | 1 + tests/expected/uuid/time | 4 ++++ tests/ts/uuid/time | 27 +++++++++++++++++++++++++++ 7 files changed, 92 insertions(+), 1 deletion(-) commit 86d3f3f03231d25f9cbf18d83aeeccd2225dd246 Author: Nicholas Vinson Date: Wed May 15 11:14:54 2024 -0400 Conditionally add uuid_time64 to sym. version map The symbol uuid_time64 is conditionally defined. It only exists on 32-bit platforms that use the glibc library and enable support for the 64-bit time_t type. For all other platforms, the symbol is undefined. As a result, when ld.lld version 17 or newer is used with default flags, ld.lld will reject the symbol map with the error: version script assignment of 'UUID_2.40' to symbol 'uuid_time64' failed: symbol not defined To fix this issue, the reference to uuid_time64 is changed to uuid_time64*. The change to a glob pattern satisifies ld.lld and allows the library to link. fixes util-linux/util-linux#3036 fixes Gentoo bug #931328 Signed-off-by: Nicholas Vinson libuuid/src/libuuid.sym | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit beef18da4de87ca5aaadf2beb14187f35cc4f50f Author: Fabrice Fontaine Date: Wed May 15 18:22:11 2024 +0200 sys-utils/setarch.c: fix build with uclibc-ng < 1.0.39 Fix the following build failure with uclibc-ng < 1.0.39 (i.e., without https://github.com/wbx-github/uclibc-ng/commit/85ac4f04d94e98389a8315e720630d0f95bfdfd6) raised since version 2.39 and https://github.com/util-linux/util-linux/commit/03a254f010b08da1175f50a8ae7882e59228f1b4: sys-utils/setarch.c:106:7: error: 'PER_LINUX32_3GB' undeclared here (not in a function); did you mean 'PER_LINUX32'? 106 | X(PER_LINUX32_3GB) \ | ^~~~~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/fb1feb47f2660882fa53f66bacc63e191fd52175 Signed-off-by: Fabrice Fontaine sys-utils/setarch.c | 5 +++++ 1 file changed, 5 insertions(+) commit 8a01276a3c5bc09dce342e087019c704d8c56a32 Author: Karel Zak Date: Wed May 15 15:45:19 2024 +0200 libsmartcols: fix reduction stages use There is no proper check for the number of reduction stages, so in some cases, the code can loop indefinitely. The patch also fixes 'rc' variable shadowing. Fixes: https://github.com/util-linux/util-linux/issues/3046 Signed-off-by: Karel Zak libsmartcols/src/calculate.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 5a2889f8d21f83db6d57657eebfa095595e70191 Author: Karel Zak Date: Wed May 15 15:25:35 2024 +0200 hardlink: add --prioritize-trees Based on patch from discussion at https://github.com/util-linux/util-linux/issues/3016 Signed-off-by: Karel Zak misc-utils/hardlink.1.adoc | 4 ++++ misc-utils/hardlink.c | 23 ++++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) commit c731e9666597a923aabeeb040d563ccee36efd7e Author: Karel Zak Date: Wed May 15 13:24:29 2024 +0200 libblkid: make example more robust Fixes: https://github.com/util-linux/util-linux/issues/3043 Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 861da2e8c26191d17bd131fff3f6e362a4b7cda5 Merge: 53d3cb2b5 46eed8e16 Author: Karel Zak Date: Wed May 15 13:12:00 2024 +0200 Merge branch 'PR/libmount-fix-atime-remount' of github.com:karelzak/util-linux-work * 'PR/libmount-fix-atime-remount' of github.com:karelzak/util-linux-work: libmount: Fix atime remount for new API commit 53d3cb2b5a10c882f8e49f7566a2d05e76a00d81 Merge: 597e8b246 8d1123bf4 Author: Karel Zak Date: Wed May 15 13:11:11 2024 +0200 Merge branch 'libuuid/fix-uuidv6' of https://github.com/t-8ch/util-linux * 'libuuid/fix-uuidv6' of https://github.com/t-8ch/util-linux: libuuid: fix v6 generation commit 597e8b246ae31366514ead6cca240a09fe5e1528 Author: Karel Zak Date: Wed May 15 13:07:56 2024 +0200 libuuid: drop duplicate assignment liuuid_la_LDFLAGS Signed-off-by: Karel Zak libuuid/src/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8d1123bf4c370318a5a81192fb1de04537a23379 Author: Thomas Weißschuh Date: Wed May 15 06:42:42 2024 +0000 libuuid: fix v6 generation get_clock_counter() does not return a gregorian timestamp as required for v6. Signed-off-by: Thomas Weißschuh libuuid/src/gen_uuid.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 290748729dc3edf9ea1c680c8954441a5e367a44 Author: Thomas Weißschuh Date: Tue May 14 21:38:52 2024 +0200 pam_lastlog2: drop duplicate assignment pam_lastlog2_la_LDFLAGS The second assignment ends up on the linker/libtool commandline, potentially confusing the tools. Signed-off-by: Thomas Weißschuh pam_lastlog2/src/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a3f1255f1891ddbaf3bb6a32af28569c0e6f3b91 Author: Thomas Weißschuh Date: Tue May 7 13:44:31 2024 +0200 libuuid: clear uuidd cache on fork() After fork() the memory of the calling thread is preserved into the new process. This also includes TLS. Make sure to reset the cache after a fork to avoid reuse of cached values. Only the TLS of the thread calling fork() is relevant as that is the only thread that gets forked. New threads will received newly initialized TLS. Fixes https://github.com/util-linux/util-linux/issues/3009 Signed-off-by: Thomas Weißschuh libuuid/src/Makemodule.am | 2 +- libuuid/src/gen_uuid.c | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) commit 26dbc85838b06bd3e5349a81a4ce869efdd9f883 Author: Thomas Weißschuh Date: Tue May 7 13:33:40 2024 +0200 libuuid: split uuidd cache into dedicated struct To clear the struct we need to be able to refer to it by name. Signed-off-by: Thomas Weißschuh libuuid/src/gen_uuid.c | 74 +++++++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 34 deletions(-) commit c5d40f2487a971672b2e3f41f26a4cffac9a5c19 Author: Thomas Weißschuh Date: Tue May 7 13:28:41 2024 +0200 libuuid: drop check for HAVE_TLS In the function get_clock() TLS is used unconditionally anyways. Signed-off-by: Thomas Weißschuh libuuid/src/gen_uuid.c | 9 --------- 1 file changed, 9 deletions(-) commit 46eed8e1649cb8446d4c051ad1f1821cf3adca1a Author: Karel Zak Date: Tue May 14 11:58:20 2024 +0200 libmount: Fix atime remount for new API All atime settings are mutually exclusive, and the attr_set mask for the mount_setattr() syscall cannot contain multiple MOUNT_ATTR_ atime related options. Unfortunately, during a remount, the list of options is composed of both old and new options. In this case, libmount sets more atime options to the mask. The correct behavior is to use the last atime related option from the list. Fixes: https://github.com/util-linux/util-linux/issues/3032 Signed-off-by: Karel Zak libmount/src/optlist.c | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) commit 6193777d7ba9e90a1999b1fecdd16f06a3e3cec1 Merge: 2d27e6e43 a3d82ae13 Author: Karel Zak Date: Tue May 14 10:01:47 2024 +0200 Merge branch 'uuidv7' of https://github.com/t-8ch/util-linux * 'uuidv7' of https://github.com/t-8ch/util-linux: uuidgen: add support for RFC9562 UUIDs uuidparse: add support for RFC9562 UUIDs libuuid: add support for RFC9562 UUIDs commit 2d27e6e43f7946092c9cfc5d57b8d4bb58b34356 Merge: f19ca0be3 4e8c09226 Author: Karel Zak Date: Tue May 14 09:53:59 2024 +0200 Merge branch 'pidfd-enosys' of https://github.com/t-8ch/util-linux * 'pidfd-enosys' of https://github.com/t-8ch/util-linux: include/pidfd-utils: provide ENOSYS stubs if pidfd functions are missing commit f19ca0be3ee1b71f1437e131066439b40d6a3a92 Merge: 55748ad40 3036e4c21 Author: Karel Zak Date: Tue May 14 09:52:01 2024 +0200 Merge branch 'lsfd--use-new-ul_path-functions' of https://github.com/masatake/util-linux * 'lsfd--use-new-ul_path-functions' of https://github.com/masatake/util-linux: lsfd: (refactor) use ul_path_statf and ul_path_readlinkf commit 55748ad403d8ffc68e505bca08c607b330a210db Author: Karel Zak Date: Tue May 14 09:45:00 2024 +0200 wipefs: fix typo Fixes: https://github.com/util-linux/util-linux/issues/3027 Signed-off-by: Karel Zak misc-utils/wipefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4e8c092266e28589abd5ca149ee8b3a43a9a6ee0 Author: Thomas Weißschuh Date: Mon May 13 20:21:24 2024 +0200 include/pidfd-utils: provide ENOSYS stubs if pidfd functions are missing This allows code which can gracefully fall back to compile. This should fix the CI on Ubuntu 18.04. Signed-off-by: Thomas Weißschuh include/pidfd-utils.h | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) commit 961dfad332144d13e36a15132bc5d625b212a5de Author: Thomas Weißschuh Date: Mon May 13 10:46:39 2024 +0200 lib/path: use _vreadf_buffer for _cpuparse() ul_path_vreadf_buffer already provides zero-termination and newline trimming, so make use of it. We now could read more than a single line, but the files this is used on contain only a single line anyways. Signed-off-by: Thomas Weißschuh lib/path.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) commit 1a45153e46297451d7a79c4708d823ff64c8c514 Author: Thomas Weißschuh Date: Mon May 13 21:01:16 2024 +0200 lib/path: introduce ul_path_vreadf_buffer Signed-off-by: Thomas Weißschuh include/path.h | 2 ++ lib/path.c | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) commit 3036e4c213b500a90c2531ff8fec76e5979184d0 Author: Masatake YAMATO Date: Tue May 14 01:43:42 2024 +0900 lsfd: (refactor) use ul_path_statf and ul_path_readlinkf Signed-off-by: Masatake YAMATO lsfd-cmd/file.c | 6 ++---- lsfd-cmd/lsfd.c | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) commit d4fc7055ca11fad8f7664c5f28ef6c9622acb166 Author: Thomas Weißschuh Date: Mon May 13 10:46:31 2024 +0200 lib/path: use _read_buffer for _read_string() ul_path_read_buffer already provides zero-termination and newline trimming, so make use of it. Signed-off-by: Thomas Weißschuh lib/path.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) commit 057080b5c89fa63cece8a5d4a6da4959bd004aa1 Author: Karel Zak Date: Mon May 13 11:43:57 2024 +0200 include/pidfd-utils: remove hardcoded syscall fallback Based on https://github.com/util-linux/util-linux/pull/3018 The syscall numbers should not be hardcoded in the header file. If we really need them, there is UL_CHECK_SYSCALL() to define the numbers for different architectures. I doubt it's really necessary. Just update your kernel header files to get the latest kernel updates ... Signed-off-by: Karel Zak include/pidfd-utils.h | 13 ------------- 1 file changed, 13 deletions(-) commit c2a863c2d7f4d7cc7f44423a3d761f973fce711c Merge: 20a156575 bd09cebb1 Author: Karel Zak Date: Mon May 13 10:17:57 2024 +0200 Merge branch 'structlceanup' of https://github.com/penguin42/util-linux * 'structlceanup' of https://github.com/penguin42/util-linux: cfdisk: Remove unused struct 'cfdisk_extra' commit 20a1565751bee1dbbb2bdda72e74192b16c7cf97 Merge: a208d9748 7f4ffbc2e Author: Karel Zak Date: Mon May 13 10:16:30 2024 +0200 Merge branch 'fix-column-example' of https://github.com/4KiB/util-linux * 'fix-column-example' of https://github.com/4KiB/util-linux: Fix fstab order in `column` manpage example. commit a208d974845504b6c241af4711d24d189ce30c07 Merge: 674f579cd 62cf52f81 Author: Karel Zak Date: Mon May 13 10:15:23 2024 +0200 Merge branch 'pidfs-pseudo' of https://github.com/YHNdnzj/util-linux * 'pidfs-pseudo' of https://github.com/YHNdnzj/util-linux: libmount/utils: add pidfs to pseudo fs list commit 674f579cd65ea28faf9ffb937869d27a9f55119c Merge: a642072ae 7b4e937c8 Author: Karel Zak Date: Mon May 13 10:14:54 2024 +0200 Merge branch 'mkswap-file' of https://github.com/YHNdnzj/util-linux * 'mkswap-file' of https://github.com/YHNdnzj/util-linux: mkswap.8.adoc: update note regarding swapfile creation commit a642072ae99eef84dc2557f141499d20fd1f46cf Merge: a153d4ffe 6273c1225 Author: Karel Zak Date: Mon May 13 10:09:54 2024 +0200 Merge branch 'fix' of https://github.com/DaanDeMeyer/util-linux * 'fix' of https://github.com/DaanDeMeyer/util-linux: Fix ul_path_read_buffer() commit a153d4ffe7b3561e48e68673d3caa8f7baf39fb4 Merge: 485f671ea 0c359281d Author: Karel Zak Date: Mon May 13 09:59:33 2024 +0200 Merge branch 'flock-test-doc' of https://github.com/Villemoes/util-linux * 'flock-test-doc' of https://github.com/Villemoes/util-linux: tests: add --fcntl testing to flock tests: prepare flock for testing --fcntl flock: document --fcntl flock: bash-completion: add --fcntl commit 485f671eafc074820060455520a2781521a8750f Merge: 14d3e1f33 7e582204c Author: Karel Zak Date: Mon May 13 09:58:21 2024 +0200 Merge branch 'meson-fix-Python.h-check' of https://github.com/jwillikers/util-linux * 'meson-fix-Python.h-check' of https://github.com/jwillikers/util-linux: meson: Correctly require the Python.h header for the python dependency meson: Only require Python module when building pylibmount meson: Fix build-python option commit 14d3e1f33c06a71212642851a9b96ade7c0433c4 Merge: b2c3700e3 0b5167e41 Author: Karel Zak Date: Mon May 13 08:42:06 2024 +0200 Merge branch 'lsns--refactor-related-to-2987' of https://github.com/masatake/util-linux * 'lsns--refactor-related-to-2987' of https://github.com/masatake/util-linux: lsns: (refactor) use ls_path_{openf|statf} to make the code simple lib/path: add ul_path_statf() and ul_path_vstatf() lsns: verify the uniqueness of a namespace in ls->namespaces list lsns: (refactor) make the function names for reading namespaces consistent lsns: (refactor) rename read_related_namespaces to connect_namespaces lsns: (refactor) rename get_ns_ino() to get_ns_inos() lsns: (refactor) use get_{parent|owner}_ns_ino() in add_namespace_for_nsfd lsns: (refactor) add get_{parent|owner}_ns_ino() implementing some parts of get_ns_ino() lsns: (refactor) give a enumeration name 'lsns_type' to LSNS_TYPE_ enumerators lsns: (refactor) rename LSNS_ID_.* to LSNS_TYPE_.* commit bd09cebb1cb32753e6697a8c80d86539dc12f9a5 Author: Dr. David Alan Gilbert Date: Sun May 12 13:49:23 2024 +0100 cfdisk: Remove unused struct 'cfdisk_extra' 'cfdisk_extra' looks unused since it's original commit (I think because it ended up using libscols instead). Remove it. Signed-off-by: Dr. David Alan Gilbert disk-utils/cfdisk.c | 8 -------- 1 file changed, 8 deletions(-) commit 7f4ffbc2e6740f829b45c0801fdfadea966615d5 Author: Rom Date: Sat May 11 11:41:39 2024 -0700 Fix fstab order in `column` manpage example. fstab is: 1. fs_spec 2. fs_file 3. fs_vfstype 4. fs_mntops 5. fs_freq 6. fs_passno In other words it's: SOURCE,TARGET,TYPE,OPTIONS,FREQ,PASS text-utils/column.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 62cf52f81d5baaba2cfe6dfe00aa4975ebd55d92 Author: Mike Yuan Date: Sat May 11 01:11:28 2024 +0800 libmount/utils: add pidfs to pseudo fs list libmount/src/utils.c | 1 + 1 file changed, 1 insertion(+) commit 7b4e937c862ea84e1568b01cd5ec69918920f9a5 Author: Mike Yuan Date: Sat May 11 01:03:51 2024 +0800 mkswap.8.adoc: update note regarding swapfile creation Follow-up for 7377b0d99560460806eab9efa9d8224d084c2082 (the addition of --file option) disk-utils/mkswap.8.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 6b4faed1733665bcbc8b63e245102da68bd92745 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Fri May 10 16:46:15 2024 +0300 fix formatting and add mising break term-utils/scriptreplay.c | 5 +++++ 1 file changed, 5 insertions(+) commit 6f922a34e32f86ea9e5b3dc0cb29dd785ab69e5c Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Fri May 10 16:34:03 2024 +0300 Add missing author AUTHORS | 1 + term-utils/scriptreplay.1.adoc | 3 +++ term-utils/scriptreplay.c | 1 + 3 files changed, 5 insertions(+) commit a0c652a6ffebb471028be5b66f9811623b428de2 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Fri May 10 16:21:18 2024 +0300 Add interactive playback docs term-utils/scriptreplay.1.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) commit c655d42c381f8bc4695f4cf35b7329c54682028f Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Wed May 8 22:42:58 2024 +0300 Add right arrow key to step forward in playback term-utils/scriptreplay.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) commit a3d82ae138f4cd1534220773fcd8c29fa21ef540 Author: Thomas Weißschuh Date: Mon Feb 5 16:06:46 2024 +0100 uuidgen: add support for RFC9562 UUIDs Signed-off-by: Thomas Weißschuh bash-completion/uuidgen | 2 ++ misc-utils/uuidgen.1.adoc | 7 +++++++ misc-utils/uuidgen.c | 20 ++++++++++++++++++-- tests/expected/uuid/uuidgen | 8 ++++++++ tests/ts/uuid/uuidgen | 4 ++++ 5 files changed, 39 insertions(+), 2 deletions(-) commit 389dfbe6b9692ea793ebc3b3f44fc7d33c668dc4 Author: Thomas Weißschuh Date: Mon Feb 12 18:46:27 2024 +0100 uuidparse: add support for RFC9562 UUIDs Signed-off-by: Thomas Weißschuh misc-utils/uuidparse.c | 15 ++++++++++++++- tests/expected/uuid/uuidparse | 5 ++++- tests/ts/uuid/uuidparse | 3 +++ 3 files changed, 21 insertions(+), 2 deletions(-) commit c8d5fbcf64c2a912d22ed9d405e8a0d3e35263af Author: Thomas Weißschuh Date: Mon Feb 12 18:44:41 2024 +0100 libuuid: add support for RFC9562 UUIDs Signed-off-by: Thomas Weißschuh libuuid/src/gen_uuid.c | 39 +++++++++++++++++++++++ libuuid/src/libuuid.sym | 9 ++++++ libuuid/src/uuid.h | 5 +++ libuuid/src/uuid_time.c | 85 +++++++++++++++++++++++++++++++++++++++++-------- 4 files changed, 125 insertions(+), 13 deletions(-) commit 7e582204cd7cac2b55a2f7c0fb06899fcf7ff5df Author: Jordan Williams Date: Tue May 7 09:40:44 2024 -0500 meson: Correctly require the Python.h header for the python dependency The current solution to require the Python.h header works around a bug in Meson that has been fixed for version 1.4.1 of Meson. Refer to https://github.com/mesonbuild/meson/issues/12862. This change uses an explicit check for the Python.h include. This verifies the required header exists. This check is only necessary prior to version 1.4.1 of Meson. Signed-off-by: Jordan Williams libmount/python/meson.build | 5 +++++ 1 file changed, 5 insertions(+) commit cb7ac65dcaf655ea5dedf8820ab6417629241aa4 Author: Jordan Williams Date: Thu May 9 16:46:58 2024 -0500 meson: Only require Python module when building pylibmount Only the python executable is required for tests. Version 1.4.1 of Meson will require the Python.h for find_installation. This will result in the tests requiring Python.h unnecessarily. Use find_program to find the Python program for the tests instead. Signed-off-by: Jordan Williams libmount/python/meson.build | 5 +++++ meson.build | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) commit b66b70d62e50923502aeb3f6420a5f9c20f769d3 Author: Jordan Williams Date: Thu May 9 15:57:12 2024 -0500 meson: Fix build-python option The build-python option is for controlling whether or not pylibmount is built. Unfortunately, commit b6799cc rendered the option unused. This change uses the build-python option again. Signed-off-by: Jordan Williams libmount/python/meson.build | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) commit 6273c12257973cbd3c59a710049ee8a8027bbbb1 Author: Daan De Meyer Date: Thu May 9 12:32:31 2024 +0200 Fix ul_path_read_buffer() The current implementation cuts off the last character of the buffer if there is no trailing newline. lib/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bd77e444ef4d0763eed1ab30a9cefa52c72923ef Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Wed May 8 22:30:04 2024 +0300 Remove uneeded veriable term-utils/scriptreplay.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 2da91bd3dcaa286723fd31e37eae6ae7fddac17e Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Wed May 8 22:28:05 2024 +0300 Add support for adjusting replay speed with arrow keys term-utils/scriptreplay.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) commit 0c359281d8c9a4a82305c0b5952e208de697643b Author: Rasmus Villemoes Date: Wed May 8 15:32:26 2024 +0200 tests: add --fcntl testing to flock All the existing tests are also done with --fcntl in effect, and then we add one more test, namely that a flock(2) lock can be be obtained even while a fcntl(2) lock is held - not that anyone should ever need that, but it does show that the lock types are completely independent. tests/expected/misc/flock | 4 ++++ tests/expected/misc/flock-fcntl | 4 ++++ tests/expected/misc/flock-fcntl-exclusive | 1 + tests/expected/misc/flock-fcntl-fd | 1 + tests/expected/misc/flock-fcntl-no-fork | 1 + tests/expected/misc/flock-fcntl-non-block | 1 + tests/expected/misc/flock-fcntl-shared | 2 ++ tests/expected/misc/flock-fcntl-time-check | 1 + tests/expected/misc/flock-fcntl-timeout | 2 ++ tests/expected/misc/flock-fcntl-vs-flock | 2 ++ tests/ts/misc/flock | 11 ++++++++++- 11 files changed, 29 insertions(+), 1 deletion(-) commit ebc2a8fcf952e0a95198ec8f8e54cce45d9d7f91 Author: Rasmus Villemoes Date: Wed May 8 15:16:10 2024 +0200 tests: prepare flock for testing --fcntl Prepare the test script for doing all the same things, but with --fcntl in effect. The diff is much smaller when viewed with git show -w. tests/expected/misc/flock | 1 + tests/ts/misc/flock | 140 +++++++++++++++++++++++++--------------------- 2 files changed, 76 insertions(+), 65 deletions(-) commit e59520cd66a7fff830290fdfdde32e944d250aee Author: Rasmus Villemoes Date: Wed May 8 14:29:43 2024 +0200 flock: document --fcntl I'm not sure how much technical detail/symbolic constants to include in the explanation. sys-utils/flock.1.adoc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit b43db46912f4e8218ca4e1bafc06f45e157f69ae Author: Rasmus Villemoes Date: Wed May 8 14:18:26 2024 +0200 flock: bash-completion: add --fcntl bash-completion/flock | 1 + 1 file changed, 1 insertion(+) commit 363c659280d22b4423564cf650f8eca704092854 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Wed May 8 00:42:06 2024 +0300 Refactor to handle responsive input term-utils/scriptreplay.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) commit 3727ae82d577d87023741753cdc2e85c6965a72d Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Tue May 7 00:39:12 2024 +0300 Add pause functionality to replay Adds pause to replay_setup. Adds functions to toggle and get pause state. Adds stdin keys read - looks for space for pause toggle. Adds replay pause to replay render loop. term-utils/script-playutils.c | 18 +++++++++++++++++- term-utils/script-playutils.h | 5 +++++ term-utils/scriptreplay.c | 17 +++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) commit 1179bef2f433d2ef790f69c211171d4fd47a052d Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Tue May 7 00:30:27 2024 +0300 Refactor delay_for function signature to use const struct timeval delay_for does not change delay. Hint about that using const. This allows for usage of const delay and improves readability. term-utils/scriptreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 362953810d61d5b987c48ca711a90c801667b113 Author: jNullj <15849761+jNullj@users.noreply.github.com> Date: Tue May 7 00:10:36 2024 +0300 Set stdin to nonblock Provision for retrival of playback interactive controls using fgetwc without blocking. term-utils/scriptreplay.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit 937f05098b997e2c56b95189ef1af630c160161d Author: Jason Stewart Date: Sun May 5 02:49:28 2024 -0400 last/lastb field truncation indicator - indicate truncated fields with an asterisk character - updated man page and unit tests login-utils/last.1.adoc | 2 +- login-utils/last.c | 17 ++++++++++++++++- tests/expected/utmp/last-dns | 2 +- tests/expected/utmp/last-ipv6-dns | 2 +- tests/expected/utmp/last-ipv6-nodns | 2 +- tests/expected/utmp/last-nodns | 36 ++++++++++++++++++------------------ 6 files changed, 38 insertions(+), 23 deletions(-) commit 9bb19b6d009b26211e7d95904c7b6db7c5cae87a Author: Cristian Rodríguez Date: Thu May 2 22:16:02 2024 -0400 Allow printf to be used on signal handlers libc function dprintf is meant to be signal safe for as long you obey the documented constrains. include/c.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) commit 0b5167e41e1547e109df16208d892ca896d97f9c Author: Masatake YAMATO Date: Fri May 3 07:10:04 2024 +0900 lsns: (refactor) use ls_path_{openf|statf} to make the code simple Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) commit 6f962f511dfbdd446b4e93a77792b3413b5539c2 Author: Karel Zak Date: Thu May 2 15:56:29 2024 +0200 lib/path: add ul_path_statf() and ul_path_vstatf() Signed-off-by: Karel Zak (cherry picked from commit 9b47899495e229ace482afca9e14b9b95ef6fde9) include/path.h | 3 +++ lib/path.c | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) commit b2c3700e36c490fd7ec74b532a6dcdf2fc8e66d3 Author: Karel Zak Date: Thu May 2 13:14:17 2024 +0200 hwclock: free temporary variable before return Signed-off-by: Karel Zak sys-utils/hwclock-rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b5e2de00cc6b79a2522342ff99cce6bb87743094 Author: Karel Zak Date: Thu May 2 10:54:04 2024 +0200 agetty: make reload code more robust Signed-off-by: Karel Zak term-utils/agetty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 7756e234ca34dcd489985b28c2e7b126c330342a Author: Karel Zak Date: Thu May 2 10:15:29 2024 +0200 libmount: fix possible memory leak Signed-off-by: Karel Zak libmount/src/context_mount.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 3c92af3a93ca3b308e2017ca04082b81056ce248 Author: Karel Zak Date: Thu May 2 10:07:04 2024 +0200 wall: check sysconf() returnvalue Signed-off-by: Karel Zak term-utils/wall.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit c2296366dc4cb9d1260d7e60f3383ba216f766a3 Author: Karel Zak Date: Tue Apr 30 11:06:49 2024 +0200 getopt: remove free-before-exit Signed-off-by: Karel Zak misc-utils/getopt.c | 1 - 1 file changed, 1 deletion(-) commit a972f4096b7c730acf57db35df01ea3788de986a Author: Karel Zak Date: Tue Apr 30 11:04:32 2024 +0200 fsck.minix: fix possible overrun Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f66afeeed426a7b35b281417a9574f8ef82190f8 Author: Karel Zak Date: Tue Apr 30 11:01:06 2024 +0200 agetty: fix resource leak Signed-off-by: Karel Zak term-utils/agetty.c | 1 + 1 file changed, 1 insertion(+) commit 3b01374845f8bbe29ef945b866f679555b28cd38 Author: Karel Zak Date: Tue Apr 30 10:51:50 2024 +0200 suL fix use after free on error Signed-off-by: Karel Zak login-utils/su-common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 8750c3a04c6872b97c36546a714558c59c47c053 Author: Karel Zak Date: Mon Apr 29 15:33:07 2024 +0200 cal: use unsigned int to follow union with unsigned int Signed-off-by: Karel Zak misc-utils/cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 828f6506b488a67d26ea8b7c50042a505c450b79 Author: Karel Zak Date: Mon Apr 29 15:25:58 2024 +0200 wall: fix possible memory leak Signed-off-by: Karel Zak term-utils/wall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 764879a35f614b68ed4ab03dae9f31195393a257 Author: Karel Zak Date: Mon Apr 29 15:21:20 2024 +0200 hwclock: initialize parser variables Signed-off-by: Karel Zak sys-utils/hwclock-parse-date.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit f13ad008d915de3ffa0dd3f96ead9c1d0ba8ee93 Author: Karel Zak Date: Mon Apr 29 15:17:53 2024 +0200 lsclocks: fix FD leak Signed-off-by: Karel Zak misc-utils/lsclocks.c | 1 + 1 file changed, 1 insertion(+) commit 441b403af36902bebfecc03ede812ff515bf7573 Author: Karel Zak Date: Mon Apr 29 14:59:44 2024 +0200 libfdisk: add initializer to geometry Signed-off-by: Karel Zak libfdisk/src/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1658c0150e4a3d87d1e36b7755de0079e2e6a133 Author: Karel Zak Date: Mon Apr 29 14:55:16 2024 +0200 wall: make sure unsigned variable not underflow Signed-off-by: Karel Zak term-utils/ttymsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ac282b728594630c17dc6ec5d90dbf56397865f0 Author: Masatake YAMATO Date: Thu May 2 03:51:18 2024 +0900 lsns: verify the uniqueness of a namespace in ls->namespaces list In read_open_ns_inos(), a namespace is added to the list without verifying its uniqueness in the list. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 2 ++ 1 file changed, 2 insertions(+) commit 0cc0bcf45726f7c04b7170c82a2f79a35491a804 Author: Masatake YAMATO Date: Thu May 2 04:49:13 2024 +0900 lsns: (refactor) make the function names for reading namespaces consistent Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) commit 1a998ea99bfd49ad25dacf058e36bbf21a4c8e88 Author: Masatake YAMATO Date: Thu May 2 02:21:09 2024 +0900 lsns: (refactor) rename read_related_namespaces to connect_namespaces read_related_namespaces() itself doesn't read names of new namespaces. Connecting namespaces for making a tree is the the main job the function. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ebd1c823120e9b91049e4c3e5f4090dde881454e Author: Masatake YAMATO Date: Wed May 1 12:02:10 2024 +0900 lsns: (refactor) rename get_ns_ino() to get_ns_inos() The function gets three inode numbers. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 5c723737fc0975237b31a88f95276e6f9dc57bc2 Author: Masatake YAMATO Date: Thu May 2 02:00:15 2024 +0900 lsns: (refactor) use get_{parent|owner}_ns_ino() in add_namespace_for_nsfd Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) commit cc8174cf1e6c2077818ee9cdd4d8af5766dfb38d Author: Masatake YAMATO Date: Wed May 1 11:46:05 2024 +0900 lsns: (refactor) add get_{parent|owner}_ns_ino() implementing some parts of get_ns_ino() get_ns_ino() returns three inode numbers. The code for the two of three, inodes for PARENT and USERNS, is moved to the new functions. So we can reuse the code in other places in lsns. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 103 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 72 insertions(+), 31 deletions(-) commit 8a1320f7d3bdcd452155a562949c81308a97a453 Author: Masatake YAMATO Date: Wed May 1 11:18:09 2024 +0900 lsns: (refactor) give a enumeration name 'lsns_type' to LSNS_TYPE_ enumerators Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) commit e3192bfd1dd129c70f5416e1464135d8cd22c956 Merge: f4975bf1b 28c7c29b2 Author: Karel Zak Date: Wed May 1 21:23:03 2024 +0200 Merge branch 'PR/libsmartcols-reduce-fix' of github.com:karelzak/util-linux-work * 'PR/libsmartcols-reduce-fix' of github.com:karelzak/util-linux-work: libsmartcols: fix column reduction commit f4975bf1bb864dfcb976d32fae49bbe48003b732 Merge: 3f0473ae2 63ffa1c6e Author: Karel Zak Date: Wed May 1 21:20:50 2024 +0200 Merge branch 'bcachefs_correct_max_size_constant' of https://github.com/tasleson/util-linux * 'bcachefs_correct_max_size_constant' of https://github.com/tasleson/util-linux: bcachefs: Remove BCACHEFS_SB_MAX_SIZE & check commit 3f0473ae211b3ba98d55129b1d468b7feeb9cfb5 Merge: a974a8522 1c33c715b Author: Karel Zak Date: Wed May 1 21:17:52 2024 +0200 Merge branch 'lsfd/fcntl' of https://github.com/t-8ch/util-linux * 'lsfd/fcntl' of https://github.com/t-8ch/util-linux: lsfd: include buffer.h in decode-file-flags.h buffer: replace include of c.h with stddef.h lsfd: move interface of decode-file-flags to header commit b0f633df4b3762987a7b544b4680db24d15306ad Author: Masatake YAMATO Date: Wed May 1 11:07:31 2024 +0900 lsns: (refactor) rename LSNS_ID_.* to LSNS_TYPE_.* Functions taking LSNS_ID_ as arguments have .*_lsns_type_.* or .*_type_.* as parts of their name. This implies the prefix LSNS_TYPE_ is more consistent than LSNS_ID_. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 60 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) commit 63ffa1c6e616fd391fddabc15314d3a735c62d50 Author: Tony Asleson Date: Mon Apr 29 13:04:12 2024 -0500 bcachefs: Remove BCACHEFS_SB_MAX_SIZE & check This constant had an incorrect value. However, the code already does a max. size check which is correct. Note: bcachefs can theoretically have a superblock of 32MiB, but this is very unlikely to happen. Signed-off-by: Tony Asleson libblkid/src/superblocks/bcache.c | 5 ----- 1 file changed, 5 deletions(-) commit 28c7c29b2d57705fdc4ff486b38937c73b2d9b5d Author: Karel Zak Date: Tue Apr 30 10:26:09 2024 +0200 libsmartcols: fix column reduction 4013986: libsmartcols: TAB: [0x5626b97f8e10]: #5 reduce stage (width=38, term=1) 4013986: libsmartcols: COL: [0x5626b97f9130]: [01] (null) reduced 2-->18446744073709551615 Fixes: https://github.com/util-linux/util-linux/issues/3003 Signed-off-by: Karel Zak libsmartcols/src/calculate.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) commit a974a852278ea5c3a835d4930277025bd4e33675 Author: Colin Walters Date: Mon Apr 29 15:45:56 2024 -0400 losetup.8: Clarify --direct-io See e.g. https://github.com/containers/bootc/pull/375#issuecomment-1981109022 The phrasing here was in my opinion technically correct but quite confusing and easy to misunderstand. Let's be very clear: - The default is *off* - You can turn it on in two ways - You can also explicitly turn it off Signed-off-by: Colin Walters sys-utils/losetup.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 926b6077333554924756ba648c9df38c803c48bc Author: Benno Schulenberg Date: Tue Mar 26 16:48:22 2024 +0100 lastlog2: begin descriptions of options with a lowercase letter These descriptions are not full sentences and do not end with a period, so they should not start with a capital either. (cherry picked from commit 991cb1568a7b3770e33d68c4df49a97068ac8588) misc-utils/lastlog2.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit e67ad1d7c1ed470b4c0dbb4d0b28ae8975883684 Author: Benno Schulenberg Date: Tue Mar 26 16:48:21 2024 +0100 textual: fix some typos and inconsistencies in usage and error messages Reported-by: Petr Pisar Signed-off-by: Benno Schulenberg (cherry picked from commit eeeb3dc9e662c8cf0383fb109bc5e7d2e2fa7a98) login-utils/lslogins.c | 2 +- lsfd-cmd/lsfd.c | 2 +- misc-utils/lastlog2.c | 2 +- misc-utils/lslocks.c | 2 +- misc-utils/waitpid.c | 2 +- sys-utils/irqtop.c | 4 ++-- sys-utils/setpriv.c | 2 +- term-utils/agetty.c | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) commit 7aa04e5052e36d4ed7b689270cd9515e3365219d Merge: 2f4a8fa5c b6e6fb4a3 Author: Karel Zak Date: Mon Apr 29 10:27:17 2024 +0200 Merge branch 'lsfd/fcntl.h' of https://github.com/t-8ch/util-linux * 'lsfd/fcntl.h' of https://github.com/t-8ch/util-linux: lsfd: include linux/fcntl.h commit 2f4a8fa5c43f83418ca923b702a589779cf49819 Merge: 1c04b04a5 a61106ad0 Author: Karel Zak Date: Mon Apr 29 10:26:25 2024 +0200 Merge branch 'lsns--debug-ioctl_ns-test-for-master' of https://github.com/masatake/util-linux * 'lsns--debug-ioctl_ns-test-for-master' of https://github.com/masatake/util-linux: tests: (lsns::ioctl_ns) add more debug print tests: (lsns::ioctl_ns) record stdout/stderr for debugging the case commit 1c04b04a552113149c05388d974e598a7db404de Merge: b46a82a06 8a0dc11a5 Author: Karel Zak Date: Mon Apr 29 10:25:17 2024 +0200 Merge branch 'PR/flock-fcntl' of github.com:karelzak/util-linux-work * 'PR/flock-fcntl' of github.com:karelzak/util-linux-work: flock: add support for using fcntl() with open file description locks commit b46a82a06f11ddc7a57d8bc892b3154e465f60d4 Author: Thijs Raymakers Date: Thu Apr 25 18:22:25 2024 +0200 coresched: Manage core scheduling cookies for tasks Co-authored-by: Phil Auld Signed-off-by: Phil Auld Signed-off-by: Thijs Raymakers Signed-off-by: Karel Zak Reviewed-by: Thomas Weißschuh .gitignore | 1 + bash-completion/coresched | 0 configure.ac | 12 +- meson.build | 16 +- meson_options.txt | 2 +- schedutils/Makemodule.am | 8 + schedutils/coresched.1.adoc | 139 ++++++++ schedutils/coresched.c | 363 +++++++++++++++++++++ tests/commands.sh | 1 + .../schedutils/coresched-copy-from-child-to-parent | 1 + .../coresched-copy-from-parent-to-nested-child | 1 + .../schedutils/coresched-get-cookie-own-pid | 1 + .../schedutils/coresched-get-cookie-parent-pid | 1 + .../schedutils/coresched-new-child-with-new-cookie | 1 + .../schedutils/coresched-set-cookie-parent-pid.err | 1 + tests/expected/schedutils/set-cookie-parent-pid | 1 + tests/ts/schedutils/coresched | 83 +++++ 17 files changed, 626 insertions(+), 6 deletions(-) commit b6e6fb4a3e8a2025d67eb4ea4c82711a530184f8 Author: Thomas Weißschuh Date: Sun Apr 28 23:35:12 2024 +0200 lsfd: include linux/fcntl.h asm/-headers are implementation details and not meant to be included directly. Instead use the linux/ header which will always include the correct asm/-headers. Signed-off-by: Thomas Weißschuh configure.ac | 2 -- lsfd-cmd/decode-file-flags.c | 16 +++++----------- meson.build | 2 -- 3 files changed, 5 insertions(+), 15 deletions(-) commit 1c33c715b926f82908ae75f19c35baf42da9e05b Author: Thomas Weißschuh Date: Sun Apr 28 23:23:47 2024 +0200 lsfd: include buffer.h in decode-file-flags.h buffer.h does not pull in the full c.h with it side-effects, so it can be used now. Drop the now unnecessary extern declarations. Signed-off-by: Thomas Weißschuh lsfd-cmd/decode-file-flags.c | 8 -------- lsfd-cmd/decode-file-flags.h | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) commit a23577c64708e43dd5e35ea7256f1f366f00a38e Author: Thomas Weißschuh Date: Sun Apr 28 23:18:48 2024 +0200 buffer: replace include of c.h with stddef.h The interface of the buffer library only requires size_t. It's enough to include stddef.h for that. Signed-off-by: Thomas Weißschuh include/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ea0c351409b26d1b288442b8cc206bd908e64faf Author: Thomas Weißschuh Date: Sun Apr 28 23:22:13 2024 +0200 lsfd: move interface of decode-file-flags to header Use a proper header file to declare lsfd_decode_file_flags(). Signed-off-by: Thomas Weißschuh lsfd-cmd/Makemodule.am | 1 + lsfd-cmd/decode-file-flags.c | 3 +-- lsfd-cmd/decode-file-flags.h | 8 ++++++++ lsfd-cmd/file.c | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) commit 8a0dc11a5b204c7d43adae9f42abcebe41c5b66e Author: Rasmus Villemoes Date: Thu Apr 25 11:44:17 2024 +0200 flock: add support for using fcntl() with open file description locks Currently, there is no way for shell scripts to safely access resources protected by POSIX locking (fcntl with the F_SETLK/F_SETLKW commands). For example, the glibc function lckpwdf(), used to protect access to the /etc/shadow database, works by taking a F_SETLKW on /etc/.pwd.lock . Due to the odd semantics of POSIX locking (e.g. released when any file descriptor associated to the inode is closed), we cannot usefully directly expose the POSIX F_SETLK/F_SETLKW commands. However, linux 3.15 introduced F_OFD_SETLK[W], with semantics wrt. ownership and release better matching those of flock(2), and crucially they do conflict with locks obtained via F_SETLK[W]. With this, a shell script can do exec 4> /etc/.pwd.lock flock --fcntl 4 flock --fcntl --unlock 4 # or just exit without conflicting with passwd(1) or other utilities that access/modify /etc/shadow. No single-letter shorthand is defined for the option, because this is somewhat low-level and the user really needs to know what he is doing. Also, this leaves the door open for teaching --fcntl to accept an optional argument: "ofd", the default, and "posix", should anyone find a use for flock(1) taking a F_SETLK[W] lock. Signed-off-by: Rasmus Villemoes sys-utils/flock.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 2 deletions(-) commit a61106ad0b29a558d264920a5b56fcb93beab4ae Author: Masatake YAMATO Date: Wed Apr 17 07:49:40 2024 +0900 tests: (lsns::ioctl_ns) add more debug print Signed-off-by: Masatake YAMATO (cherry picked from commit 380120a07154d9447edc703d628416c717493b7d) tests/ts/lsns/ioctl_ns | 4 ++++ 1 file changed, 4 insertions(+) commit 8a66cae8e596f5401da20e98715a21d7a7b8f1ed Author: Masatake YAMATO Date: Wed Apr 17 05:57:45 2024 +0900 tests: (lsns::ioctl_ns) record stdout/stderr for debugging the case When the test case runs successfully, we expect the case test prints nothing to stderr. If something is printed to stderr, it helps us debug lsns command and the test case. Signed-off-by: Masatake YAMATO (cherry picked from commit 82ecf6cf5495f43716fbe9d72411d8bd5994f75d) tests/expected/lsns/ioctl_ns.err | 0 tests/ts/lsns/ioctl_ns | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) commit 93128b74c439e9faba7c7a3912cb4312bcc087d1 Merge: f4cb44bd1 5873f36e0 Author: Karel Zak Date: Thu Apr 25 11:22:32 2024 +0200 Merge branch 'meson-more-build-options' of https://github.com/jwillikers/util-linux * 'meson-more-build-options' of https://github.com/jwillikers/util-linux: (21 commits) meson: Add build-lsclocks option meson: Add build-enosys option meson: Define _DARWIN_C_SOURCE on macOS as is done in Autotools strutils.h: Include strings.h header for strncasecmp function xalloc.h: Include stdio.h header for vasprintf function meson: Fix build by default and install behavior for build-pipesz option meson: Add build-fadvise option meson: Add build-scriptlive option meson: Add build-script option meson: Require pty for the su and runuser executables meson: Add have_pty variable to check if pty is available meson: Add build-blockdev option meson: Add build-chcpu option meson: Use has_type instead of sizeof to detect cpu_set_t type meson: Add build-setarch option meson: Add build-rtcwake option meson: Add build-ldattach option meson: Add build-blkdiscard option meson: Add build-fsfreeze option meson: Add build-blkzone option ... commit 5873f36e0ebf40121cbe33e7c632193433b8d085 Author: Jordan Williams Date: Tue Apr 23 07:45:24 2024 -0500 meson: Add build-lsclocks option Signed-off-by: Jordan Williams meson.build | 10 +++++++--- meson_options.txt | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) commit 0f2dd62ed106af8291e91364e992bc9eb65cab55 Author: Jordan Williams Date: Tue Apr 23 07:43:00 2024 -0500 meson: Add build-enosys option Add a check to ensure that the linux/audit.h header exists for enosys. Signed-off-by: Jordan Williams meson.build | 29 ++++++++++++++++------------- meson_options.txt | 2 ++ 2 files changed, 18 insertions(+), 13 deletions(-) commit df277231cf9f4dcb98dd16dc77ff5c9d4d0b1452 Author: Jordan Williams Date: Mon Apr 22 15:03:50 2024 -0500 meson: Define _DARWIN_C_SOURCE on macOS as is done in Autotools Signed-off-by: Jordan Williams meson.build | 4 ++++ 1 file changed, 4 insertions(+) commit 42a7b48fd1f3643e962c75a6003a305851064763 Author: Jordan Williams Date: Mon Apr 22 14:51:40 2024 -0500 strutils.h: Include strings.h header for strncasecmp function Signed-off-by: Jordan Williams include/strutils.h | 1 + 1 file changed, 1 insertion(+) commit d4d9744c62bfb4d179473e6adcd304318b4d952f Author: Jordan Williams Date: Mon Apr 22 14:51:09 2024 -0500 xalloc.h: Include stdio.h header for vasprintf function Signed-off-by: Jordan Williams include/xalloc.h | 1 + 1 file changed, 1 insertion(+) commit 5cf8a7ac3a8038212c369bf5d05c74516b328a3a Author: Jordan Williams Date: Mon Apr 22 14:35:50 2024 -0500 meson: Fix build by default and install behavior for build-pipesz option Signed-off-by: Jordan Williams meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 3ba934c9c411795cca50e55cb3fc1309c3469827 Author: Jordan Williams Date: Mon Apr 22 14:33:49 2024 -0500 meson: Add build-fadvise option Signed-off-by: Jordan Williams meson.build | 8 ++++++-- meson_options.txt | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) commit 8f6efe8cb65498e9586a7217aac77f25068f770b Author: Jordan Williams Date: Mon Apr 22 11:08:26 2024 -0500 meson: Add build-scriptlive option Signed-off-by: Jordan Williams meson.build | 12 ++++++++---- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) commit 236918fcc6d886270e8585cbc594ac71c24b1951 Author: Jordan Williams Date: Mon Apr 22 11:06:48 2024 -0500 meson: Add build-script option Signed-off-by: Jordan Williams meson.build | 18 ++++++++++++------ meson_options.txt | 2 ++ 2 files changed, 14 insertions(+), 6 deletions(-) commit 8c917cf8a054058b261c7b02699b017443dbb501 Author: Jordan Williams Date: Mon Apr 22 11:04:36 2024 -0500 meson: Require pty for the su and runuser executables Signed-off-by: Jordan Williams meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f71723ef67d4d1ab5762492c4a162498c53e51eb Author: Jordan Williams Date: Mon Apr 22 11:02:39 2024 -0500 meson: Add have_pty variable to check if pty is available Signed-off-by: Jordan Williams meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 3e6d539e6e283927639c02792c968848f6c7dc71 Author: Jordan Williams Date: Mon Apr 22 09:42:25 2024 -0500 meson: Add build-blockdev option Only build blockdev on Linux. The BLKROSET macro is used in blockdev.c from blkdev.h. The blkdev.h header only defines this macro when it is missing on Linux. Add blockdev to the list of executables, which appears to have been omitted previously. Signed-off-by: Jordan Williams meson.build | 11 ++++++++--- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) commit a2c940f44b2a54deedfc21cc7fd91625dcbacf1a Author: Jordan Williams Date: Mon Apr 22 09:14:26 2024 -0500 meson: Add build-chcpu option The cpu_set_t type does not exist on macOS. Signed-off-by: Jordan Williams meson.build | 12 ++++++++---- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) commit fa3bce7e0025fb921a8d05ac26288e687cd1bec5 Author: Jordan Williams Date: Mon Apr 22 09:28:04 2024 -0500 meson: Use has_type instead of sizeof to detect cpu_set_t type Signed-off-by: Jordan Williams meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 17146fbf1bb4c93db53bd741f1484327c729631d Author: Jordan Williams Date: Tue Apr 23 08:39:12 2024 -0500 meson: Add build-setarch option The sys/personality.h header does not exist on macOS. Signed-off-by: Jordan Williams meson.build | 52 +++++++++++++++++++++++++++++----------------------- meson_options.txt | 2 ++ 2 files changed, 31 insertions(+), 23 deletions(-) commit fa907a8810d9a0e7049a01828e2dd0d53567cf0a Author: Jordan Williams Date: Mon Apr 22 09:03:52 2024 -0500 meson: Add build-rtcwake option Signed-off-by: Jordan Williams meson.build | 12 ++++++++---- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) commit 75637b8813f593225fa69b4f963c9bfd16daefc9 Author: Jordan Williams Date: Mon Apr 22 08:57:40 2024 -0500 meson: Add build-ldattach option Signed-off-by: Jordan Williams meson.build | 12 ++++++++---- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) commit 9c4ef6f71169c48cee60523d851ff0b453a1d52f Author: Jordan Williams Date: Wed Apr 24 15:30:26 2024 -0500 meson: Add build-blkdiscard option Signed-off-by: Jordan Williams meson.build | 18 ++++++++++++------ meson_options.txt | 2 ++ 2 files changed, 14 insertions(+), 6 deletions(-) commit 6549a90cb9d3f6c0a4a3fc7e87536b5e4690517a Author: Jordan Williams Date: Wed Apr 24 15:29:08 2024 -0500 meson: Add build-fsfreeze option Signed-off-by: Jordan Williams meson.build | 12 ++++++++---- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) commit f4cb44bd1140ff3e778491671f4bd17e73cb78ee Author: Karel Zak Date: Wed Apr 24 12:05:25 2024 +0200 docs: fix GPL name typo References: https://github.com/util-linux/util-linux/pull/2988 Signed-off-by: Karel Zak disk-utils/fsck.8.adoc | 2 +- disk-utils/swaplabel.8.adoc | 2 +- disk-utils/swaplabel.c | 2 +- include/pager.h | 2 +- libsmartcols/scols-filter.5.adoc | 2 +- misc-utils/blkid.8.adoc | 2 +- misc-utils/fincore.1.adoc | 2 +- misc-utils/findfs.8.adoc | 2 +- misc-utils/lastlog2.8.adoc | 2 +- misc-utils/uuidd.8.adoc | 2 +- misc-utils/uuidgen.1.adoc | 2 +- misc-utils/wipefs.8.adoc | 2 +- po-man/cs.po | 20 ++++++++++---------- po-man/de.po | 20 ++++++++++---------- po-man/es.po | 20 ++++++++++---------- po-man/fr.po | 20 ++++++++++---------- po-man/ko.po | 20 ++++++++++---------- po-man/pt_BR.po | 20 ++++++++++---------- po-man/ro.po | 20 ++++++++++---------- po-man/sr.po | 20 ++++++++++---------- po-man/uk.po | 20 ++++++++++---------- po-man/util-linux-man.pot | 20 ++++++++++---------- sys-utils/eject.1.adoc | 2 +- 23 files changed, 113 insertions(+), 113 deletions(-) commit 21b4f53a1433c29a5f3d3e975f8d1bf62b011aed Merge: 18d10c16a 94221a076 Author: Karel Zak Date: Wed Apr 24 12:01:57 2024 +0200 Merge branch 'lsfd' of https://github.com/jwilk-forks/util-linux * 'lsfd' of https://github.com/jwilk-forks/util-linux: lsfd: (man) add commas between SEE ALSO items lsfd: (man) fix license name lsfd: (man) fix typos commit 18d10c16abaf1cf2934625624591f31318923050 Merge: 896a678f3 a20e7e23a Author: Karel Zak Date: Wed Apr 24 12:01:40 2024 +0200 Merge branch 'PR/libmount-fix-umount-r' of github.com:karelzak/util-linux-work * 'PR/libmount-fix-umount-r' of github.com:karelzak/util-linux-work: libmount: fix umount --read-only commit 896a678f34ec49b5c10739e88256a74891fef223 Merge: ec691b310 42880f548 Author: Karel Zak Date: Tue Apr 23 11:06:05 2024 +0200 Merge branch 'PR/lsns-fix-netns' of github.com:karelzak/util-linux-work * 'PR/lsns-fix-netns' of github.com:karelzak/util-linux-work: lsns: fix netns use commit ec691b31026e5ce82b9802697092f554cafb13b2 Merge: 60546acc8 97f7bfc0f Author: Karel Zak Date: Tue Apr 23 11:05:42 2024 +0200 Merge branch 'PR/libmount-utab-access' of github.com:karelzak/util-linux-work * 'PR/libmount-utab-access' of github.com:karelzak/util-linux-work: libmount: Fix access check for utab in context commit a20e7e23a8565e01b1c84de6924d1fbbdb1cfccc Author: Karel Zak Date: Tue Apr 23 10:29:37 2024 +0200 libmount: fix umount --read-only Reported-by: Krzysztof Olędzki Signed-off-by: Karel Zak libmount/src/context_umount.c | 4 ++++ 1 file changed, 4 insertions(+) commit 94221a076e7566a1e70a8a53652e984aba761bf4 Author: Jakub Wilk Date: Mon Apr 22 15:54:01 2024 +0200 lsfd: (man) add commas between SEE ALSO items Signed-off-by: Jakub Wilk lsfd-cmd/lsfd.1.adoc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit d2dc150fe502a5bd8fa6f1a4a7c4c08bacfe4ca8 Author: Jakub Wilk Date: Mon Apr 22 15:52:04 2024 +0200 lsfd: (man) fix license name Signed-off-by: Jakub Wilk lsfd-cmd/lsfd.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 81f1ce7f37ece9cfcc066e63fef642a31542a815 Author: Jakub Wilk Date: Mon Apr 22 15:51:47 2024 +0200 lsfd: (man) fix typos Signed-off-by: Jakub Wilk lsfd-cmd/lsfd.1.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ca42082d60de44534836571e109e14f3a47fcb61 Author: Jordan Williams Date: Mon Apr 22 08:48:27 2024 -0500 meson: Add build-blkzone option Signed-off-by: Jordan Williams meson.build | 18 ++++++++++-------- meson_options.txt | 2 ++ 2 files changed, 12 insertions(+), 8 deletions(-) commit cd8fd8a1e23b39f6cb069a4829cf2ecc497c8e1c Author: Jordan Williams Date: Mon Apr 22 08:46:55 2024 -0500 meson: Add build-blkpr option Signed-off-by: Jordan Williams meson.build | 18 ++++++++++-------- meson_options.txt | 2 ++ 2 files changed, 12 insertions(+), 8 deletions(-) commit 42880f54894c1d7fd113552ff8474566a2595a0d Author: Karel Zak Date: Mon Apr 22 14:28:52 2024 +0200 lsns: fix netns use # ip netns add vpn # lsns -T -t net Segmentation fault (core dumped) The function interpolate_missing_namespaces() reads data from /proc. However, in the case of a persistent namespace, there is no procfs entry for the namespace. Therefore, this function should ignore it. Fixes: https://github.com/util-linux/util-linux/issues/2982 Signed-off-by: Karel Zak sys-utils/lsns.c | 3 +++ 1 file changed, 3 insertions(+) commit 60546acc885243c94a7aa95e00e9105fa88a8fe6 Author: Karel Zak Date: Mon Apr 22 13:55:23 2024 +0200 libfdisk: add missing va_end() [coverity scan] Signed-off-by: Karel Zak libfdisk/src/ask.c | 2 ++ 1 file changed, 2 insertions(+) commit 97f7bfc0fdf74b6a6e220ba9d2f620386e660b29 Author: Karel Zak Date: Mon Apr 22 13:09:04 2024 +0200 libmount: Fix access check for utab in context The function mnt_has_regular_utab() properly detects that the utab is not writable, but this is ignored by the high-level context API. As a result, the library later attempts to update the file and ends up with a warning in mount(8): $ mkdir sys $ unshare --map-root-user --mount $ mount --rbind /sys sys $ umount --lazy sys; echo $? umount: /home/user/sys: filesystem was unmounted, but failed to update userspace mount table. 16 In this case, the utab should be ignored. Fixes: https://github.com/util-linux/util-linux/issues/2981 Signed-off-by: Karel Zak libmount/src/context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 89728ce65d5f549179a7eb4284bdfd4c7ad7dfe8 Merge: b767e8112 c630dbc38 Author: Karel Zak Date: Mon Apr 22 12:05:58 2024 +0200 Merge branch 'typofix' of https://github.com/uudiin/util-linux * 'typofix' of https://github.com/uudiin/util-linux: libmount: fix comment typo for mnt_fs_get_comment() commit b767e81123885d8ced90d7d5e5ac92cebe6607ba Merge: 6c274b0a1 af354e921 Author: Karel Zak Date: Mon Apr 22 12:05:20 2024 +0200 Merge branch 'fix' of https://github.com/DaanDeMeyer/util-linux * 'fix' of https://github.com/DaanDeMeyer/util-linux: agetty: Don't override TERM passed by the user commit 6c274b0a1409c6f32d722911bb09e80a598b223b Merge: 8dffefad2 2285fe65c Author: Karel Zak Date: Mon Apr 22 12:05:05 2024 +0200 Merge branch 'lsns--filter-option-in-usage' of https://github.com/masatake/util-linux * 'lsns--filter-option-in-usage' of https://github.com/masatake/util-linux: lsns: add --filter option to the --help optout and the completion rule commit 8dffefad2b95a8bfa2db426d485d122840429f95 Merge: 0800bdc76 73f3e2ad6 Author: Karel Zak Date: Mon Apr 22 12:04:25 2024 +0200 Merge branch 'meson-build-dmesg' of https://github.com/jwillikers/util-linux * 'meson-build-dmesg' of https://github.com/jwillikers/util-linux: meson: Add build-dmesg option commit 0800bdc7626f6e46fa44614c185ff96b193e89bd Merge: af4c7dac1 b51eee742 Author: Karel Zak Date: Mon Apr 22 12:03:51 2024 +0200 Merge branch 'meson-fix-absolute-check' of https://github.com/jwillikers/util-linux * 'meson-fix-absolute-check' of https://github.com/jwillikers/util-linux: meson: Use is_absolute to determine if the prefix directory is absolute commit af4c7dac191abadc33aae75916583c890cd2ebc3 Author: Karel Zak Date: Mon Apr 22 11:51:56 2024 +0200 lsblk: simplify SOURCES code This complicated implementation originated from an early version of zero-separated items for libsmartcols. It is no longer necessary. References: https://github.com/util-linux/util-linux/pull/2983 Signed-off-by: Karel Zak libsmartcols/src/column.c | 2 +- misc-utils/lsblk.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) commit c630dbc38f7cd1f838e65e2c43d8375bce1ec20f Author: Tianjia Zhang Date: Mon Apr 22 14:01:25 2024 +0800 libmount: fix comment typo for mnt_fs_get_comment() Signed-off-by: Tianjia Zhang libmount/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6594679e9af805075c282da35b1b2a8d767e403b Author: Thomas Weißschuh Date: Sun Apr 21 20:00:31 2024 +0200 findmnt: always zero-terminate SOURCES data libsmartcols expects it's data fields to be zero terminated. See the call to strlen() in scols_column_greatest_wrap(). ul_buffer however does not guarantee that termination, ul_buffer_append_strings() discard the zero-termination. Always zero-terminate in get_data_col_sources() and drop the now unnecessary variable "i". Closes: https://github.com/util-linux/util-linux/issues/2980 Signed-off-by: Thomas Weißschuh misc-utils/findmnt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit af354e92111769d57e43eb4f1825c0d99c894ddb Author: Daan De Meyer Date: Fri Apr 19 20:07:47 2024 +0200 agetty: Don't override TERM passed by the user Before 4869b259d68f65ea88df625ce8df9c0177d55a01, any TERM passed on the agetty command line would be used instead of the default TERM. After 4869b259d68f65ea88df625ce8df9c0177d55a01, the default TERM is used unconditionally. Fix the regression by checking if the user passed a custom TERM. Fixes: 4869b259d68f65ea88df625ce8df9c0177d55a01 term-utils/agetty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 2285fe65c394cc6feaaea2733c68249a12f82744 Author: Masatake YAMATO Date: Sat Apr 20 02:17:05 2024 +0900 lsns: add --filter option to the --help optout and the completion rule Signed-off-by: Masatake YAMATO bash-completion/lsns | 1 + sys-utils/lsns.c | 1 + 2 files changed, 2 insertions(+) commit 73f3e2ad6e00c93e9a0c7ed8bdb4eb63ac5ebdad Author: Jordan Williams Date: Wed Apr 17 11:13:59 2024 -0500 meson: Add build-dmesg option Require the sys/klog.h header to exist in order to enable the feature. Signed-off-by: Jordan Williams meson.build | 8 +++++--- meson_options.txt | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) commit b51eee742782148cbb9b312fda3b7814da937cc2 Author: Jordan Williams Date: Wed Apr 17 10:08:40 2024 -0500 meson: Use is_absolute to determine if the prefix directory is absolute Meson's check for an absolute path does not work on Windows. Meson 0.54.0 introduced the fs.is_absolute function. Use this instead. Signed-off-by: Jordan Williams meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a6d12b403eec9f3fddc0fa82325dac04826c4b48 Author: Karel Zak Date: Thu Apr 18 13:15:17 2024 +0200 docs: update README Signed-off-by: Karel Zak README | 78 +++++++++++++++++++++++++++++++----------------------------------- 1 file changed, 36 insertions(+), 42 deletions(-) commit a8491d9eae3dc1b5378ecd178d22c995d708ca57 Merge: 493f50e95 023950b1b Author: Karel Zak Date: Thu Apr 18 09:42:25 2024 +0200 Merge branch 'meson-fix-build-ipcrm-option' of https://github.com/jwillikers/util-linux * 'meson-fix-build-ipcrm-option' of https://github.com/jwillikers/util-linux: meson: Require the seminfo type for ipcmk, ipcrm, and ipcs meson: Add build-ipcmk option meson: Add missing check for build-ipcrm option commit 493f50e95508ee67d8e316e96b26fd86e5866303 Merge: f9c1fa293 82af9ab04 Author: Karel Zak Date: Thu Apr 18 09:08:37 2024 +0200 Merge branch 'PR/from-coverity' of github.com:karelzak/util-linux-work * 'PR/from-coverity' of github.com:karelzak/util-linux-work: lslocks: remove deadcode [coverity scan] hardlink: use xcalloc rather than xmalloc commit f9c1fa2935817da26bfe7ba7efd9e389ddda0e05 Merge: 532865fce 72e7b345e Author: Karel Zak Date: Thu Apr 18 09:08:21 2024 +0200 Merge branch 'uuid/variant' of https://github.com/t-8ch/util-linux * 'uuid/variant' of https://github.com/t-8ch/util-linux: uuidparse: only report type/version for DCE variant commit 532865fce9c521aea09e43b948a42985fbb3249a Merge: f5d3a3e4b 402039303 Author: Karel Zak Date: Thu Apr 18 09:08:05 2024 +0200 Merge branch 'PR/fdisk-trim' of github.com:karelzak/util-linux-work * 'PR/fdisk-trim' of github.com:karelzak/util-linux-work: blkdiscard: (man) add note about fdisk fdisk: add 'T' command to discard sectors libfdisk: add fdisk_ask_menu() fdisk: improve list_freespace() commit 023950b1b623e6c3598d244a5569eeb0d5141237 Author: Jordan Williams Date: Wed Apr 17 11:56:09 2024 -0500 meson: Require the seminfo type for ipcmk, ipcrm, and ipcs Signed-off-by: Jordan Williams meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 0b91fd9f45bbdb0ed792f2535b8b95b965e8a176 Author: Jordan Williams Date: Wed Apr 17 11:37:04 2024 -0500 meson: Add build-ipcmk option Signed-off-by: Jordan Williams meson.build | 12 ++++++++---- meson_options.txt | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) commit 25c9b3b4d849f6211ccb668932f0f8823286cd7d Author: Jordan Williams Date: Wed Apr 17 11:11:21 2024 -0500 meson: Add missing check for build-ipcrm option The build-ipcrm option exists in meson_options.txt but has no effect. Use the option to gate building the ipcrm executable. Signed-off-by: Jordan Williams meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit f5d3a3e4b138896ed97690680735c5e44559ee00 Merge: 0dca768e5 7e8bf34a2 Author: Karel Zak Date: Wed Apr 17 13:08:34 2024 +0200 Merge branch 'sed' of https://github.com/t-8ch/util-linux * 'sed' of https://github.com/t-8ch/util-linux: all_errnos/all_syscalls: use sed to extract defines from headers commit 82af9ab04fd31eef71f207d344fbf893a6ef4765 Author: Karel Zak Date: Wed Apr 17 12:46:50 2024 +0200 lslocks: remove deadcode [coverity scan] Signed-off-by: Karel Zak misc-utils/lslocks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit f94aa460eafdfc096afe0dd4a490094006d6b238 Author: Karel Zak Date: Wed Apr 17 12:43:30 2024 +0200 hardlink: use xcalloc rather than xmalloc Signed-off-by: Karel Zak misc-utils/hardlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0dca768e5788b527fc8b0e0cdabcab7c499a9bd6 Merge: d98b2e161 515ae2020 Author: Karel Zak Date: Wed Apr 17 09:50:52 2024 +0200 Merge branch 'PR/libsmartcols-fix-wrap' of github.com:karelzak/util-linux-work * 'PR/libsmartcols-fix-wrap' of github.com:karelzak/util-linux-work: libsmartcols: (sample) add wrap repeating example libsmartcols: reset wrap after calculation commit 402039303605045642607984bfc5121a759306b4 Author: Karel Zak Date: Fri Apr 12 11:30:15 2024 +0200 blkdiscard: (man) add note about fdisk Signed-off-by: Karel Zak sys-utils/blkdiscard.8.adoc | 2 ++ 1 file changed, 2 insertions(+) commit a4c0dce86bcdb3a785667ea1f96ed4127fa0d545 Author: Karel Zak Date: Tue Apr 16 13:36:32 2024 +0200 fdisk: add 'T' command to discard sectors We currently have blkdiscard(8), but it can be difficult to use for unpartitioned areas or for partitions when working with a whole-disk device. This commit adds BLKDISCARD support to fdisk, so that the user does not have to specify any range, but instead follows the partition table. Addresses: https://github.com/util-linux/util-linux/issues/2804 Signed-off-by: Karel Zak disk-utils/fdisk-menu.c | 5 ++ disk-utils/fdisk.c | 142 +++++++++++++++++++++++++++++++++++++++++++++++- disk-utils/fdisk.h | 2 + 3 files changed, 147 insertions(+), 2 deletions(-) commit 7817415a5538354dfa24532f3420bfd3e74df795 Author: Karel Zak Date: Tue Apr 16 13:31:55 2024 +0200 libfdisk: add fdisk_ask_menu() Currently, only libfdisk has the ability to prompt the user with a menu. However, this functionality is not accessible through the public library API. This commit exports this functionality through the use of a simple function, fdisk_ask_menu(). Signed-off-by: Karel Zak libfdisk/docs/libfdisk-sections.txt | 1 + libfdisk/src/ask.c | 46 +++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h.in | 3 +++ libfdisk/src/libfdisk.sym | 4 ++++ 4 files changed, 54 insertions(+) commit 72e7b345e216bb1b4ca7294813fa4b5054358242 Author: Thomas Weißschuh Date: Wed Apr 17 09:27:08 2024 +0200 uuidparse: only report type/version for DCE variant The type/version is only defined in scope for the DCE variant. From RFC4122 Section 4.1.1: "the interpretation of all other bits in the UUID depends on the setting of the bits in the variant field." Signed-off-by: Thomas Weißschuh misc-utils/uuidparse.c | 2 ++ tests/expected/uuid/uuidparse | 42 +++++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 21 deletions(-) commit 9bdcf863bedec6d401d0ecd165a8c6c5e237084a Author: Karel Zak Date: Fri Apr 12 11:13:39 2024 +0200 fdisk: improve list_freespace() Make the function usable in other dialogs: * Return a table of the free spaces. * Return the "best" table entry (to be used as the default in dialogs). * Print the order number of entries. Signed-off-by: Karel Zak disk-utils/fdisk-list.c | 130 ++++++++++++++++++++++++++++++++++++------------ disk-utils/fdisk-list.h | 4 ++ 2 files changed, 102 insertions(+), 32 deletions(-) commit d98b2e161f8b6b59d645631297f81427d85288ac Author: Masatake YAMATO Date: Wed Apr 17 05:32:12 2024 +0900 lsfd: add meson.build for the command Signed-off-by: Masatake YAMATO lsfd-cmd/meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit 7e8bf34a2a54b639d95c51a4a0368b0c9578d612 Author: Thomas Weißschuh Date: Tue Apr 16 21:56:22 2024 +0200 all_errnos/all_syscalls: use sed to extract defines from headers Posix-compliant awk does not seem capable of matching lines and extracting capture groups of them. Use sed instead. Reported-by: John Paul Adrian Glaubitz Link: https://lore.kernel.org/util-linux/051624b9256db27a731d62c031cb627d9f5a256e.camel@physik.fu-berlin.de/ Signed-off-by: Thomas Weißschuh configure.ac | 2 +- meson.build | 6 +++--- misc-utils/Makemodule.am | 4 ++-- tools/all_errnos | 4 ++-- tools/all_syscalls | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) commit 3f95c0d61c6c7f8029fb94e5e6601ae6fff777c3 Author: Karel Zak Date: Tue Apr 16 11:53:45 2024 +0200 lsfd: (po-man) update po4a.cfg Signed-off-by: Karel Zak po-man/po4a.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 462b9ef40bf9e83b5a38d85faf764c2987fffd15 Merge: b51014a85 ac8be186d Author: Karel Zak Date: Tue Apr 16 11:36:34 2024 +0200 Merge branch 'lsfd-cmd--dir' of https://github.com/masatake/util-linux * 'lsfd-cmd--dir' of https://github.com/masatake/util-linux: lsfd: move the source code to new ./lsfd-cmd directory commit b51014a854134ef026de6049a331fa2cf9453015 Merge: 3efa6038c 12707a494 Author: Karel Zak Date: Tue Apr 16 11:28:53 2024 +0200 Merge branch 'getwc' of https://github.com/t-8ch/util-linux * 'getwc' of https://github.com/t-8ch/util-linux: textutils: introduce and use fgetwc_or_err treewide: use fgetc() instead of getc() textutils: use fgetwc() instead of getwc() commit 3efa6038c39a35440943beea068f56440953cc90 Merge: 0501e39ad 543f991f6 Author: Karel Zak Date: Tue Apr 16 11:21:56 2024 +0200 Merge branch 'awk' of https://github.com/t-8ch/util-linux * 'awk' of https://github.com/t-8ch/util-linux: all_errnos/all_syscalls: don't hardcode AWK invocation all_errnos/all_syscalls: don't warn during cleanup all_errnos/all_syscalls: fail if any step fails commit 0501e39ad4168a2e2072b0eeb00a9b065ed99b24 Merge: 1c1073e0d 40c2181d2 Author: Karel Zak Date: Tue Apr 16 11:19:03 2024 +0200 Merge branch 'patch-1' of https://github.com/I-use-Arch-btw-00111/util-linux * 'patch-1' of https://github.com/I-use-Arch-btw-00111/util-linux: (minor) update sulogin.c commit 515ae202051ab506c890118fd41df83555cd140f Author: Karel Zak Date: Tue Apr 16 10:57:37 2024 +0200 libsmartcols: (sample) add wrap repeating example Signed-off-by: Karel Zak libsmartcols/samples/Makemodule.am | 5 +++++ libsmartcols/samples/wrap-repeat.c | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) commit 62f64717ec134b10c5a670403c2d8c43b608e671 Author: Karel Zak Date: Tue Apr 16 10:49:31 2024 +0200 libsmartcols: reset wrap after calculation Fixes: https://github.com/util-linux/util-linux/issues/2956 Signed-off-by: Karel Zak libsmartcols/src/calculate.c | 7 +++++-- libsmartcols/src/print.c | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 9 deletions(-) commit 543f991f62659b9a3ff67f9cda3456b2a5bb3f98 Author: Thomas Weißschuh Date: Tue Apr 16 09:26:22 2024 +0200 all_errnos/all_syscalls: don't hardcode AWK invocation Use the buildsystem to find a usable awk implementation and use that. Reported-by: Firas Khalil Khana Link: https://github.com/util-linux/util-linux/pull/2949 Reported-by: John Paul Adrian Glaubitz https://lore.kernel.org/util-linux/31ccace2e5912ffc428e065cd66764088c625c4d.camel@physik.fu-berlin.de/ Signed-off-by: Thomas Weißschuh configure.ac | 1 + meson.build | 7 +++++-- misc-utils/Makemodule.am | 4 ++-- tools/all_errnos | 4 +++- tools/all_syscalls | 4 +++- 5 files changed, 14 insertions(+), 6 deletions(-) commit 4d5441ec53337edae2b9f7deef0e21d700c06b4d Author: Thomas Weißschuh Date: Tue Apr 16 09:14:28 2024 +0200 all_errnos/all_syscalls: don't warn during cleanup On failure the output files may not have been created. Signed-off-by: Thomas Weißschuh tools/all_errnos | 2 +- tools/all_syscalls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 7522d8df797c9ed813b9f75050e25becdcb4a25b Author: Thomas Weißschuh Date: Tue Apr 16 09:00:41 2024 +0200 all_errnos/all_syscalls: fail if any step fails Signed-off-by: Thomas Weißschuh tools/all_errnos | 1 + tools/all_syscalls | 1 + 2 files changed, 2 insertions(+) commit 40c2181d2ce5eefeceea94d28e743012c6b440b0 Author: Leaflet <156237164+I-use-Arch-btw-00111@users.noreply.github.com> Date: Mon Apr 15 16:52:19 2024 +0000 (minor) update sulogin.c Make the root password prompt more technical login-utils/sulogin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 1c1073e0dccef02d45818403244832d8044d08ff Author: Karel Zak Date: Mon Apr 15 14:14:53 2024 +0200 libsmartcols: (filter) emulate YYerror for old Bison The special YYerror token is supported in Bison 3.6 and above. Fortunately, it is possible to emulate this functionality in older versions as well. Signed-off-by: Karel Zak libsmartcols/src/filter-parser.y | 6 +++++- libsmartcols/src/filter-scanner.l | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) commit dd5099b12a2c8ebc2995c01c00b6ca244266b737 Author: Karel Zak Date: Mon Apr 15 12:53:46 2024 +0200 libsmartcols: (filter) check vasprintf() return value Signed-off-by: Karel Zak libsmartcols/src/filter-parser.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit e0657d46914f0bd055e914ef9f4f0c9b88419a78 Author: Karel Zak Date: Mon Apr 15 12:34:31 2024 +0200 libsmartcols: (filter) accept prefixes like k, M, G as a parts of a number Co-Author: Masatake YAMATO Signed-off-by: Karel Zak libsmartcols/scols-filter.5.adoc | 7 +++++-- libsmartcols/src/filter-scanner.l | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) commit 506ad7fb88a3230f1dfbf99a2e9bc971a8201235 Author: Karel Zak Date: Mon Apr 15 11:59:01 2024 +0200 libsmartcols: (filter) use variable argument lists for yyerror() Signed-off-by: Karel Zak libsmartcols/src/filter-parser.y | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) commit 1c48fbaf2af691f9484dd988afd62044fa797f42 Author: Karel Zak Date: Mon Apr 15 11:54:34 2024 +0200 libsmartcols; (filter) make libscols_filter accessible in lex In the reentrant parser, we cannot easily extend the argument list for yylex() using %lex-param. Instead, we must use a lex-extra pointer. Signed-off-by: Karel Zak libsmartcols/src/filter-scanner.l | 2 ++ libsmartcols/src/filter.c | 1 + 2 files changed, 3 insertions(+) commit ac8be186d526d4a39682b8563aabd2daee07d2da Author: Masatake YAMATO Date: Tue Apr 9 15:07:18 2024 +0900 lsfd: move the source code to new ./lsfd-cmd directory Signed-off-by: Masatake YAMATO Makefile.am | 1 + lsfd-cmd/Makemodule.am | 24 +++++++++++++++++++++ misc-utils/lsfd-bdev.c => lsfd-cmd/bdev.c | 0 misc-utils/lsfd-cdev.c => lsfd-cmd/cdev.c | 0 .../decode-file-flags.c | 0 misc-utils/lsfd-fifo.c => lsfd-cmd/fifo.c | 0 misc-utils/lsfd-file.c => lsfd-cmd/file.c | 2 +- {misc-utils => lsfd-cmd}/lsfd.1.adoc | 0 {misc-utils => lsfd-cmd}/lsfd.c | 0 {misc-utils => lsfd-cmd}/lsfd.h | 0 misc-utils/lsfd-pidfd.c => lsfd-cmd/pidfd.c | 2 +- misc-utils/lsfd-pidfd.h => lsfd-cmd/pidfd.h | 0 .../lsfd-sock-xinfo.c => lsfd-cmd/sock-xinfo.c | 2 +- misc-utils/lsfd-sock.c => lsfd-cmd/sock.c | 2 +- misc-utils/lsfd-sock.h => lsfd-cmd/sock.h | 0 misc-utils/lsfd-unkn.c => lsfd-cmd/unkn.c | 2 +- meson.build | 3 ++- misc-utils/Makemodule.am | 25 ---------------------- misc-utils/meson.build | 15 ------------- 19 files changed, 32 insertions(+), 46 deletions(-) commit 5aa0c75c78dfb6a0c9851b348ba778149a4550a5 Author: Masatake YAMATO Date: Thu Apr 11 11:49:21 2024 +0900 tests: (lsfd) don't refer "$?" on the line follwoing the use of "local" Suggested by ShellCheck. Signed-off-by: Masatake YAMATO tests/ts/lsfd/lsfd-functions.bash | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit d4dea14933bc3ee750d6762a6f615d2a4fe24c34 Author: Masatake YAMATO Date: Wed Apr 10 18:36:47 2024 +0900 tests: (functions.sh) add a helper funcion making a device number from given major and minor nums Fixes #2919. Suggested by Karel Zak . The original code used an obsolete formula to make a device number from given major and minor numbers. ts_device_make is a new helper function based on the formula of __SYSMACROS_DEFINE_MAKEDEV macro defined in /usr/include/bits/sysmacros.h of GNU libc. Suggested by Karel Zak in #2919. Signed-off-by: Masatake YAMATO tests/functions.sh | 15 +++++++++++++++ tests/ts/lsfd/lsfd-functions.bash | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) commit 1dca39791c0cd7c2f7886e970d7c5e00e5f72ece Merge: 01fb5ecef 966cb1382 Author: Karel Zak Date: Mon Apr 15 09:07:41 2024 +0200 Merge branch 'pager/less-quirk' of https://github.com/t-8ch/util-linux * 'pager/less-quirk' of https://github.com/t-8ch/util-linux: Revert "lib/pager: Apply pager-specific fixes only when needed" commit 01fb5ecefa4651bf3201889efb1118a6abc40d19 Merge: 49d37925d c8c85e8e5 Author: Karel Zak Date: Mon Apr 15 09:07:12 2024 +0200 Merge branch 'lslocks--no-sleep-in-test-case' of https://github.com/masatake/util-linux * 'lslocks--no-sleep-in-test-case' of https://github.com/masatake/util-linux: lslocks: remove a unused local variable lslocks: don't abort gathering per-process information even if opening a /proc/[0-9]* fails commit 49d37925d7c71fe5be3bc8cd7b20fffcb376f249 Merge: 3bdb9f047 ba05b9ffa Author: Karel Zak Date: Mon Apr 15 09:04:38 2024 +0200 Merge branch 'PR/autotools' of github.com:karelzak/util-linux-work * 'PR/autotools' of github.com:karelzak/util-linux-work: autotools: add --disable-enosys, check for linux/audit.h autotools: check for sys/vfs.h and linux/bpf.h commit 3bdb9f047e10071fe63d59784aacfa1dbb22c2d1 Merge: 9ca73bae2 6b316e0c9 Author: Karel Zak Date: Mon Apr 15 08:59:45 2024 +0200 Merge branch 'fix-mnt-update' of https://github.com/gavinhungry/util-linux * 'fix-mnt-update' of https://github.com/gavinhungry/util-linux: Fix misplaced else in mnt_update_already_done commit 9ca73bae24a634672591f73f090fb36e56a500fb Merge: a50ba8adf 21da73709 Author: Karel Zak Date: Mon Apr 15 08:59:07 2024 +0200 Merge branch 'meson-version-script-libblkid' of https://github.com/jwillikers/util-linux * 'meson-version-script-libblkid' of https://github.com/jwillikers/util-linux: meson: Only use the --version-script linker flag where it is supported commit a50ba8adf9bd145101800c88fa5e97c810312a82 Merge: e67ef2f8f efce415c0 Author: Karel Zak Date: Mon Apr 15 08:57:44 2024 +0200 Merge branch 'meson-fix-libmount-libblkid-feature-dep' of https://github.com/jwillikers/util-linux * 'meson-fix-libmount-libblkid-feature-dep' of https://github.com/jwillikers/util-linux: meson: Remove libblkid dependency on libmount commit e67ef2f8f77b2513a77a60e78a511c09e5bcaea1 Merge: 854bcfe1c b8b63b36a Author: Karel Zak Date: Mon Apr 15 08:57:13 2024 +0200 Merge branch 'meson-have-sys-vfs-header' of https://github.com/jwillikers/util-linux * 'meson-have-sys-vfs-header' of https://github.com/jwillikers/util-linux: meson: Require the sys/vfs.h header for libmount and fstrim commit 854bcfe1c751e4708ffb45388497437d30d023f1 Merge: 281da283b 2c02ce7ce Author: Karel Zak Date: Mon Apr 15 08:56:25 2024 +0200 Merge branch 'zlib-disabler' of https://github.com/jwillikers/util-linux * 'zlib-disabler' of https://github.com/jwillikers/util-linux: meson: Make the zlib dependency a disabler when not found commit 281da283b460d0e5c5aaa85489f03efafd662e8d Merge: dbfd5efe4 d632e5dac Author: Karel Zak Date: Mon Apr 15 08:55:47 2024 +0200 Merge branch 'tinfo-disabler' of https://github.com/jwillikers/util-linux * 'tinfo-disabler' of https://github.com/jwillikers/util-linux: meson: Make ncurses dependency a disabler when not found meson: Make tinfo dependency a disabler when not found commit dbfd5efe46b9cea13c3703b12e14cee377859b92 Author: Masatake YAMATO Date: Mon Apr 15 02:18:19 2024 +0900 tests: (lsns::filedesc) skip if NS_GET_NSTYPE ioctl cmd not available Currently, Qemu userspace emulation doesn't support the ioctl cmd. Signed-off-by: Masatake YAMATO tests/helpers/test_sysinfo.c | 21 ++++++++++++++++++++- tests/ts/lsns/filedesc | 5 +++++ 2 files changed, 25 insertions(+), 1 deletion(-) commit 0a7a8fbc7a82dfbd9e925d1b4d4936bf4e011bc1 Author: Masatake YAMATO Date: Mon Apr 15 01:44:38 2024 +0900 lsns: report with warnx if a namespace related ioctl fails with ENOSYS Qemu userspace emulation reports ENOSYS if it doesn't support a given ioctl command. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7c33788b8614758b541028cad86744ace1e5e5a8 Author: Masatake YAMATO Date: Sun Apr 14 02:05:10 2024 +0900 lsns: fill the netsid member of lsns_process with reliable value Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit f2a8b20d9c63f771d1fddd639ea1ec3fe034dc6d Author: Masatake YAMATO Date: Sun Apr 14 01:40:14 2024 +0900 lsns: tolerate lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failing with ENOSYS With the original code, "lsns/filedesc" test case failed on "build (qemu-user, s390x)" and "build (qemu-user, riscv64)". On the platforms, lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failed with ENOSYS. The error stoped the iteration for gathering information from /proc/[0-9]+. As a result, lsns printed nothing. We don't expect this behavior. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) commit 12707a4948c1bcd54859824b26a46f530f0949d0 Author: Thomas Weißschuh Date: Sat Apr 13 10:34:32 2024 +0200 textutils: introduce and use fgetwc_or_err A return value of WEOF of fgetwc() can either mean end-of-file or an error in errno. The error was ignored and interpreted as end-of-file. Introduce a new helper that aborts on error and use it in text-utils. This replaces all calls to plain fgetwc(). Closes #2909 Signed-off-by: Thomas Weißschuh include/Makemodule.am | 1 + include/fgetwc_or_err.h | 23 +++++++++++++++++++++++ tests/expected/colcrt/regressions-crash1 | 3 +-- tests/expected/colcrt/regressions-crash1.err | 1 + tests/expected/colcrt/regressions-crash2 | 2 +- tests/expected/colcrt/regressions-crash2.err | 1 + tests/expected/colcrt/regressions-hang1 | 2 +- tests/expected/colcrt/regressions-hang1.err | 1 + tests/ts/colcrt/regressions | 1 + text-utils/colcrt.c | 7 ++++--- text-utils/colrm.c | 7 ++++--- text-utils/rev.c | 3 ++- text-utils/ul.c | 7 ++++--- 13 files changed, 45 insertions(+), 14 deletions(-) commit ccb3af024cb134acb391a44283dec4ed40c3605b Author: Thomas Weißschuh Date: Sat Apr 13 12:59:10 2024 +0200 treewide: use fgetc() instead of getc() fgetc() is similar to getc() but is guaranteed to be a function. Signed-off-by: Thomas Weißschuh login-utils/islocal.c | 2 +- term-utils/agetty.c | 4 ++-- text-utils/more.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit ef4fd528cb6dcddb867df903355d8289e12a7206 Author: Thomas Weißschuh Date: Sat Apr 13 10:21:21 2024 +0200 textutils: use fgetwc() instead of getwc() getwc() has the same semantics as fgetwc() but may be a function or macro. According to the manpage "there is no reason ever to use it". Signed-off-by: Thomas Weißschuh text-utils/colcrt.c | 6 +++--- text-utils/colrm.c | 6 +++--- text-utils/ul.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) commit 966cb1382b59a9c1d5735b47aba27050c6d5c7e5 Author: Thomas Weißschuh Date: Sat Apr 13 09:42:39 2024 +0200 Revert "lib/pager: Apply pager-specific fixes only when needed" Less is not always detectable, as it can be hidden behind symlinks or wrapper as for example in a default Debian installation. Also testing for the literal string "less" does not match full path specifications like "/usr/bin/less". Instead always apply the fixes. This reverts commit c10ad975895372122f72c8d9da089b6ea69f778b. Closes #2951 Signed-off-by: Thomas Weißschuh lib/pager.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) commit c5eccab6361c376a3f7945098c87ea9a4c5dd92a Author: Masatake YAMATO Date: Sat Apr 13 11:32:14 2024 +0900 lsns: add more print-debug code Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) commit cedf9bbf0d96ae454f85ce6c9f4d74cc2351626f Author: Masatake YAMATO Date: Sat Apr 13 05:04:33 2024 +0900 tests: (lsns::filedesc) enable debug output and show the exit status Signed-off-by: Masatake YAMATO tests/ts/lsns/filedesc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit c8c85e8e54aa201766f2420e2a7c86ccfa8d5df0 Author: Masatake YAMATO Date: Sat Apr 13 04:13:03 2024 +0900 lslocks: remove a unused local variable Signed-off-by: Masatake YAMATO misc-utils/lslocks.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 20df923cc3d2da12a5296223c3ff0de7484cc587 Author: Masatake YAMATO Date: Sat Apr 13 03:59:39 2024 +0900 lslocks: don't abort gathering per-process information even if opening a /proc/[0-9]* fails If a process ($pid) taking a lock is gone while running lslocks, gathering per-process information for the process may fail in opening /proc/$pid. Though lslocks should work with incomplete information, the original code stopped gathering per-process information for the other processes. As a result of the original behavior, tests/ts/lslocks/lslocks really failed in an environment where multiple test cases ran simultaneously. Close #2624 again. See also #2633. Signed-off-by: Masatake YAMATO misc-utils/lslocks.c | 6 ++---- tests/ts/lslocks/lslocks | 11 ----------- 2 files changed, 2 insertions(+), 15 deletions(-) commit 83cfcf7e74c63d4b9d1a5b5f7b382ada08c18663 Author: Masatake YAMATO Date: Sat Apr 13 03:39:18 2024 +0900 docs: lsns(8): ENVIRONMENT: describe LSNS_DEBUG Signed-off-by: Masatake YAMATO sys-utils/lsns.8.adoc | 5 +++++ 1 file changed, 5 insertions(+) commit 8317645892082cc6a4fc21df9b1b13ce6e799644 Author: Masatake YAMATO Date: Sat Apr 13 03:16:32 2024 +0900 lsns: continue the executing even if opening a /proc/$pid fails In the original code, lsns printed nothing if it failed in opening the last dntry in /proc/[0-9]* though lsns should work partially. The original behavior caused the combination of the following two test cases failed: $ tests/ts/lsns/filter & tests/ts/lsns/ioctl_ns & [1] 19178 [2] 19179 $ lsns: ownership and hierarchy ... \ lsns: -Q, --filter option ... FAILED FAILED [1]- Done tests/ts/lsns/filter [2]+ Done tests/ts/lsns/ioctl_ns Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) commit d444d4b828657be67d87876ef5a07df4e29fba4f Author: Masatake YAMATO Date: Tue Apr 9 04:22:54 2024 +0900 tests: (lsns::filter) don't use double-quotes chars for PID tests/ts/lsns/filter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 09e823e14e27067cabde5b1bc16cd2683436ecb1 Author: Masatake YAMATO Date: Tue Apr 9 04:18:43 2024 +0900 tests: (lsns::filter) add more debug printing tests/ts/lsns/filter | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) commit 2124eefcd29f14ba5e4ec3965b5ded9896d70966 Author: Masatake YAMATO Date: Tue Apr 9 04:12:44 2024 +0900 tests: (lsns::filter) delete an unused variable tests/ts/lsns/filter | 1 - 1 file changed, 1 deletion(-) commit efce415c094e7daf2b0781c70129b4f0f05120d4 Author: Jordan Williams Date: Mon Apr 8 11:37:01 2024 -0500 meson: Remove libblkid dependency on libmount I added this incorrect dependency between libblkid and libmount. The option to build libblkid should be allowed whether or not the build-libmount feature is allowed. Signed-off-by: Jordan Williams meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2c02ce7ceaf39ac9301371282fde3a8dc6b293d8 Author: Jordan Williams Date: Mon Apr 8 10:49:01 2024 -0500 meson: Make the zlib dependency a disabler when not found This disables targets that require zlib when it is not found. Currently, targets requiring zlib are built when it is not found. Fixes #2930. Signed-off-by: Jordan Williams meson.build | 1 + 1 file changed, 1 insertion(+) commit d632e5dac56a61bc5acdb037b1682a3d27557242 Author: Jordan Williams Date: Mon Apr 8 10:42:00 2024 -0500 meson: Make ncurses dependency a disabler when not found This disables targets that require ncurses when it is not found. Currently, targets requiring ncurses are built when it is not found. Fixes #2929. Signed-off-by: Jordan Williams meson.build | 1 + 1 file changed, 1 insertion(+) commit 5f931ae8bd9441cbf6c825482797a328f1877298 Author: Jordan Williams Date: Mon Apr 8 10:28:02 2024 -0500 meson: Make tinfo dependency a disabler when not found This disables targets that require tinfo when it is not found. Currently, targets requiring tinfo are built when it is not found. Fixes #2927. Signed-off-by: Jordan Williams meson.build | 1 + 1 file changed, 1 insertion(+) commit ba05b9ffa7544c2fa5f88147acc85f704d4785de 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 configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 0c44599f92dc556364c18bd8c1e65808776dd614 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 configure.ac | 5 +++++ 1 file changed, 5 insertions(+) commit 6b316e0c9f1feb61bef3bb14b1356be8fbefcc17 Author: Gavin Lloyd Date: Tue Apr 9 17:38:02 2024 -0700 Fix misplaced else in mnt_update_already_done See 477401f0de libmount/src/tab_update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 21da737099626a5cf00e1e0719ed2262aae6e2ea Author: Jordan Williams Date: Mon Apr 8 12:02:52 2024 -0500 meson: Only use the --version-script linker flag where it is supported macOS does not support the --version-script linker flag. Only use it if it is available. Signed-off-by: Jordan Williams libblkid/meson.build | 12 ++++++++++-- libuuid/meson.build | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) commit b8b63b36ac33f92be17a12370a0640ce5cf06a80 Author: Jordan Williams Date: Mon Apr 8 11:17:12 2024 -0500 meson: Require the sys/vfs.h header for libmount and fstrim libmount and fstrim both include sys/vfs.h unconditionally. To avoid an error at compile time, require this header for their respective feature options to be enabled. This avoids building them on systems without sys/vfs.h, such as macOS. Fixes #2932. Signed-off-by: Jordan Williams meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 5ebf0edb0a0531cba801c7791543c610725bf944 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 include/audit-arch.h | 8 ++++++++ 1 file changed, 8 insertions(+) commit 166e15d1d70c1ab77fd1811578ad37e6d6ea8fa3 Author: Karel Zak Date: Tue Apr 9 13:45:50 2024 +0200 lsns: fix ul_path_stat() error handling [coverity scan] Signed-off-by: Karel Zak sys-utils/lsns.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 985e7a748ae66c92bc4793b4de9946c6e1ba0e24 Merge: 4a5b4cfcc 6227b2b05 Author: Karel Zak Date: Tue Apr 9 12:16:21 2024 +0200 Merge branch 'logger/fixes' of https://github.com/t-8ch/util-linux * 'logger/fixes' of https://github.com/t-8ch/util-linux: logger: correctly format tv_usec logger: rework error handling in logger_gettimeofday() logger: handle failures of gettimeofday() commit 4a5b4cfccadbc687c69497f892aea496cc4c9209 Merge: 688d25ee2 59f818429 Author: Karel Zak Date: Tue Apr 9 12:07:12 2024 +0200 Merge branch 'lsfd--verify-proc-syscall-for-master' of https://github.com/masatake/util-linux * 'lsfd--verify-proc-syscall-for-master' of https://github.com/masatake/util-linux: tests: (lsfd::mkfds-multiplexing) skip if /proc/$pid/syscall is broken commit 688d25ee2111cc99ed893cc4c25aba0c5eaeeb99 Merge: d37ca5d60 9e3c5d1b5 Author: Karel Zak Date: Tue Apr 9 12:04:33 2024 +0200 Merge branch 'missing-pam' of https://github.com/jwillikers/util-linux * 'missing-pam' of https://github.com/jwillikers/util-linux: meson: Disable targets requiring pam when it is missing commit d37ca5d60be4dc85a2ff7039a5cb4713d6497f76 Merge: a06a5784a 9b4774f75 Author: Karel Zak Date: Tue Apr 9 12:02:35 2024 +0200 Merge branch 'meson-python-embed-dep' of https://github.com/jwillikers/util-linux * 'meson-python-embed-dep' of https://github.com/jwillikers/util-linux: meson: Require Python dependency which can be embedded for pylibmount commit a06a5784ab94b62c2bb37290ea8037ca4a974d16 Merge: aa0c45e86 66463f0c5 Author: Karel Zak Date: Tue Apr 9 12:00:53 2024 +0200 Merge branch 'sqlite-dep-liblastlog2' of https://github.com/jwillikers/util-linux * 'sqlite-dep-liblastlog2' of https://github.com/jwillikers/util-linux: meson: Enforce sqlite dependency for liblastlog2 commit 6227b2b0585ee2ccf224cf70c7144296a814a4ab 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 misc-utils/logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 564750580b2a78c2f3f0e8d02bdef9503d6b110c Author: Thomas Weißschuh Date: Tue Apr 9 11:00:08 2024 +0200 logger: rework error handling in logger_gettimeofday() * Fail when LOGGER_TEST_TIMEOFDAY is set to an invalid value * Fail with return -1 and errno, the same as normal gettimeofday() Signed-off-by: Thomas Weißschuh misc-utils/logger.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) commit 1c0137735020c36ce8fb39d731b2acef7e4cb0cd Author: Thomas Weißschuh Date: Tue Apr 9 10:58:19 2024 +0200 logger: handle failures of gettimeofday() Signed-off-by: Thomas Weißschuh misc-utils/logger.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit aa0c45e8686df509c169121473d2cfb4fe18c3ea Author: Masatake YAMATO Date: Fri Apr 5 22:40:36 2024 +0900 findmnt: revise the code for -I and -D option Fixes #2913. 3dd79293b5b655da9d913dedd8facb08959a7826 added -I option. However, the code used bit flags (FL_DF and FL_DF_INODES) wrongly; the code broke the output of -D option. Signed-off-by: Masatake YAMATO misc-utils/findmnt.c | 28 ++++++++---------- misc-utils/findmnt.h | 2 +- tests/expected/findmnt/df-options | 4 +++ tests/ts/findmnt/df-options | 62 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 16 deletions(-) commit 59f818429767d3b17d4accfb8819e7670ed840ca Author: Masatake YAMATO Date: Fri Apr 5 04:00:45 2024 +0900 tests: (lsfd::mkfds-multiplexing) skip if /proc/$pid/syscall is broken Close #2867 Close #2887 We should skip the test case on the platforms where /proc/$pid/syscall doesn't report correct system call number. On such platforms, Signed-off-by: Masatake YAMATO (cherry picked from commit e199a933058ae052b1dfa2fcb457791f47b60b11) tests/ts/lsfd/mkfds-multiplexing | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit 9e3c5d1b5351333129a967dbf3b5ac4a78190772 Author: Jordan Williams Date: Mon Apr 8 10:12:17 2024 -0500 meson: Disable targets requiring pam when it is missing Several executables require the pam library. The current behavior in Meson only requires this library when these executables are explicitly enabled. Unfortunately, by default, Meson will not throw an error when the required pam library is missing while still trying to build these executables. To fix this, make the pam library a disabler which automatically disables these executables if it is not found. Signed-off-by: Jordan Williams meson.build | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) commit 9b4774f75030893040b0ce17b69dcb167229b36e Author: Jordan Williams Date: Mon Apr 8 09:33:19 2024 -0500 meson: Require Python dependency which can be embedded for pylibmount Meson doesn't properly check that the necessary Python.h header file is available for the pylibmount module. Passing true for the embed keyword argument for the Python dependency method ensures that this header file is available. Signed-off-by: Jordan Williams libmount/python/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 66463f0c5f52a4571c56a88b1a52b4547cb01c67 Author: Jordan Williams Date: Mon Apr 8 08:30:24 2024 -0500 meson: Enforce sqlite dependency for liblastlog2 liblastlog2 requires the sqlite dependency. Currently, Meson enforces this dependency to be available only when the build-liblastlog2 feature is explicitly enabled. liblastlog2 is built by default, so if sqlite is not available, the build will be configured correctly, but fail to compile. This commit fixes this case by automatically disabling the build-liblastlog2 feature when it is auto and sqlite is not found. Signed-off-by: Jordan Williams meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 07aacb371470b5561f13b95e399e5ff77e417b8f Author: Karel Zak Date: Mon Apr 8 10:19:56 2024 +0200 findfs: (man) be more accurate in describing non-tags Addresses: https://github.com/util-linux/util-linux/discussions/2914 Signed-off-by: Karel Zak libblkid/src/evaluate.c | 3 +++ misc-utils/findfs.8.adoc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) commit 5d86856a890f9e542e8a6ed01de5f53f10d8e70e Merge: 671b8b058 610b26ed7 Author: Karel Zak Date: Mon Apr 8 09:59:23 2024 +0200 Merge branch 'spelling' of https://github.com/jwilk-forks/util-linux * 'spelling' of https://github.com/jwilk-forks/util-linux: enosys: (man) add missing word commit 671b8b058b02f2dd44ede6317f9cfe6cf09cac12 Merge: 44b92ef3b 099a58dbd Author: Karel Zak Date: Mon Apr 8 09:55:59 2024 +0200 Merge branch 'test_mkfds-sockdiag-for-master' of https://github.com/masatake/util-linux * 'test_mkfds-sockdiag-for-master' of https://github.com/masatake/util-linux: tests: (test_mkfds::sockdiag) verify the recieved message to detect whether the socket is usable or not lsfd: add LSFD_DEBUG env var for debugging tests: (lsfd) skip some cases if NETLINK_SOCK_DIAG for AF_UNIX is not available tests: (test_mkfds::sockdiag) new factory tests: (lsfd-functions.bash,cosmetic) unify the style to define functions tests: (lsfd) fix typoes in an error name commit 44b92ef3bb950f5680c5febcca5d4b47e67c628c Merge: df72ff49e 04db2ba90 Author: Karel Zak Date: Mon Apr 8 09:48:10 2024 +0200 Merge branch 'xry111/pidfs' of https://github.com/xry111/util-linux * 'xry111/pidfs' of https://github.com/xry111/util-linux: lsfd: test: Adapt test cases for pidfs lsfd: Support pidfs lsfd: Refactor the pidfd logic into lsfd-pidfd.c include: Include in pidfd-utils.h for syscall() commit df72ff49ed5dabb388c4a7c914c272ffd4264471 Merge: 5ce970df7 b6799ccbc Author: Karel Zak Date: Mon Apr 8 09:43:15 2024 +0200 Merge branch 'meson-make-libmount-optional' of https://github.com/jwillikers/util-linux * 'meson-make-libmount-optional' of https://github.com/jwillikers/util-linux: meson: Only build libmount when required meson: Use libblkid as a dependency meson: Use libmount as a dependency commit 5ce970df73acacbc56f2eb9152ccc56e43fd0f3e Merge: b1a76c226 7d5036fda Author: Karel Zak Date: Mon Apr 8 09:41:03 2024 +0200 Merge branch 'lsns--opened-ns' of https://github.com/masatake/util-linux * 'lsns--opened-ns' of https://github.com/masatake/util-linux: lsns: show namespaces only kept alive by open file descriptors lsns: (refactor) use ul_new_path and procfs_process_init_path commit 610b26ed7941ce8208197262cc6d95823a0d83a2 Author: Jakub Wilk Date: Mon Apr 8 08:50:39 2024 +0200 enosys: (man) add missing word Signed-off-by: Jakub Wilk misc-utils/enosys.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b1a76c226b276f49c6a7e74082a23f06f5b99966 Author: Thomas Weißschuh Date: Sun Apr 7 11:15:29 2024 +0200 meson: use signed chars This matches what the autotools build is doing. Also see https://github.com/util-linux/util-linux/pull/2768 . Signed-off-by: Thomas Weißschuh meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b6799ccbc08aea69a26cdaa97ab436bfae2ae27f Author: Jordan Williams Date: Fri Apr 5 07:49:17 2024 -0700 meson: Only build libmount when required It is not currently possible to build any part of util-linux without building libmount when using Meson. The libuuid library is commonly used on macOS, where it is not possible to build libmount. To address this, this PR makes it possible to build without libmount and libblkid. Options have been added to allow toggling whether to build targets that require libmount. This makes it possible to fully disable building libmount. The python object had to be defined outside of the meson.build file in libmount/python since this may no longer be included. The python object is used for tests. Signed-off-by: Jordan Williams libblkid/meson.build | 19 +++++++++------- libmount/meson.build | 20 ++++++++++------- libmount/python/meson.build | 6 ----- meson.build | 55 +++++++++++++++++++++++++++++++-------------- meson_options.txt | 14 ++++++++++++ 5 files changed, 75 insertions(+), 39 deletions(-) commit a764efb5fb14b9a66bff8807c04ddcebc51939ea Author: Jordan Williams Date: Fri Apr 5 08:30:02 2024 -0700 meson: Use libblkid as a dependency Several utilities depend on libblkid internally. Currently, link_with and global include directories are used to associate targets with libblkid. This PR uses Meson's dependencies argument for targets to define this relationship instead. This carries include directories along with the library to link. An additional dependency is declared for the static libblkid library. A couple of executables use this dependency explicitly. Signed-off-by: Jordan Williams libblkid/meson.build | 1 + libfdisk/meson.build | 4 ++-- libmount/meson.build | 23 ++++++++----------- meson.build | 64 ++++++++++++++++++++++++++-------------------------- 4 files changed, 45 insertions(+), 47 deletions(-) commit c43b185a3feb8cd7261c94f42a566486ce2c0438 Author: Jordan Williams Date: Fri Apr 5 08:33:22 2024 -0700 meson: Use libmount as a dependency Several utilities depend on libmount internally. Currently, link_with and global include directories are used to associate targets with libmount. This PR uses Meson's dependencies argument for targets to define this relationship instead. This carries include directories along with the library to link. An additional dependency is declared for the static libmount library. A couple of executables use this dependency explicitly. Signed-off-by: Jordan Williams libmount/meson.build | 1 + libmount/python/meson.build | 5 ++-- meson.build | 58 +++++++++++++++++++++------------------------ 3 files changed, 30 insertions(+), 34 deletions(-) commit 099a58dbde6b349c4b5fbebd5116337b2ef2f2fd Author: Masatake YAMATO Date: Tue Apr 2 06:34:40 2024 +0900 tests: (test_mkfds::sockdiag) verify the recieved message to detect whether the socket is usable or not Close #2822 again. Signed-off-by: Masatake YAMATO (cherry picked from commit f98a4c12b366ae2b5e01fa30d72eef34f3bab681) tests/helpers/test_mkfds.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) commit 497ada31ef85ae08a2a7d6c3683ce35845705793 Author: Masatake YAMATO Date: Sat Mar 30 18:47:03 2024 +0900 lsfd: add LSFD_DEBUG env var for debugging Signed-off-by: Masatake YAMATO (cherry picked from commit fbdbf44752b1b8fe5caeae168809fe2e4629752f) misc-utils/lsfd-sock-xinfo.c | 51 ++++++++++++++++++++++++++++++++++++++------ misc-utils/lsfd.c | 10 +++++++++ misc-utils/lsfd.h | 15 +++++++++++++ 3 files changed, 70 insertions(+), 6 deletions(-) commit b176a691fc4e42e190f28a4439c829488c6121b3 Author: Masatake YAMATO Date: Sat Mar 16 22:20:00 2024 +0900 tests: (lsfd) skip some cases if NETLINK_SOCK_DIAG for AF_UNIX is not available Close #2822. Signed-off-by: Masatake YAMATO tests/ts/lsfd/mkfds-socketpair | 3 +++ tests/ts/lsfd/mkfds-unix-stream-requiring-sockdiag | 2 ++ 2 files changed, 5 insertions(+) commit 6979e2a111ad0e1383b4b239042b12d35cd99ff6 Author: Masatake YAMATO Date: Sat Mar 16 22:07:43 2024 +0900 tests: (test_mkfds::sockdiag) new factory The factory is for detecting whether a platform provides NETLINK_SOCK_DIAG sockets for a given family. Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 115 ++++++++++++++++++++++++++++++++++++++ tests/ts/lsfd/lsfd-functions.bash | 27 +++++++++ 2 files changed, 142 insertions(+) commit 5f77e0ffe653b82378d24da26979cd7493e45542 Author: Masatake YAMATO Date: Sat Mar 16 22:05:48 2024 +0900 tests: (lsfd-functions.bash,cosmetic) unify the style to define functions Signed-off-by: Masatake YAMATO tests/ts/lsfd/lsfd-functions.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d2baa1df44d3db885f0df06a8c1910347c105a64 Author: Masatake YAMATO Date: Sun Mar 17 00:38:17 2024 +0900 tests: (lsfd) fix typoes in an error name tests/helpers/test_mkfds.c | 6 +++--- tests/ts/lsfd/lsfd-functions.bash | 2 +- tests/ts/lsfd/mkfds-ping | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) commit 6f548300b2b823af0b2ae208e12ddfdeebe3e71d Merge: a2d5c0caf 243950279 Author: Karel Zak Date: Fri Apr 5 10:57:13 2024 +0200 Merge branch 'meson-optional-rt' of https://github.com/jwillikers/util-linux * 'meson-optional-rt' of https://github.com/jwillikers/util-linux: meson: Only pick up the rt library once meson: Add build-lsfd option and make rt dependency optional commit a2d5c0caf8e54a6622a3d7e5ec140f26cfc671bb Merge: 085a313ea 5a61a4abf Author: Karel Zak Date: Fri Apr 5 09:40:48 2024 +0200 Merge branch 'PR/libsmartcols-json-empty' of github.com:karelzak/util-linux-work * 'PR/libsmartcols-json-empty' of github.com:karelzak/util-linux-work: libsmartcols: print empty arrays in better way lib/jsonwrt: introduce ul_jsonwrt_empty() commit 085a313eaed76cc27c36912a81337566f861f3a4 Merge: 7ff6aec99 804954442 Author: Karel Zak Date: Fri Apr 5 09:33:40 2024 +0200 Merge branch 'fix/opal_luks_blkid_scan' of https://github.com/oldium/util-linux * 'fix/opal_luks_blkid_scan' of https://github.com/oldium/util-linux: libblkid: check OPAL lock only when necessary libblkid: introduce luks opal prober commit 7ff6aec9929a16544a01aa10ad60a2f1f924cd1f Merge: bd69e791d 2ab95860d Author: Karel Zak Date: Fri Apr 5 08:49:48 2024 +0200 Merge branch 'blkid/topology-ioctl' of https://github.com/t-8ch/util-linux * 'blkid/topology-ioctl' of https://github.com/t-8ch/util-linux: libblkid: topology/ioctl: simplify ioctl handling commit 2ab95860db0b7423906911b8b9e9f231332c2c11 Author: Thomas Weißschuh Date: Thu Apr 4 07:24:58 2024 +0200 libblkid: topology/ioctl: simplify ioctl handling Coverity complains about the data copy within the union. Instead unroll the loop which is less code and easier to follow. Signed-off-by: Thomas Weißschuh libblkid/src/topology/ioctl.c | 85 ++++++++++++++----------------------------- 1 file changed, 27 insertions(+), 58 deletions(-) commit bd69e791da3af31c3797d3cd99ada370b46db2b1 Author: Karel Zak Date: Thu Apr 4 12:19:09 2024 +0200 mount: (man) add note about -o bind,rw Signed-off-by: Karel Zak sys-utils/mount.8.adoc | 2 ++ 1 file changed, 2 insertions(+) commit 595701740d7cb66bcaa877a9b23cc85196a1d141 Author: Karel Zak Date: Thu Apr 4 11:54:27 2024 +0200 sys-utils/irq-common: fix SPDX typos Reported-by: oliver Fendt Signed-off-by: Karel Zak sys-utils/irq-common.c | 2 +- sys-utils/irq-common.h | 2 +- sys-utils/irqtop.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit ae2e26027addd9b33021b561f44b3669225549f6 Merge: acdba9c45 a10081a52 Author: Karel Zak Date: Wed Apr 3 14:10:06 2024 +0200 Merge branch 'blkid/topology-ioctl' of https://github.com/t-8ch/util-linux * 'blkid/topology-ioctl' of https://github.com/t-8ch/util-linux: libblkid: topology/ioctl: correctly handle kernel types commit 5a61a4abf681cb9e595ea10021df0ff7bc991045 Author: Karel Zak Date: Wed Apr 3 14:00:45 2024 +0200 libsmartcols: print empty arrays in better way Use "[]" rather than "[null]" to print empty array. Old version: "mountpoints": [ null ], New version: "mountpoints": [], Fixes: https://github.com/util-linux/util-linux/issues/2871 Signed-off-by: Karel Zak libsmartcols/src/print.c | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) commit b649ff92d2d91864e85a5bba4c89d52236817d9e Author: Karel Zak Date: Wed Apr 3 13:57:18 2024 +0200 lib/jsonwrt: introduce ul_jsonwrt_empty() The new function optimizes the printing of empty objects and arrays in a "pretty" way, instead of using the ul_jsonwrt_..._open() and ul_jsonwrt_..._close() functions, which add extra line breaks to the output. Signed-off-by: Karel Zak include/jsonwrt.h | 8 +++++--- lib/jsonwrt.c | 35 ++++++++++++++++++++++++++--------- 2 files changed, 31 insertions(+), 12 deletions(-) commit a10081a52c48a5232db30d8e0a7a7570cc8163ae Author: Thomas Weißschuh Date: Tue Apr 2 18:55:29 2024 +0200 libblkid: topology/ioctl: correctly handle kernel types Commit 5d71d711d07a ("libblkid: topolicy/ioctl: use union for multiple data types") incorrectly assumed that set_ulong and set_int refer to the type returned by the kernel. Instead the different function pointer names refer to the types of the function pointers. However all ioctls, except for the later added BLKGETDISKSEQ, return 32bit integers. This made libblkid also interpret the upper 32bits too, leading to garbage values. Introduce a new member 'kernel_size' to also handle the 64bit BLKGETDISKSEQ. Drop data.ul as it is no actually used. Closes #2904 Signed-off-by: Thomas Weißschuh libblkid/src/topology/ioctl.c | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) commit 04db2ba9008e9635286b1aafc8ecd9533a0a91bf Author: Xi Ruoyao Date: Thu Mar 28 04:01:02 2024 +0800 lsfd: test: Adapt test cases for pidfs On Linux >= 6.9, pidfds are from pidfs instead of anonymous inode. Thus: STTYPE is REG on Linux >= 6.9, UNKN on Linux < 6.9. KNAME is pidfd:[inode number] on Linux >= 6.9, anon_inode:[pidfd] on Linux < 6.9. And ainode_class test cannot work on Linux >= 6.9, just skip this sub test if STTYPE is REG. Signed-off-by: Xi Ruoyao tests/expected/lsfd/column-name-pidfd | 2 +- tests/expected/lsfd/column-type-pidfd | 2 +- tests/expected/lsfd/mkfds-pidfd | 2 +- tests/ts/lsfd/column-ainodeclass | 8 ++++++++ tests/ts/lsfd/column-name | 7 +++++++ tests/ts/lsfd/column-type | 7 +++++++ tests/ts/lsfd/mkfds-pidfd | 4 ++++ 7 files changed, 29 insertions(+), 3 deletions(-) commit b1a48efd173c7f37d8df39a84eb25b4440335661 Author: Xi Ruoyao Date: Wed Apr 3 15:46:57 2024 +0800 lsfd: Support pidfs In Linux 6.9 pidfds are moved from the anonymous inode infrastructure to a tiny pseudo filesystem named pidfs. Recognize it properly. Fixes #2865. Signed-off-by: Xi Ruoyao misc-utils/lsfd-file.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/lsfd.c | 3 ++ misc-utils/lsfd.h | 7 +++- 3 files changed, 105 insertions(+), 1 deletion(-) commit bf6645dc1edef09ad378cc5b9eb2c93861408735 Author: Xi Ruoyao Date: Wed Apr 3 15:29:34 2024 +0800 lsfd: Refactor the pidfd logic into lsfd-pidfd.c We'll reuse these logic for pidfd support on Linux >= 6.9. This should be a no-functional change. Besides moving the code, this change also renames anon_pidfd_data to pidfd_data, and removes a redundant nullity check for free (because free(NULL) will just do nothing per the C standard). Signed-off-by: Xi Ruoyao misc-utils/Makemodule.am | 4 +- misc-utils/lsfd-pidfd.c | 95 ++++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/lsfd-pidfd.h | 37 +++++++++++++++++++ misc-utils/lsfd-unkn.c | 71 ++++++------------------------------ misc-utils/meson.build | 1 + 5 files changed, 147 insertions(+), 61 deletions(-) commit acdba9c454506cdd29ac400df3f72bde4c74647d Author: Masatake YAMATO Date: Wed Apr 3 00:01:27 2024 +0900 tests: (test_mkfds::netlink) pass a correct file descriptor to bind(2) Close #2901 The original code passed a closed file descriptor to bind(2). Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 1 + 1 file changed, 1 insertion(+) commit 7d5036fdafe0498a09146a5637a9f7f8351e6e72 Author: Masatake YAMATO Date: Sun Feb 25 04:56:51 2024 +0900 lsns: show namespaces only kept alive by open file descriptors Close #1884. Quoted from the original issue comment submitted by @hesch: It can happen, that a namespace is only kept alive by an open file descriptor of a program as ilustrated by A.B: 1. 'ip netns add foo' - add a namespace 2. 'sleep 999 4< /run/netns/foo & sleep 2' - open the fd to the namespace in a background job 3. 'ip netns delete foo' - delete the namespace (only deletes the /run/netns/foo) Now there exists a namespace with no process running in it and it has no bind mount so it does not show up in /proc/mounts, but it is still there and could be mounted back. Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 42 +++++++++++++++++++++++++++++ tests/ts/lsns/filedesc | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) commit d6cdbf8d0d1dcfdb73d138b524acdea6575ead73 Author: Masatake YAMATO Date: Mon Feb 26 01:18:26 2024 +0900 lsns: (refactor) use ul_new_path and procfs_process_init_path Signed-off-by: Masatake YAMATO sys-utils/lsns.c | 84 ++++++++++++++++++++++---------------------------------- 1 file changed, 33 insertions(+), 51 deletions(-) commit 20a740eb7c19d9bb343a8ca927d1c27402a1da5c Merge: c984aa742 44bf6d808 Author: Karel Zak Date: Tue Apr 2 13:19:03 2024 +0200 Merge branch 'master' of https://github.com/BinBashBanana/util-linux * 'master' of https://github.com/BinBashBanana/util-linux: add static partx commit c984aa7426a64ed2dbad789ff568e600db40aaa3 Merge: 3400ca5a9 0b517b611 Author: Karel Zak Date: Tue Apr 2 12:58:02 2024 +0200 Merge branch 'lsns--Q' of https://github.com/masatake/util-linux * 'lsns--Q' of https://github.com/masatake/util-linux: tests: (lsns) add a case testing -Q, --filter option tests: (test_mkfds::userns) add a new factory tests: (test_mkfds::multiplexing) fix the factory description lsns: add -H, --list-columns option lsns: implement -Q, --filter option lsfd: (man) fix the decoration of an optional parameter lsns: add a missing '=' character in the help message lsns: (man) make the namespace parameter optional lsblk: (refactor) refer to a parameter instead of a file static var commit 3400ca5a9f3174308fea9c106ee3678bd58deabd Merge: f92ed3aa6 d0a07e7fb Author: Karel Zak Date: Tue Apr 2 08:49:48 2024 +0200 Merge branch 'meson-fix-crypt-dep' of https://github.com/jwillikers/util-linux * 'meson-fix-crypt-dep' of https://github.com/jwillikers/util-linux: meson: Only require the crypt library when necessary commit f92ed3aa66bbd1df5156f8aa16723c9245265625 Merge: 2722b4001 2c5a42b3c Author: Karel Zak Date: Tue Apr 2 08:47:34 2024 +0200 Merge branch 'meson-detect-mempcpy' of https://github.com/jwillikers/util-linux * 'meson-detect-mempcpy' of https://github.com/jwillikers/util-linux: meson: Fix false positive detection of mempcpy on macOS commit 2722b40012740372daf3585b7c071fcbede13359 Author: Thomas Weißschuh Date: Mon Apr 1 22:53:32 2024 +0200 pam_lastlog2: link against liblastlog While at it also drop the duplicated include path. Fixes #2897 Signed-off-by: Thomas Weißschuh pam_lastlog2/src/Makemodule.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 243950279f413e3844d13a2d87b3853c1242f437 Author: Jordan Williams Date: Mon Apr 1 12:18:52 2024 -0500 meson: Only pick up the rt library once Require the rt library for the build-lsfd feature. Signed-off-by: Jordan Williams meson.build | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit 06b27058a04c1ac9eba44f19e320ecd862f6d75f Author: Jordan Williams Date: Fri Mar 29 12:14:44 2024 -0500 meson: Add build-lsfd option and make rt dependency optional A dependency on the rt library is unnecessarily required when checking for the clock_gettime and timer_create functions. This causes the build to fail if the rt library is not found. This should not fail the build as rt is only required for the checks. Additionally, the lsfd executable and some tests require rt. There is currently no option to toggle building lsfd. This PR makes it possible to build without the rt library. Function checks no longer require rt for the build. The function checks for the rt library only run when rt is available. This PR adds an option to allow building without lsfd. This makes it possible to build without the executable that requires rt. To not require rt for the test, a additional check has been added. The effected tests won't be built unless rt has been found. Signed-off-by: Jordan Williams meson.build | 33 ++++++++++++++++++++------------- meson_options.txt | 2 ++ 2 files changed, 22 insertions(+), 13 deletions(-) commit 2c5a42b3cbf278461a12872ce7a944ad396d47b5 Author: Jordan Williams Date: Fri Mar 29 14:00:01 2024 -0500 meson: Fix false positive detection of mempcpy on macOS The has_function check incorrectly detects mempcpy on macOS. This function is not available on macOS and should not be detected. Likely, this has to do with Meson's detection of compiler built-ins. Using a specific prefix and defining _GNU_SOURCE fixes the detection. Signed-off-by: Jordan Williams meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 3f4857f7b5d6f21ebcd9dacba6df49bc79a5ca10 Merge: c35286ced 640754e29 Author: Karel Zak Date: Mon Apr 1 12:25:36 2024 +0200 Merge branch 'meson-fix-def-environ' of https://github.com/jwillikers/util-linux * 'meson-fix-def-environ' of https://github.com/jwillikers/util-linux: meson: Don't define HAVE_ENVIRON_DECL when environ is unavailable commit c35286ced6cbad65cad616ec9af9fbd4df748ebe Merge: d7ffa483c f01644302 Author: Karel Zak Date: Mon Apr 1 12:21:36 2024 +0200 Merge branch 'dist/meson' of https://github.com/t-8ch/util-linux * 'dist/meson' of https://github.com/t-8ch/util-linux: autotools: distribute pam_lastlog2/meson.build commit d7ffa483c373573ba55cd86dc7cc8da2fefce547 Merge: b17badc1a 8e7f14391 Author: Karel Zak Date: Mon Apr 1 12:20:09 2024 +0200 Merge branch 'meson/generate-cargs' of https://github.com/t-8ch/util-linux * 'meson/generate-cargs' of https://github.com/t-8ch/util-linux: meson: respect c_args/CFLAGS when generating syscalls/errnos commit b17badc1aedeb6b5bb97a2f23f086bc581f94ad0 Merge: 7e357241b eb7fd49e8 Author: Karel Zak Date: Mon Apr 1 12:19:10 2024 +0200 Merge branch 'blkid/csum-log' of https://github.com/t-8ch/util-linux * 'blkid/csum-log' of https://github.com/t-8ch/util-linux: libblkid: use correct logging prefix for checksum mismatch commit 7e357241b413a01c37b0b4d064bc0a47e3259361 Author: Karel Zak Date: Mon Apr 1 12:14:50 2024 +0200 libblkid: Fix segfault when blkid.conf doesn't exist * Move 'line' and 'uevent' to the beginning of the LIBECONF code. * Remove unwanted space between function name and arguments. * Check for 'line' pointer before dereferencing. References: https://github.com/util-linux/util-linux/pull/2883 Signed-off-by: Karel Zak libblkid/src/config.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit e86a6a4cce0d3b9cab5407b67c6251aa184e1450 Merge: 18b0d243e 1077aa985 Author: Karel Zak Date: Mon Apr 1 12:06:12 2024 +0200 Merge branch 'fix/libuuid/doc' of https://github.com/CismonX/util-linux * 'fix/libuuid/doc' of https://github.com/CismonX/util-linux: libuuid: (man) fix function declarations commit 18b0d243e0d05855f56f00bee885f82c39a6a4d9 Author: Karel Zak Date: Mon Apr 1 12:04:47 2024 +0200 docs: add COPYING.MIT Signed-off-by: Karel Zak Documentation/licenses/COPYING.MIT | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) commit 27f9934b9655ebedc7a3db836249dc6e82c478bd Merge: f4f0782f6 5b8fab158 Author: Karel Zak Date: Mon Apr 1 12:02:42 2024 +0200 Merge branch 'master' of https://github.com/rpurdie/util-linux * 'master' of https://github.com/rpurdie/util-linux: README.licensing/flock: Add MIT license mention commit f4f0782f66692112311659086fd552d40d7a6f59 Author: Karel Zak Date: Thu Mar 21 11:16:20 2024 +0100 wall: fix escape sequence Injection [CVE-2024-28085] Let's use for all cases the same output function. Reported-by: Skyler Ferrante Signed-off-by: Karel Zak (cherry picked from commit 404b0781f52f7c045ca811b2dceec526408ac253) term-utils/wall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8049544428c95bba81820d52004557cb4ce38c20 Author: Oldřich Jedlička Date: Sat Mar 30 14:45:10 2024 +0100 libblkid: check OPAL lock only when necessary When the HW OPAL encryption is used, the LUKS2 subsystem field is "HW-OPAL" (see also [1]). Finish the probe only in case LUKS2 is set to use HW OPAL and the disk is locked. [1] https://gitlab.com/cryptsetup/cryptsetup/-/issues/874#note_1838835551 Signed-off-by: Oldřich Jedlička libblkid/src/blkidP.h | 1 + libblkid/src/probe.c | 33 +++++++++++++++++++-------------- libblkid/src/superblocks/luks.c | 25 +++++++++++++++++++++++-- 3 files changed, 43 insertions(+), 16 deletions(-) commit f016443026af3dfafbb7b5a8c65c37768a9df182 Author: Thomas Weißschuh Date: Sat Mar 30 17:46:19 2024 +0100 autotools: distribute pam_lastlog2/meson.build Otherwise building the dist tarball via meson doesn't work. Fixes #2875 Signed-off-by: Thomas Weißschuh pam_lastlog2/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 10add327c608b11b3d70215048aade4d1797b1fd Author: Xi Ruoyao Date: Sun Mar 31 00:42:03 2024 +0800 include: Include in pidfd-utils.h for syscall() In Glibc, only contains SYS_* macros and the syscall() function is in . So include it. Signed-off-by: Xi Ruoyao include/pidfd-utils.h | 1 + 1 file changed, 1 insertion(+) commit 8e7f14391bab98b3ce83a2df27ebbf76c1b5a9fc Author: Thomas Weißschuh Date: Sat Mar 30 17:29:18 2024 +0100 meson: respect c_args/CFLAGS when generating syscalls/errnos Fixes #2891 Signed-off-by: Thomas Weißschuh meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit eb7fd49e837bd107c230eb5e7fe2ee64ee56f85e Author: Thomas Weißschuh Date: Sat Mar 30 12:48:10 2024 +0100 libblkid: use correct logging prefix for checksum mismatch Signed-off-by: Thomas Weißschuh libblkid/src/probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 49a969dd87090cf0565e5c08036e887d56765353 Author: Thomas Weißschuh Date: Sat Mar 30 11:14:47 2024 +0100 libblkid: introduce luks opal prober Accesses to a disk locked with OPAL trigger IO errors logged by the kernel which should be avoided. Running the normal luks prober first breaks the ordering of probers leading to incorrect detections, for example detecting mdadm superblocks before version 1.1 as luks. Introduce a new prober that only runs on OPAL-locked disks to avoid these false-positives. See #2061, #2373 and #2882. Signed-off-by: Thomas Weißschuh libblkid/src/superblocks/luks.c | 16 ++++++++++++++++ libblkid/src/superblocks/superblocks.c | 3 +++ libblkid/src/superblocks/superblocks.h | 1 + 3 files changed, 20 insertions(+) commit 640754e29475a22fb19082dbd5cd587edc05e4b7 Author: Jordan Williams Date: Fri Mar 29 16:56:43 2024 -0500 meson: Don't define HAVE_ENVIRON_DECL when environ is unavailable HAVE_ENVIRON_DECL is being defined to 0 by cfg_data.set10(). The code only checks whether or not is defined. This leads to it not being declared appropriately. Use cfg_data.set() instead of cfg_data.set10() to define it when true. Signed-off-by: Jordan Williams meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d0a07e7fb8109e9fdeb5e2c90c019c0cf5f92009 Author: Jordan Williams Date: Fri Mar 29 10:31:27 2024 -0500 meson: Only require the crypt library when necessary The `crypt` library is only necessary for two executables. These are build-newgrp and build-sulogin. Don't otherwise require this dependency. Signed-off-by: Jordan Williams meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 1077aa985b80e5e47ddb0210b25bfe6ff1167c81 Author: CismonX Date: Fri Mar 29 07:26:35 2024 +0800 libuuid: (man) fix function declarations libuuid/man/uuid_compare.3.adoc | 2 +- libuuid/man/uuid_copy.3.adoc | 2 +- libuuid/man/uuid_is_null.3.adoc | 2 +- libuuid/man/uuid_parse.3.adoc | 4 ++-- libuuid/man/uuid_time.3.adoc | 2 +- libuuid/man/uuid_unparse.3.adoc | 6 +++--- 6 files changed, 9 insertions(+), 9 deletions(-) commit 5b8fab1584017d9d9be008c23b90128bba41a7b5 Author: Richard Purdie Date: Thu Mar 28 12:16:57 2024 +0000 README.licensing/flock: Add MIT license mention Looking at the license text, flock.c is under the MIT license (see https://spdx.org/licenses/MIT). Add an SPDX license identifier header and add to the list of licenses the source so everything is correctly listed/identified. Signed-off-by: Richard Purdie README.licensing | 2 ++ sys-utils/flock.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) commit 6ff6f5b6ffd9323cc568def2169225dd84bc3a0c Merge: 842baa4cf 5509e9b18 Author: Karel Zak Date: Wed Mar 27 11:53:02 2024 +0100 Merge branch 'libmount' of https://github.com/thkukuk/util-linux * 'libmount' of https://github.com/thkukuk/util-linux: libmount: don't initialize variable twice (#2714) commit 842baa4cf0331c7f60c4491ae15ddede8fd1dca8 Merge: ac285513c b0dbaac14 Author: Karel Zak Date: Wed Mar 27 11:51:04 2024 +0100 Merge branch 'PR/ipcs-fix-counters' of github.com:karelzak/util-linux-work * 'PR/ipcs-fix-counters' of github.com:karelzak/util-linux-work: lsipc: improve variable naming lsipc: fix semaphore USED counter commit ac285513c4f4ea25036c69571824358a585bdb41 Merge: 956ccf253 a382c924e Author: Karel Zak Date: Wed Mar 27 11:46:01 2024 +0100 Merge branch 'blkid/json' of https://github.com/t-8ch/util-linux * 'blkid/json' of https://github.com/t-8ch/util-linux: blkid: add json output format blkid: (tests) test output formats blkid: (tests) use correct blkid binary commit 0b517b611e42c813f4450442e0421a3d2bd021f6 Author: Masatake YAMATO Date: Fri Mar 8 10:57:15 2024 +0900 tests: (lsns) add a case testing -Q, --filter option Signed-off-by: Masatake YAMATO tests/expected/lsns/filter | 2 ++ tests/ts/lsns/filter | 65 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) commit 956ccf253b6e2e931f922116af4c403647f93c8a Author: Karel Zak Date: Tue Mar 26 16:17:29 2024 +0100 autotools: add dependence on libsmartcols for lsclocks Signed-off-by: Karel Zak (cherry picked from commit 272c3639d7bdb5f455717d8ce7cd9638419754b6) configure.ac | 1 + 1 file changed, 1 insertion(+) commit 7a39d4cb80040a6bbf45fdfdd4fcc5f9a57d239c Author: Masatake YAMATO Date: Fri Mar 8 10:27:08 2024 +0900 tests: (test_mkfds::userns) add a new factory Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 104 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) commit f6eeb98a7e4193fc5d8cb6ad16ac9b77c8b8f4b7 Author: Masatake YAMATO Date: Fri Mar 8 07:38:35 2024 +0900 tests: (test_mkfds::multiplexing) fix the factory description Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1467a668a0049c9efb1fa8be18a4b1fc3dbc8278 Author: Masatake YAMATO Date: Fri Mar 8 05:42:34 2024 +0900 lsns: add -H, --list-columns option Signed-off-by: Masatake YAMATO sys-utils/lsns.8.adoc | 3 +++ sys-utils/lsns.c | 29 +++++++++++++++++++++-------- 2 files changed, 24 insertions(+), 8 deletions(-) commit 592c1d95bc4889d21f8bebfd3e534f8dbbec6bd6 Author: Masatake YAMATO Date: Fri Mar 1 10:07:10 2024 +0900 lsns: implement -Q, --filter option Signed-off-by: Masatake YAMATO sys-utils/lsns.8.adoc | 11 +++ sys-utils/lsns.c | 245 ++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 197 insertions(+), 59 deletions(-) commit e31e8f874650390fb6c21639644bcdf4cf289b93 Author: Masatake YAMATO Date: Fri Mar 8 06:01:08 2024 +0900 lsfd: (man) fix the decoration of an optional parameter Signed-off-by: Masatake YAMATO misc-utils/lsfd.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 37b4d8d6b79afe453b6ca14105e106dcc4687e2e Author: Masatake YAMATO Date: Thu Mar 7 22:34:32 2024 +0900 lsns: add a missing '=' character in the help message Signed-off-by: Masatake YAMATO sys-utils/lsns.8.adoc | 2 +- sys-utils/lsns.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 5fd607b35e5d5af408c956bc8c1e3039b42367c3 Author: Masatake YAMATO Date: Fri Mar 8 05:57:19 2024 +0900 lsns: (man) make the namespace parameter optional Signed-off-by: Masatake YAMATO sys-utils/lsns.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0d6a0a6e7dcba18205b81295c2b744cfa6943017 Author: Masatake YAMATO Date: Fri Mar 1 10:07:24 2024 +0900 lsblk: (refactor) refer to a parameter instead of a file static var Signed-off-by: Masatake YAMATO misc-utils/lsblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5509e9b18a4b956b910fff772b9f88880ae28ca1 Author: Thorsten Kukuk Date: Tue Mar 26 14:00:57 2024 +0100 libmount: don't initialize variable twice (#2714) Signed-off-by: Thorsten Kukuk libmount/src/hook_loopdev.c | 4 ---- 1 file changed, 4 deletions(-) commit e28bc9b967b89ae749fa87beb9da4ba1c9c3d0c9 Merge: 5929fb5aa 81184ad44 Author: Karel Zak Date: Tue Mar 26 13:11:06 2024 +0100 Merge branch 'more' of https://github.com/thkukuk/util-linux * 'more' of https://github.com/thkukuk/util-linux: more: remove second check for EOF (#2714) commit 5929fb5aa0d8513591a15b69d3ca118fb9a81242 Merge: bf9b0bb9c 0b14dcd75 Author: Karel Zak Date: Tue Mar 26 13:10:52 2024 +0100 Merge branch 'uuidgen' of https://github.com/thkukuk/util-linux * 'uuidgen' of https://github.com/thkukuk/util-linux: uuidgen: use xmalloc instead of malloc (#2714) commit bf9b0bb9c098c4578a04c85e01d56872089745e5 Merge: a610cf823 21b9f4a5c Author: Karel Zak Date: Tue Mar 26 13:10:39 2024 +0100 Merge branch 'lscpu' of https://github.com/thkukuk/util-linux * 'lscpu' of https://github.com/thkukuk/util-linux: lscpu: initialize all variables (#2714) commit b0dbaac143e2ef2caa7552eef5e6aa0d8615f005 Author: Karel Zak Date: Tue Mar 26 12:56:50 2024 +0100 lsipc: improve variable naming * Life is too short to use long variable names * Reduce the possibility of making typos between "xyz" and "xyzp" Signed-off-by: Karel Zak sys-utils/lsipc.c | 184 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 95 insertions(+), 89 deletions(-) commit fa45a6e516065f489b1cfb924ec3fc06960e0839 Author: Karel Zak Date: Tue Mar 26 12:45:24 2024 +0100 lsipc: fix semaphore USED counter The code incorrectly counts only with the first item in the linked list (due to a typo). It seems rather fragile to use "semds" and "semdsp" as variable names in the same code ... # lsipc -gs Old: KEY ID PERMS OWNER NSEMS RESOURCE DESCRIPTION LIMIT USED USE% SEMMNI Number of semaphore identifiers 32000 3 0.01% SEMMNS Total number of semaphores 1024000000 369 0.00% SEMMSL Max semaphores per semaphore set. 32000 - - SEMOPM Max number of operations per semop(2) 500 - - SEMVMX Semaphore max value 32767 - - Fixed: KEY ID PERMS OWNER NSEMS RESOURCE DESCRIPTION LIMIT USED USE% SEMMNI Number of semaphore identifiers 32000 3 0.01% SEMMNS Total number of semaphores 1024000000 156 0.00% SEMMSL Max semaphores per semaphore set. 32000 - - SEMOPM Max number of operations per semop(2) 500 - - SEMVMX Semaphore max value 32767 - - Addresses: https://issues.redhat.com/browse/RHEL-30269 Signed-off-by: Karel Zak sys-utils/lsipc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 81184ad44f536f7f66175ef59fe8472760357fe8 Author: Thorsten Kukuk Date: Tue Mar 26 10:50:30 2024 +0100 more: remove second check for EOF (#2714) The second EOF check (c == EOF) will never be reached. Signed-off-by: Thorsten Kukuk text-utils/more.c | 3 --- 1 file changed, 3 deletions(-) commit 7d42c9799b92f93be6952fa811e6fe9e80914764 Author: Jan Macku Date: Tue Mar 26 10:45:51 2024 +0100 ci: enable dependency manager for GitHub Actions Dependabot will keep your GitHub actions up to date by creating pull requests. .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) commit 0b14dcd755565f3e48f4c30011b3dfe783558393 Author: Thorsten Kukuk Date: Tue Mar 26 09:49:22 2024 +0100 uuidgen: use xmalloc instead of malloc (#2714) Use xmalloc to make sure we don't reference a NULL pointer in error case. Signed-off-by: Thorsten Kukuk misc-utils/uuidgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 21b9f4a5cdc30e947ff9fb0210dc38ae4b16004c Author: Thorsten Kukuk Date: Tue Mar 26 09:33:32 2024 +0100 lscpu: initialize all variables (#2714) cpu->bookid got initialized twice instead of drawerid Signed-off-by: Thorsten Kukuk sys-utils/lscpu-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a610cf8231a02163a4a2b2faf3047d24798fe180 Author: Tim Hallmann Date: Sun Mar 24 20:14:30 2024 +0100 rev: Check for wchar conversion errors Commit c9cc84621ca98ef85499e83ca56f05f12055f193 introduced a regression where only the actual EOF is handled, not other error conditions returning WEOF. This leads to an infinite loop upon encountering conversion errors. For example (using LC_CTYPE="en_US.UTF-8"): $ printf '\x80' | rev Signed-off-by: Tim Hallmann text-utils/rev.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) commit 7af75457f9afce4dbea0d778a33c7689994c5343 Merge: 1064a53e4 ddd7a6827 Author: Karel Zak Date: Mon Mar 25 10:03:58 2024 +0100 Merge branch 'clang-18' of https://github.com/t-8ch/util-linux * 'clang-18' of https://github.com/t-8ch/util-linux: ci: use clang 18 lscpu: restructure op-mode printing commit 1064a53e4ff357dc649a8c4a0a41dfb5a1191bba Author: Karthikeyan Krishnasamy Date: Sat Mar 23 13:39:55 2024 +0530 sys-utils: hwclock-rtc: fix pointer usage passing double pointer doesn't fill param value Signed-off-by: Karthikeyan Krishnasamy sys-utils/hwclock-rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d2967a05bed5be18bcad91899222d62ecf3866aa Merge: 1a3745116 0c5485348 Author: Karel Zak Date: Fri Mar 22 11:33:32 2024 +0100 Merge branch 'PR/libmount-sepnodata' of github.com:karelzak/util-linux-work * 'PR/libmount-sepnodata' of github.com:karelzak/util-linux-work: libmount: make sure "option=" is used as string commit 1a374511693e4b2e8e53966615ce9112553d3b08 Author: Jordan Williams Date: Wed Mar 20 11:41:49 2024 -0500 meson: Only build blkzone and blkpr if the required linux header exists Checks for the required headers for blkzone and blkptr are done for Autotools. This logic wasn't carried over to Meson. This PR just adds the same checks. Fixes #2850. Signed-off-by: Jordan Williams meson.build | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) commit 0c5485348b155420ecd1bfcdabb1b869ca5ee3c2 Author: Karel Zak Date: Wed Mar 20 16:08:16 2024 +0100 libmount: make sure "option=" is used as string mount(8) cares about case when option specified as "name=" (it means without data). See for example 727c689908c5e68c92aa1dd65e0d3bdb6d91c1e5. We need this also for new mount API and use FSCONFIG_SET_STRING rather than FSCONFIG_SET_FLAG. strace -e fsconfig ./mount -o usrjquota= /dev/sdc1 /mnt/test Old: fsconfig(3, FSCONFIG_SET_STRING, "source", "/dev/sdc1", 0) = 0 fsconfig(3, FSCONFIG_SET_FLAG, "usrjquota", NULL, 0) = -1 EINVAL (Invalid argument) Fixed: fsconfig(3, FSCONFIG_SET_STRING, "source", "/dev/sdc1", 0) = 0 fsconfig(3, FSCONFIG_SET_STRING, "usrjquota", "", 0) = 0 Fixes: https://github.com/util-linux/util-linux/issues/2837 Signed-off-by: Karel Zak libmount/src/hook_mount.c | 3 +++ libmount/src/mountP.h | 1 + libmount/src/optlist.c | 14 +++++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) commit 7d16145c4696772bb5438a43a482f68fbf046370 Author: Stanislav Brabec Date: Mon Mar 18 18:39:36 2024 +0100 chcpu(8): document limitations of -g Document that chcpu -g is not supported on IBM z/VM because the detach cpu would CLEAR the running zVM guest memory. References: https://www.ibm.com/docs/en/linux-on-z?topic=mc-changing-state-1 https://www.ibm.com/docs/en/zvm/7.3?topic=commands-detach-cpu Reported-by: Heikki Ylipiessa Signed-off-by: Stanislav Brabec sys-utils/chcpu.8.adoc | 2 ++ 1 file changed, 2 insertions(+) commit 4ebdd569049ac48a3867a59537cea769fa319e8f Author: Karel Zak Date: Wed Mar 20 15:03:05 2024 +0100 lib/sha1: fix for old glibc Fixes: https://github.com/util-linux/util-linux/issues/2830 References: http://github.com/util-linux/util-linux/commit/a8902e4cdd6149e5124383b25db8688dcdacd790 Signed-off-by: Karel Zak lib/sha1.c | 4 ++++ 1 file changed, 4 insertions(+) commit 9ce09ccc3c8eee9be4fb5f33ae382d92c69dc411 Author: Karel Zak Date: Wed Mar 20 14:42:28 2024 +0100 lscpu: don't use NULL sharedmap Fixes: https://github.com/util-linux/util-linux/issues/2846 Signed-off-by: Karel Zak sys-utils/lscpu-topology.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit c74ccea0af4d0354be60cece679b63de7f06400d Author: Thomas Weißschuh Date: Tue Mar 19 22:21:54 2024 +0100 ci: reduce aslr level to avoid issues with ASAN As we have multiple different configurations using ASAN just disable it for all of them. Signed-off-by: Thomas Weißschuh .github/workflows/cibuild-setup-ubuntu.sh | 3 +++ 1 file changed, 3 insertions(+) commit 75822efb8e948b538d9e9ccc329a5430fdabb7ea Author: biubiuzy <294772273@qq.com> Date: Fri Feb 23 17:44:12 2024 +0800 last: avoid out of bounds array access login-utils/last.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit c7323f0954bf97c4bd8575f416c9ced258e3723a Author: Chris Hofstaedtler Date: Fri Mar 15 17:54:17 2024 +0100 findmnt: remove deleted option from manual Bug-Debian: 1066843 Signed-off-by: Chris Hofstaedtler Reported-by: Francesco Potortì misc-utils/findmnt.8.adoc | 3 --- 1 file changed, 3 deletions(-) commit 90ebcedb8701322685abaec76213dfba21757272 Author: Kuniyuki Iwashima Date: Mon Mar 11 18:12:02 2024 +0000 lib/pty-session: Don't ignore SIGHUP. The blamed commit converted script to use the generic pty code that was added by commit 6954895cae34 ("lib/pty-session: add generic PTY container code"). Commit ec10634e7ec4 says the new pty stuff is based on script. However, there is difference in signal handling. Before the commit, only the signals that the script was interested in were blocked and handled by signalfd. After the commit, all signals are blocked and only the interested signals are handled. This causes regression in the following scenario: 1. run `script` via /etc/profile.d for ssh session 2. login to a ssh session using bash 3. run `sudo -i` 4. wait until ssh session timeout After 3., the process tree will be like this. $ pstree -p | grep script |-sshd(2652)-sshd(637993)---sshd(637996)---bash(637997)---script(638028)---bash(638029)---sudo(638057)---sudo(638059)-+ The notable thing here is that script is in the parent's process group (637997). $ ps -eo pid,pgid,ppid,stat,sig,comm | grep script 638028 637997 637997 S+ 0000000000000000 script Thus, the parent bash will send SIGHUP to script, when the timeout occurs at 4. $ sudo /usr/share/bcc/tools/killsnoop TIME PID COMM SIG TPID RESULT 18:46:57 637997 bash 1 637997 0 $ ps -eo pid,pgid,ppid,stat,sig,comm | grep script 638028 637997 1 S 0000000000020001 script However, this is not handled, so the script is reaped but remains forever. $ pstree -p | grep script |-script(638028)---bash(638029) To avoid such a situation, we need to handle SIGHUP in script. With this patch, script will receive SIGHUP from the parrent and kill its child processes. $ pstree -p | grep script |-sshd(2652)-sshd(638400)---sshd(638404)---bash(638405)---script(638436)---bash(638437)---sudo(638465)---sudo(638467)-+ $ sudo /usr/share/bcc/tools/killsnoop TIME PID COMM SIG TPID RESULT 18:50:11 638405 bash 1 638405 0 18:50:11 638436 script 15 638437 0 18:50:11 638436 script 15 638437 0 18:50:13 638436 script 9 638437 0 Fixes: ec10634e7ec4 ("script: use lib/pty-session") Reported-by: Ayame Suzuki Signed-off-by: Kuniyuki Iwashima lib/pty-session.c | 3 +++ 1 file changed, 3 insertions(+) commit 5740148a20be4ac84884c342199d90553c90f04d Author: Thomas Weißschuh Date: Sun Mar 10 10:43:20 2024 +0100 dmesg: print object closing brace while waiting for next message Allow incremental parsers to process the full object as it is written by dmesg. Closes #2833 Signed-off-by: Thomas Weißschuh sys-utils/dmesg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 79e77816c424e25d9299ea4d63f5c0c7cfe1844f Author: Thomas Weißschuh Date: Sun Mar 10 07:17:25 2024 +0100 jsonwrt: add ul_jsonwrt_flush Signed-off-by: Thomas Weißschuh include/jsonwrt.h | 1 + lib/jsonwrt.c | 5 +++++ 2 files changed, 6 insertions(+) commit ddd7a682774b95ff476a02fabdb25b85907debf5 Author: Thomas Weißschuh Date: Tue Mar 19 22:25:29 2024 +0100 ci: use clang 18 Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0477ce4805de4f0f01e98b04ed9acf4168ed805e Author: Thomas Weißschuh Date: Tue Mar 19 22:49:31 2024 +0100 lscpu: restructure op-mode printing The existing logic can confuse ASAN. Restructure it so it is shorter and easer to understand for humans. Signed-off-by: Thomas Weißschuh sys-utils/lscpu.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) commit 6d2917f2eb910fb8bcdc6476be18c34fee152911 Author: Matt Turner Date: Mon Mar 18 21:29:13 2024 -0400 libmount: Fix export of mnt_context_is_lazy and mnt_context_is_onlyonce [kzak@redhat.com: - fix also function docs] Bug: https://bugs.gentoo.org/927258 Closes: https://github.com/util-linux/util-linux/issues/2844 Fixes: 3d1c41c8c ("libmount: add --onlyonce") Signed-off-by: Matt Turner Signed-off-by: Karel Zak libmount/src/context.c | 4 ++-- libmount/src/libmount.sym | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 44bf6d808e2babad93762d372812243c9156c81e Author: BinBashBanana <51469593+BinBashBanana@users.noreply.github.com> Date: Fri Mar 8 01:12:26 2024 -0800 add static partx configure.ac | 2 +- disk-utils/Makemodule.am | 20 ++++++++++++++++++++ meson.build | 43 +++++++++++++++++++++++++++++++++++++++++++ meson_options.txt | 2 +- 4 files changed, 65 insertions(+), 2 deletions(-) commit a382c924e26fa3a15e2c7d827c77150c7c4b7e41 Author: Thomas Weißschuh Date: Wed Mar 6 17:36:52 2024 +0100 blkid: add json output format Signed-off-by: Thomas Weißschuh bash-completion/blkid | 2 +- misc-utils/blkid.8.adoc | 2 ++ misc-utils/blkid.c | 38 ++++++++++++++++++++++++++++++---- tests/expected/blkid/output-json-cache | 4 ++++ tests/expected/blkid/output-json-probe | 8 +++++++ tests/ts/blkid/output | 2 +- 6 files changed, 50 insertions(+), 6 deletions(-) commit 11faf236604fbe5aa63b13ff0832c17c230eb91d Author: Thomas Weißschuh Date: Wed Mar 6 17:36:47 2024 +0100 blkid: (tests) test output formats Signed-off-by: Thomas Weißschuh tests/expected/blkid/output-device-cache | 1 + tests/expected/blkid/output-device-probe | 1 + tests/expected/blkid/output-export-cache | 3 ++ tests/expected/blkid/output-export-probe | 7 +++++ tests/expected/blkid/output-full-cache | 1 + tests/expected/blkid/output-full-probe | 1 + tests/expected/blkid/output-udev-cache | 3 ++ tests/expected/blkid/output-udev-probe | 7 +++++ tests/expected/blkid/output-value-cache | 3 ++ tests/expected/blkid/output-value-probe | 7 +++++ tests/ts/blkid/blkid-output.img.xz | Bin 0 -> 156 bytes tests/ts/blkid/output | 46 +++++++++++++++++++++++++++++++ 12 files changed, 80 insertions(+) commit d8487d108b02579cd9b189b5bbe5522b79c95a9d Author: Thomas Weißschuh Date: Wed Mar 6 17:36:41 2024 +0100 blkid: (tests) use correct blkid binary Signed-off-by: Thomas Weißschuh tests/ts/blkid/cache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b0151dde235a218d24c5ff1f54a7a7fe2b87d6a0 Merge: 4b2e6f507 b3e9aadce Author: Karel Zak Date: Tue Mar 5 10:14:08 2024 +0100 Merge branch 'blockdev' of https://github.com/EvgeniyRogov/util-linux * 'blockdev' of https://github.com/EvgeniyRogov/util-linux: - Fixed report error code in blockdev. - Minor: Added a period at the end of "--rereadpt" description. commit 4b2e6f5071a4c5beebbd9668d24dc05defc096d7 Author: Tanish Yadav Date: Tue Mar 5 00:51:41 2024 +0530 su: fix use after free in run_shell Do not free tmp for non login branch as basename may return a pointer to some part of it. [kzak@redhat.com: - improve coding style of the function] Signed-off-by: Tanish Yadav Signed-off-by: Karel Zak login-utils/su-common.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) commit b3e9aadce221fef040e8a059650e351234c8a762 Author: EvgeniyRogov Date: Fri Mar 1 14:13:11 2024 +0300 - Fixed report error code in blockdev. - Minor: Added a period at the end of "--rereadpt" description. disk-utils/blockdev.8.adoc | 2 +- disk-utils/blockdev.c | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) commit 677a3168b261f3289e282a02dfd85d7f37de0447 Author: Karel Zak Date: Mon Mar 4 13:30:10 2024 +0100 su, agetty: don't use program_invocation_short_name for openlog() Make sure the program name is hardcoded when write to the log. Reported-by: "Serge E. Hallyn" Reported-by: "Skyler Ferrante (RIT Student)" Signed-off-by: Karel Zak login-utils/su-common.c | 2 +- term-utils/agetty.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 92dd6d533119cd6300784c4be422c2d5e7047c90 Merge: b12627f59 292586e4a Author: Karel Zak Date: Mon Mar 4 12:53:42 2024 +0100 Merge branch 'spelling' of https://github.com/jwilk-forks/util-linux * 'spelling' of https://github.com/jwilk-forks/util-linux: docs: fix typos commit b12627f59efd2e1a5abd0c2cc3e69a92852b6f7c Merge: 720301e04 121b37036 Author: Karel Zak Date: Mon Mar 4 12:38:35 2024 +0100 Merge branch 'lsfd--github-issue-2819' of https://github.com/masatake/util-linux * 'lsfd--github-issue-2819' of https://github.com/masatake/util-linux: tests: (lsfd::mkfds-inotify) consider environments not having / as a mount point commit 720301e04f339274652150f305d9e9f3e504ac6e Author: Karel Zak Date: Mon Mar 4 12:35:09 2024 +0100 build-sys: make sure everywhere is localstatedir _PATH_LOCALSTATEDIR and @localstatedir@ are defined by build-systems and it's necessary to use it everywhere to keep things consistent. Reference: https://github.com/util-linux/util-linux/pull/2825 Signed-off-by: Karel Zak liblastlog2/src/lastlog2.h | 2 +- misc-utils/uuidd.service.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 121b37036cce04f5d6bf590d6eef13ecf8a09265 Author: Masatake YAMATO Date: Sun Mar 3 06:51:15 2024 +0900 tests: (lsfd::mkfds-inotify) consider environments not having / as a mount point Close #2819. In the original test case, test_mkfds monitored / and /etc/fstab. As reported in #2819, if a test platform doesn't have / as a mount point, the test case doesn't work. So we use /proc and /proc/cmdnline instead. Signed-off-by: Masatake YAMATO Acked-by: Chris Hofstaedtler tests/expected/lsfd/mkfds-inotify | 2 +- tests/ts/lsfd/mkfds-inotify | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) commit 292586e4a6e887d37134db446c6dbd2c7a046d86 Author: Jakub Wilk Date: Fri Mar 1 10:33:46 2024 +0100 docs: fix typos Signed-off-by: Jakub Wilk Documentation/howto-contribute.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 67cdedd639f3ea285fe8d1508ad208334760e5cb Author: Karel Zak Date: Thu Feb 29 23:00:10 2024 +0100 docs: add note about stable branches Signed-off-by: Karel Zak Documentation/howto-contribute.txt | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) commit fcb83efb61c7898fa2ef20e010bf760278ec6746 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 (cherry picked from commit f030775ffeaa8627c88434f7d0cba1a454aa0ffa) misc-utils/lslocks.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) commit 4aa584a0e7482b89599c01986cd4ea69a397f808 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 term-utils/setterm.1.adoc | 4 ++++ 1 file changed, 4 insertions(+) commit 311ea4e73b8b35788e1bbc784350082e45e9d445 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 meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 86c15bb29eb4ca0ace2cee77d04b20af6494b984 Merge: 107b2fbea 80a4f2f4d Author: Karel Zak Date: Thu Feb 29 09:50:59 2024 +0100 Merge branch 'lsfd--btrfs' of https://github.com/masatake/util-linux * 'lsfd--btrfs' of https://github.com/masatake/util-linux: tests: (lsfd::mkfds-inotify-btrfs) test INOTIFY.INODES cooked output lsfd: extend nodev table to decode "btrfs" on SOURCE column lsfd: (refactor) rename a member of struct proc lsfd: (refactor) rename a local variable and a parameter lsfd: (refactor) split the function processing mountinfo file lsfd: (refactor) store a mnt_namespace object to struct process lsfd: (refactor) use a binary tree as the implementation for mnt_namespaces lsfd: read /proc/$pid/ns/mnt earlier lsfd: (refactor) rename add_nodevs to read_mountinfo lsfd: make the way to read /proc/$pid/mountinfo robust lsfd: (cosmetic) normalize whitespaces commit 107b2fbeac3cd6b64c7b2fb40f8ecd0feee220ad 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 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 306cd7c7ce2920bbc204c6e404e3480e132ff1dd Author: Christian Hesse Date: Tue Feb 27 22:36:13 2024 +0100 lastlog2: rename tmpfiles Signed-off-by: Christian Hesse 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 ffd6db8951c2ee6d7fd9ca2491da819dec3f3286 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 misc-utils/meson.build | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) commit b3fdc48a5672ae39b6ceceb7e46a5e1351f06fb6 Author: Christian Hesse Date: Tue Feb 27 13:07:30 2024 +0100 uuidd.rc: create localstatedir in init script Signed-off-by: Christian Hesse misc-utils/uuidd.rc.in | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit 2b7410544c90f56fbb9abca999ed48feffbe31ef 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 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 69b9215a4e50a77f3663ee00f382c438ccc62ac9 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 COPYING.GPL-2.0-only => Documentation/licenses/COPYING.GPL-2.0-only | 0 1 file changed, 0 insertions(+), 0 deletions(-) commit ea35ab0a08552a3be19ee8a964bfdd53a98d4f03 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 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 1509e022f063f4e4596b3a4433e258e13b1b086c Merge: 7230e3472 dfa1ad272 Author: Karel Zak Date: Wed Feb 28 12:16:25 2024 +0100 Merge branch 'PR/hexdump-overflow' of github.com:karelzak/util-linux-work * 'PR/hexdump-overflow' of github.com:karelzak/util-linux-work: hexdump: check blocksize when display data commit 7230e347233147e9341551723401d4b363eeb2d9 Merge: c02b29388 90cb38259 Author: Karel Zak Date: Wed Feb 28 11:49:51 2024 +0100 Merge branch 'enosys/dump' of https://github.com/t-8ch/util-linux * 'enosys/dump' of https://github.com/t-8ch/util-linux: enosys: allow dumping to file codeql: don't report world-writable files commit c02b2938808b33d843a8822f5bf1a3c85ac9774e Merge: 16926147c 9da5644e4 Author: Karel Zak Date: Wed Feb 28 11:49:37 2024 +0100 Merge branch 'PR/libmount-errmsg' of github.com:karelzak/util-linux-work * 'PR/libmount-errmsg' of github.com:karelzak/util-linux-work: libmount: report kernel message from new API commit 90cb38259a3adbe640bc3d8c7fb0ef83df650bfa Author: Thomas Weißschuh Date: Thu Feb 22 22:54:41 2024 +0100 enosys: allow dumping to file Signed-off-by: Thomas Weißschuh bash-completion/enosys | 1 + misc-utils/enosys.1.adoc | 2 +- misc-utils/enosys.c | 18 ++++++++++++------ tests/ts/setpriv/seccomp | 2 +- 4 files changed, 15 insertions(+), 8 deletions(-) commit a1d5663ad79ff34ccccef2f9f0d19b3c1ccdc3c9 Author: Thomas Weißschuh Date: Tue Feb 27 20:54:33 2024 +0100 codeql: don't report world-writable files Signed-off-by: Thomas Weißschuh .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) commit dfa1ad272528a92384adac523cf2f2949b767d8d 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 text-utils/hexdump-display.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit 16926147cb346fc3245b4ea5e4cb0fc47a4f198f Merge: 805911b7d 0e5031a42 Author: Karel Zak Date: Tue Feb 27 16:10:22 2024 +0100 Merge branch 'PR/dmesg-2807' of github.com:karelzak/util-linux-work * 'PR/dmesg-2807' of github.com:karelzak/util-linux-work: dmesg: fix wrong size calculation commit 9da5644e414cdc318f0311260dabc6035c85b58e 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 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 805911b7d5449379135d156661e4fdc2c79b4641 Merge: b837ab027 c91694dd0 Author: Karel Zak Date: Tue Feb 27 14:28:48 2024 +0100 Merge branch 'patch-1' of https://github.com/ThomasKaiser/util-linux * 'patch-1' of https://github.com/ThomasKaiser/util-linux: Adding Neoverse-V3/-N3 ARM cores commit b837ab02711d1a9352232ed2ba6ffbd47c201446 Author: Thomas Weißschuh Date: Mon Feb 26 20:01:45 2024 +0100 meson: avoid future-deprecated feature Avoid the following message from meson: NOTICE: Future-deprecated features used: * 1.1.0: {'"boolean option" keyword argument "value" of type str'} Signed-off-by: Thomas Weißschuh meson_options.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0e5031a425c727b16831c108a92271e240c29595 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 sys-utils/dmesg.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit c91694dd066d07c2ca7d68cbe212b2e1f893e942 Author: Thomas Kaiser Date: Mon Feb 26 12:20:11 2024 +0100 Adding Neoverse-V3/-N3 ARM cores sys-utils/lscpu-arm.c | 2 ++ 1 file changed, 2 insertions(+) commit cc64c4af66d5c8a2a7c73595e8fb79b6573d25c0 Merge: 1cde32f32 1eeabbb42 Author: Karel Zak Date: Mon Feb 26 09:51:54 2024 +0100 Merge branch 'meson/gnu-source' of https://github.com/t-8ch/util-linux * 'meson/gnu-source' of https://github.com/t-8ch/util-linux: meson: run compiler checks with -D_GNU_SOURCE when necessary commit 1cde32f323e0970f6c7f35940dcc0aea97b821e5 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 libmount/src/hook_loopdev.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit 80a4f2f4dd946c45b76917ef0d54db67f66c02ab Author: Masatake YAMATO Date: Sun Feb 25 02:46:37 2024 +0900 tests: (lsfd::mkfds-inotify-btrfs) test INOTIFY.INODES cooked output Signed-off-by: Masatake YAMATO tests/expected/lsfd/mkfds-inotify-btrfs | 2 ++ tests/ts/lsfd/mkfds-inotify-btrfs | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) commit 1b2ab467e7257ce2526f1282a867bb764950285c Author: Masatake YAMATO Date: Fri Jan 5 14:31:46 2024 +0900 lsfd: extend nodev table to decode "btrfs" on SOURCE column When filling SOURCE column, lsfd decodes the name of the device where the file object is. If the file object is sourced from a file system, lsfd fills the column with the file system's name. As #2349 and #2308, if the file system is btrfs, lsfd couldn't decode the name correctly. This change and its preceding changes fix this bug. "devnum offset" causes the trouble. On btrfs, the device number reported by stat syscall and proc fs are different. For the details of "devnum offset", see "Mechanism behind the devnum offset". About the way to fix it, see "How to adjust the output of lsfd". Without this change: $ ./lsfd -Q '(ASSOC == "exe")' -p $$ COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME zsh 19318 yamato exe ------ REG 0:38 0 589767 /usr/bin/zsh With this change: $ ./lsfd -Q '(ASSOC == "exe")' -p $$ COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME zsh 19318 yamato exe ------ REG btrfs 0 589767 /usr/bin/zsh Mechanisum behind the devnum offset ----------------------------------- Both stat command and the inotify field in fdinfo refer to an inode. filename_lookup(https://elixir.bootlin.com/linux/v6.2.9/source/fs/namei.c#L2495) is the function getting the inode for a given file name. filename_lookup returns a struct path. Via path->detnry->inode, the caller of filename_lookup can get the inode. stat command calls statx system call. statx calls filename_lookup eventually. inotify_add_watch system call takes a file name. The inotify_add_watch calls the filename_lookup eventually for getting the inode for the file name. The inode number that inotify_add_watch gets via filename_lookup is printed in the inotify field in fdinfo. The device number, the subject of this issue, can be obtained via path->detnry->inode->i_sb->s_dev. Both the stat command and the inotify field in fdinfo use the filename_lookup for getting path. If they use the same function, why don't the device numbers match? I monitored the device numbers obtained via path->detnry->inode->i_sb->s_dev by inserting a systemtap probe to filename_lookup. I saw the numbers matched. However, the number monitored via systemtap did not match the number printed by the stat command. statx system call doesn't use path->detnry->inode->i_sb->s_dev , the value obtained via filename_lookup, directly. statx calls vfs_statx. vfs_statx calls vfs_getattr after calling the filename_lookup for filling struct kstat. vfs_getattr calls inode->i_op->getattr, a file system specific method for filling struct kstat if it is available. btrfs has an implementation for the method, btrfs_getattr(https://elixir.bootlin.com/linux/v6.2.9/source/fs/btrfs/inode.c#L9007): stat->dev = BTRFS_I(inode)->root->anon_dev; The dev member is overwritten with btrfs specific value. How to adjust the output of lsfd -------------------------------- lsfd already reads mountinfo files. 1. Get the "rawnum" and mount point The device numbers in a mountinfo file are raw; btrfs is not considered. Let's call the number "rawnum" here. When reading the mountinfo file, lsfd can know the mount points of btrfs. grep btrfs /proc/self/mountinfo 72 1 0:35 /root / rw,relatime shared:1 - btrfs 2. Get the cooked num By calling "stat" system call for the mount point getting in the step 1, lsdf can know the device number the btrfs customizes with its getattr method. Let's call the device number "cookednum". 3. Make a table mapping "rawnum" to "cookednum". 4. Look up the table when printing inodes. Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 175 ++++++++++++++++++++++++++++++-- tests/expected/lsfd/column-source-btrfs | 2 + tests/ts/lsfd/column-source-btrfs | 74 ++++++++++++++ 3 files changed, 240 insertions(+), 11 deletions(-) commit b86c313072d35ed2d8927eb46808ad9268fdfc21 Author: Masatake YAMATO Date: Fri Jan 5 10:27:42 2024 +0900 lsfd: (refactor) rename a member of struct proc Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 14 +++++++------- misc-utils/lsfd.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) commit 2d875b3c31b6d053ae758c99e16a12351797561f Author: Masatake YAMATO Date: Fri Jan 5 10:26:35 2024 +0900 lsfd: (refactor) rename a local variable and a parameter Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit d3553b6085bf67d57b8e4a19bd3ca83f9c69187d Author: Masatake YAMATO Date: Thu Jan 4 16:02:03 2024 +0900 lsfd: (refactor) split the function processing mountinfo file Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) commit 5b4b9e9abbb32e7ad2da1a6211abfab4b631cf60 Author: Masatake YAMATO Date: Fri Jan 5 07:59:04 2024 +0900 lsfd: (refactor) store a mnt_namespace object to struct process Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 29 ++++++++++++++++++++--------- misc-utils/lsfd.h | 2 +- 2 files changed, 21 insertions(+), 10 deletions(-) commit e1a7978193efbcbc7773fd6bcf679cf73348cc70 Author: Masatake YAMATO Date: Fri Jan 5 07:35:58 2024 +0900 lsfd: (refactor) use a binary tree as the implementation for mnt_namespaces Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 85 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 55 insertions(+), 30 deletions(-) commit a99427e9c4e4b1ab57df1f94f6addc1769426f5a 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 misc-utils/lsfd.c | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) commit 18a1403401112665f5015770c99f96ced5c6e38e 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 misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 80b3c8ccdb35f862c02934ddeeadedcc60e310e8 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 misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d967f8e6e3c7eb93cd4c7302718e234488f90683 Author: Masatake YAMATO Date: Thu Jan 4 04:57:25 2024 +0900 lsfd: (cosmetic) normalize whitespaces Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 1eeabbb42649f8334b6330689fec54325591fe2f 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 meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 7ca98ca6aab919f271a15e40276cbb411e62f0e4 Merge: 67c32ba44 3d4ce545f Author: Karel Zak Date: Thu Feb 22 10:44:41 2024 +0100 Merge branch 'lastlog2_error' of https://github.com/schubi2/util-linux * 'lastlog2_error' of https://github.com/schubi2/util-linux: liblastlog2: Improved sqlite3 error handling commit 67c32ba44d7913424f0b3a8f3b1b12a8031c38da Merge: edce222c2 fe2372285 Author: Karel Zak Date: Thu Feb 22 10:39:03 2024 +0100 Merge branch 'PR/more-poll' of github.com:karelzak/util-linux-work * 'PR/more-poll' of github.com:karelzak/util-linux-work: more: fix poll() use commit edce222c22752bcc69b6da7323bd9bc0884e51de Merge: ced129dcf af93603e5 Author: Karel Zak Date: Thu Feb 22 10:38:25 2024 +0100 Merge branch 'PR/lastlog2-cleanup' of github.com:karelzak/util-linux-work * 'PR/lastlog2-cleanup' of github.com:karelzak/util-linux-work: lastlog2: convert check_user() to boolean-like macro lastlog: cleanup function definitions lastlog2: make longopts[] static-const lastlog: improve errors printing lastlog2: improve coding style commit ced129dcf654836850f475413120b3a3fd8de707 Author: Thomas Weißschuh Date: Sun Feb 4 11:56:58 2024 +0100 enosys: add support for alternative error codes Signed-off-by: Thomas Weißschuh meson.build | 2 +- misc-utils/Makemodule.am | 2 +- misc-utils/enosys.1.adoc | 26 ++++++++++++++++++++++++-- misc-utils/enosys.c | 38 +++++++++++++++++++++++++++++++++----- tests/expected/misc/enosys-basic | 2 ++ tests/expected/misc/enosys-ioctl | 2 ++ tests/ts/misc/enosys | 4 ++++ 7 files changed, 67 insertions(+), 9 deletions(-) commit 766a9bd686e063c6a70bb92836a4d5f8492a7799 Author: Thomas Weißschuh Date: Sun Feb 4 11:36:54 2024 +0100 enosys: generalize named number parsing [kzak@redhat.com: - resolve merge conflict in main()] Signed-off-by: Thomas Weißschuh misc-utils/enosys.c | 69 ++++++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 33 deletions(-) commit 46eabebbba19b56a66620644d49c69f103eb9368 Author: Thomas Weißschuh Date: Sat Feb 17 10:03:22 2024 +0100 autotools: make errnos.h available without lsfd enosys will use it. Signed-off-by: Thomas Weißschuh misc-utils/Makemodule.am | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 4573bdfde6041b3322fa8724ec2728c90d399039 Merge: 3ce8e121c 129b0d223 Author: Karel Zak Date: Thu Feb 22 10:26:15 2024 +0100 Merge branch 'enosys/dump' of https://github.com/t-8ch/util-linux * 'enosys/dump' of https://github.com/t-8ch/util-linux: setpriv: (tests) add seccomp test setpriv: add support for seccomp filters enosys: add functionality to dump filter include: introduce seccomp.h commit 3d4ce545f2563f5dde88e7bd50ef4944a65112db Author: Stefan Schubert Date: Wed Feb 21 13:09:52 2024 +0100 liblastlog2: Improved sqlite3 error handling liblastlog2/src/lastlog2.c | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) commit 3ce8e121c322237e953f9a4f816a5deddd2ec1fd 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 fe23722854f651984fad597cbb5b44653f72832a 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 af93603e52d56fdd6246a038139a5d0e83a5c6a2 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 misc-utils/lastlog2.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) commit c71f38287c81cb06433e3949dadba8bc74dc8588 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 misc-utils/lastlog2.c | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) commit 76fcb1c65afd7bbcd5f27b3f3b3408bc7d40ca00 Author: Karel Zak Date: Tue Feb 20 10:20:10 2024 +0100 lastlog2: make longopts[] static-const Signed-off-by: Karel Zak misc-utils/lastlog2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4e86ac6f7faef64831da5b2dfcd2b40bb7179bc4 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 misc-utils/lastlog2.c | 75 ++++++++++++++++++++------------------------------- 1 file changed, 29 insertions(+), 46 deletions(-) commit d2203ae361c228d232b2fa77d7503d1cc3526f75 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 misc-utils/lastlog2.c | 58 +++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 30 deletions(-) commit 1c14996da1e132830bcc024c2ca7430fe3c2ac28 Author: Miika Alikirri Date: Mon Feb 19 12:09:13 2024 +0200 lastlog2: Don't print space if Service column is not printed misc-utils/lastlog2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 5636f6a6c935381a597213913ed82436a98d90a9 Merge: 0979e80e5 59993a278 Author: Karel Zak Date: Mon Feb 19 10:22:11 2024 +0100 Merge branch 'foo' of https://github.com/emanuele6/util-linux * 'foo' of https://github.com/emanuele6/util-linux: docs: remove duplicated author name in namei.1.adoc commit 0979e80e5afdc739e083d1b83c5bb4abd41ba75f Merge: c52b86fbe 7712004e1 Author: Karel Zak Date: Mon Feb 19 10:20:42 2024 +0100 Merge branch 'patch-2' of https://github.com/ThomasKaiser/util-linux * 'patch-2' of https://github.com/ThomasKaiser/util-linux: Add Microsoft as vendor and Cobalt 100 core commit c52b86fbea4625e9bb4bbfc7d68f772fb4fe5d05 Merge: 1912db69f 13d2fd8f2 Author: Karel Zak Date: Mon Feb 19 10:13:59 2024 +0100 Merge branch 'meson/lslogins' of https://github.com/t-8ch/util-linux * 'meson/lslogins' of https://github.com/t-8ch/util-linux: meson: fix build of lslogins with -Dbuild-liblastlog2=disabled commit 1912db69f35271c7e15fb6631a9772732ff2fc65 Merge: 0f749c8fd e49de00f4 Author: Karel Zak Date: Mon Feb 19 10:13:42 2024 +0100 Merge branch 'fix-luks-offset' of https://github.com/mbroz/util-linux * 'fix-luks-offset' of https://github.com/mbroz/util-linux: libblkid: Check offset in LUKS2 header commit 0f749c8fde9462350c6194a7689a79aecc337477 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 Documentation/howto-pull-request.txt | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) commit 7712004e1306fdd0f6931ac110f5238fd3bf86f5 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/ sys-utils/lscpu-arm.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 59993a27826cdf4891962caf2db3bd94288f6ee9 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 . misc-utils/namei.1.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 13d2fd8f206c550c967fc37e937fcbd1801e506b Author: Thomas Weißschuh Date: Sat Feb 17 09:54:56 2024 +0100 meson: fix build of lslogins with -Dbuild-liblastlog2=disabled Signed-off-by: Thomas Weißschuh meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e49de00f4a22f91ec5af08d97e30a198cd64e00d 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 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 9cb7b7671d903573d6c3b9d8112ec13953cdcdc6 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 disk-utils/fsck.8.adoc | 5 +++++ sys-utils/fstab.5.adoc | 2 ++ 2 files changed, 7 insertions(+) commit c369f48df4ed9378538872dc8ee8233029fd97a4 Merge: a84f9f204 1a0ce945a Author: Karel Zak Date: Thu Feb 15 10:10:42 2024 +0100 Merge branch 'PR/dmesg-fixes' of github.com:karelzak/util-linux-work * 'PR/dmesg-fixes' of github.com:karelzak/util-linux-work: tests: update dmesg deltas dmesg: fix delta calculation dmesg: don't affect delta by --since commit a84f9f204ea47238e0905d62d09c69ef8ae6cda1 Merge: 39c312575 9b1512260 Author: Karel Zak Date: Thu Feb 15 10:10:08 2024 +0100 Merge branch 'PR/meson-lastlog2' of github.com:karelzak/util-linux-work * 'PR/meson-lastlog2' of github.com:karelzak/util-linux-work: meson: install lastlog2.h library header file commit 39c31257598fc74b16e2c899a7da7b1a03c66e0e Merge: 6cdab80fe e8b6e4ea9 Author: Karel Zak Date: Wed Feb 14 14:46:26 2024 +0100 Merge branch 'lslogins-lastlog2' of https://github.com/schubi2/util-linux * 'lslogins-lastlog2' of https://github.com/schubi2/util-linux: added build option login-lastlogin added sqlite3 to packit added sqlite3 to debian build fixed time unifiy test output cleanup tests cleanup tests fixed time-stamp creating lastlog2 database in the tests check test output cleanup; Added testcase for lslogins and lastlog2 DB lslogins: Add support for lastlog2 commit 9b1512260e1387652d446e099b061a8b3c3ba871 Author: Karel Zak Date: Wed Feb 14 09:31:34 2024 +0100 meson: install lastlog2.h library header file Signed-off-by: Karel Zak liblastlog2/meson.build | 2 ++ 1 file changed, 2 insertions(+) commit 6cdab80fe56b8cccb4961fc548b0b76edc48ffce Merge: c19ae2094 0754479d6 Author: Karel Zak Date: Tue Feb 13 20:08:58 2024 +0100 Merge branch 'as-safe-maybe_final' of https://github.com/crrodriguez/util-linux * 'as-safe-maybe_final' of https://github.com/crrodriguez/util-linux: Save and restore errno on signal handlers commit c19ae2094e865f1a153e25b865315bd68edf075b 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 libmount/src/context_mount.c | 6 +----- sys-utils/mount.8.adoc | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) commit 1a0ce945ae3dc3394a96ad2731c4f28829c7c9d4 Author: Karel Zak Date: Tue Feb 13 19:09:38 2024 +0100 tests: update dmesg deltas See commit a355f2b78a8c486f7721371d9010f4f1bafcee00. Signed-off-by: Karel Zak tests/expected/dmesg/cid-kmsg-delta | 110 ++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 55 deletions(-) commit a355f2b78a8c486f7721371d9010f4f1bafcee00 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 sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 68d4b8f02adba9b53f563095d6abe99146d4d8ad 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 sys-utils/dmesg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 0754479d6a3d843cd96bfe8185b601f02d444300 Author: Cristian Rodríguez Date: Sun Feb 11 15:53:30 2024 -0300 Save and restore errno on signal handlers "Fetching and setting the value of errno is async-signal-safe provided that the signal handler saves errno on entry and restores its value before returning." save and restore errno on cases where it is needed. include/c.h | 9 +++++++++ lib/pager.c | 1 + misc-utils/hardlink.c | 1 + text-utils/pg.c | 1 + 4 files changed, 12 insertions(+) commit 26e778a790fb016f639af5919d08f9affa677f23 Merge: 004b614db 186088210 Author: Karel Zak Date: Mon Feb 12 12:53:20 2024 +0100 Merge branch 'minor-improvement' of https://github.com/calestyo/util-linux * 'minor-improvement' of https://github.com/calestyo/util-linux: blkdev.h: update location of SCSI device types commit 004b614db2bfa4f361f3411a106bf4fb7b1be47a Author: Karel Zak Date: Thu Feb 8 12:42:51 2024 +0100 fsck: warn if fsck. not found and device is specified The fsck(8) command prints an error for certain 'required' filesystems, such as extN, if the corresponding fsck. helper is not found. However, for other filesystems, it silently ignores the device. While this behavior is acceptable for the -A option, if a user explicitly specifies the device on the command line, it is probably a good idea to be more verbose and issue a warning that the device will be ignored. The warning is enabled only for interactive mode (only one device specified or -s). Note that some filesystems do not have an fsck utility, so caution is needed when issuing such warnings to prevent the generation of a large number of unwanted entries in system logs, etc." Reported-by: наб Signed-off-by: Karel Zak disk-utils/fsck.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) commit 6489931434743168c1f3949098dde350099e75ad Merge: 1667912a8 974e1c40e Author: Karel Zak Date: Mon Feb 12 12:49:29 2024 +0100 Merge branch 'nopython' of https://github.com/Vogtinator/util-linux * 'nopython' of https://github.com/Vogtinator/util-linux: meson: Only build libmount python module if python was found commit 1667912a8998f8507cfed51d917dc999ce2d757a Merge: de01a3b01 7c0802869 Author: Karel Zak Date: Mon Feb 12 12:49:11 2024 +0100 Merge branch 'lastlog2' of https://github.com/Vogtinator/util-linux * 'lastlog2' of https://github.com/Vogtinator/util-linux: lastlog2: Fix various issues with meson commit de01a3b01b097b1706f870c8afb18380fa849cb3 Merge: dca5b4e0d c12f8998e Author: Karel Zak Date: Mon Feb 12 12:48:52 2024 +0100 Merge branch 'more-meson' of https://github.com/keszybz/util-linux * 'more-meson' of https://github.com/keszybz/util-linux: meson: fix mismatch with handling of lib_dl dependency meson: add forgotten files to lists meson: fix disablement check commit dca5b4e0da59cd781e946769ac4ce6a3fb9008c4 Merge: ed4d3e26a 8c25fc4b0 Author: Karel Zak Date: Mon Feb 12 12:48:13 2024 +0100 Merge branch 'column-handle-ansi-escapes' of https://github.com/juarezr/util-linux * 'column-handle-ansi-escapes' of https://github.com/juarezr/util-linux: column: add doc comment explaining ansi code detection column: fix regression tests complaint column: add test for ansi escapes column: fix unaligned cols in text with ansi escapes commit 1860882109b8aaefcf387c96324646cf457bb170 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 include/blkdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 974e1c40e93f7fc916a8211330a1afef2ad7927e 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. libmount/python/meson.build | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) commit 7c08028697c3f78dbfba288e3ba3b076b994ec66 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 meson.build | 1 + pam_lastlog2/meson.build | 10 +--------- 2 files changed, 2 insertions(+), 9 deletions(-) commit ed4d3e26a5fbe790107e3064e51dc34484b3656f 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 libmount/src/tab_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8c25fc4b0933e4f51fba4c97a12a4d3caef8dfe1 Author: Juarez Rudsatz Date: Mon Feb 5 15:59:15 2024 -0300 column: add doc comment explaining ansi code detection text-utils/column.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 55cc02c9350feac054f27d18ddde5135308a4944 Author: Juarez Rudsatz Date: Mon Feb 5 11:49:27 2024 -0300 column: fix regression tests complaint text-utils/column.c | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) commit 9f72fd46dbb370269852aaecd3198ef64d9f4883 Author: Juarez Rudsatz Date: Sun Feb 4 22:33:35 2024 -0300 column: add test for ansi escapes tests/expected/column/ansiescape | 3 +++ tests/ts/column/ansiescape | 30 ++++++++++++++++++++++++++++++ tests/ts/column/files/ansiescape | 6 ++++++ 3 files changed, 39 insertions(+) commit e76a9a284e0338e195a72f59ba259a3c21e97240 Author: Juarez Rudsatz Date: Sun Feb 4 22:32:41 2024 -0300 column: fix unaligned cols in text with ansi escapes text-utils/column.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 4 deletions(-) commit c12f8998e9a2f4d393dfa7f7f88aaea2332a378b 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. libmount/meson.build | 2 +- meson.build | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) commit 669071f6249026b4415c42a9859accc425b36595 Author: Zbigniew Jędrzejewski-Szmek Date: Tue Feb 6 13:18:38 2024 +0100 meson: add forgotten files to lists libsmartcols/meson.build | 2 ++ meson.build | 1 + 2 files changed, 3 insertions(+) commit 765961c32a764052955655838f8a99450876500b 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. meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 129b0d223afd27ce9f63730af737174d0a7159b0 Author: Thomas Weißschuh Date: Fri Feb 2 15:20:57 2024 +0100 setpriv: (tests) add seccomp test Signed-off-by: Thomas Weißschuh tests/expected/setpriv/seccomp | 2 ++ tests/ts/setpriv/seccomp | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) commit acd8c7abb1b4df588a69ff14ab4e15b66f60f2c1 Author: Thomas Weißschuh Date: Fri Feb 2 15:20:40 2024 +0100 setpriv: add support for seccomp filters Signed-off-by: Thomas Weißschuh bash-completion/setpriv | 5 +++++ sys-utils/setpriv.1.adoc | 6 ++++++ sys-utils/setpriv.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) commit e6e606a9808e957b074bcd6fc76a911945596219 Author: Thomas Weißschuh Date: Fri Feb 2 15:00:56 2024 +0100 enosys: add functionality to dump filter Signed-off-by: Thomas Weißschuh bash-completion/enosys | 3 +++ misc-utils/enosys.1.adoc | 5 +++++ misc-utils/enosys.c | 18 +++++++++++++++--- 3 files changed, 23 insertions(+), 3 deletions(-) commit fd1786d372bb76bac426018cef656f136e2d435f Author: Thomas Weißschuh Date: Fri Feb 2 15:28:30 2024 +0100 include: introduce seccomp.h It will be used by setpriv in a future commit. Signed-off-by: Thomas Weißschuh include/Makemodule.am | 1 + include/seccomp.h | 24 ++++++++++++++++++++++++ misc-utils/enosys.c | 15 ++------------- 3 files changed, 27 insertions(+), 13 deletions(-) commit c0207d354ee47fb56acfa64b03b5b559bb301280 Merge: ef1501d8a 61ece2b54 Author: Karel Zak Date: Mon Feb 5 12:07:49 2024 +0100 Merge branch 'lsfd--error' of https://github.com/masatake/util-linux * 'lsfd--error' of https://github.com/masatake/util-linux: tests: (lsfd) add a case testing ERROR type appeared in TYPE column tests: (test_mkfds::mmap) new factory lsfd: add --_drop-prvilege option for testing purpose lsfd: add ERROR as a new type lsfd: (refactor) make the steps for new_file consistent lsfd: (refactor) add abst_class as super class of file_class lsfd: (refactor) simplify the step to make a file struct lsfd: (refactor) simplify the step to copy a file struct if the result of its stat is reusable lsfd: (refactor) flatten bit fields in struct file lsfd: fix typos of a function name commit 61ece2b54bb512b85a6119716b34cbe8038ab69e Author: Masatake YAMATO Date: Wed Jan 24 08:57:06 2024 +0900 tests: (lsfd) add a case testing ERROR type appeared in TYPE column Signed-off-by: Masatake YAMATO tests/expected/lsfd/error-eaccess | 2 + tests/expected/lsfd/error-eperm | 2 + tests/ts/lsfd/error-eaccess | 44 ++++++++++++++++++++++ tests/ts/lsfd/error-eperm | 77 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 125 insertions(+) commit 4436e79547986529c3ac34151399df9d1448308e Author: Masatake YAMATO Date: Tue Jan 30 01:02:07 2024 +0900 tests: (test_mkfds::mmap) new factory Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) commit bd38c759ea0c42071859c0454aa3f5822f953438 Author: Masatake YAMATO Date: Wed Jan 24 05:20:49 2024 +0900 lsfd: add --_drop-prvilege option for testing purpose Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 7 +++++++ 1 file changed, 7 insertions(+) commit a125e2eea7cea4d0bac1404c2e1b1d65d11cc10c Author: Masatake YAMATO Date: Tue Jan 16 04:18:38 2024 +0900 lsfd: add ERROR as a new type lsfd ignored file descriptors with that readlink(2) or stat(2) returned errors. With ERORR type, lsfd can print these file descriptors with incomplete information. An example output: COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME systemd 10677 yamato 31 ????-- ERROR readlink:EACCES slirp4netns 901147 yamato 7 ????-- ERROR stat:EACCES /home/yamato/.local/share/.../merged The format of SOURCE column is SYSCALL:ERRNO. The code for printing errno name is highly based on the code for printing syscall name in enosys.c. Signed-off-by: Masatake YAMATO .gitignore | 1 + meson.build | 8 +++- misc-utils/Makemodule.am | 10 +++++ misc-utils/lsfd-file.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/lsfd.1.adoc | 5 +++ misc-utils/lsfd.c | 71 ++++++++++++++++++++++++++++------- misc-utils/lsfd.h | 14 +++++-- tools/Makemodule.am | 1 + tools/all_errnos | 17 +++++++++ 9 files changed, 207 insertions(+), 18 deletions(-) commit 80c8fcfd5185272ab396c464c7fb1ead7d2c4d11 Author: Masatake YAMATO Date: Tue Jan 16 02:50:23 2024 +0900 lsfd: (refactor) make the steps for new_file consistent In parse_maps_line of the original code, we called readlink after stat for gathering arguments that were passed to new_file(). The order was different from that in collect_file_symlink. In parse_maps_line, we called stat after readlink. The difference of the order may make the way of handling errors of readlink and stat complicated. Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 28bce81a9a757f7d57f1900894f9c14f8ca3308c Author: Masatake YAMATO Date: Mon Jan 15 07:18:58 2024 +0900 lsfd: (refactor) add abst_class as super class of file_class Signed-off-by: Masatake YAMATO misc-utils/lsfd-file.c | 272 +++++++++++++++++++++++++++++-------------------- misc-utils/lsfd.c | 1 + misc-utils/lsfd.h | 2 +- 3 files changed, 165 insertions(+), 110 deletions(-) commit 51b8adcee2623cc71a3b2e845a84f2ec765fcee7 Author: Masatake YAMATO Date: Mon Jan 15 06:40:37 2024 +0900 lsfd: (refactor) simplify the step to make a file struct Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) commit 82a688d0fc20b44be6b76d624b57ddc1fccf5415 Author: Masatake YAMATO Date: Mon Jan 15 06:26:07 2024 +0900 lsfd: (refactor) simplify the step to copy a file struct if the result of its stat is reusable Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) commit 2fe173cbe715856e29e4a9b218305a2c81658c1c Author: Masatake YAMATO Date: Sun Jan 14 09:37:37 2024 +0900 lsfd: (refactor) flatten bit fields in struct file Signed-off-by: Masatake YAMATO misc-utils/lsfd-file.c | 8 ++++---- misc-utils/lsfd.h | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) commit d7afda83155a0ff6ae96f50b6362e42f8bce101a Author: Masatake YAMATO Date: Mon Jan 15 06:19:50 2024 +0900 lsfd: fix typos of a function name Signed-off-by: Masatake YAMATO misc-utils/lsfd-sock-xinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit e8b6e4ea9ccfb2ce29ba85704c0f1ee7a8085826 Author: Stefan Schubert Date: Fri Feb 2 18:46:40 2024 +0100 added build option login-lastlogin configure.ac | 10 ++++++++++ login-utils/login.c | 4 ++++ meson.build | 4 ++++ meson_options.txt | 3 +++ 4 files changed, 21 insertions(+) commit 3c1584b97457e4632e12497d1584d935f411ac29 Author: Stefan Schubert Date: Wed Jan 31 13:55:51 2024 +0100 added sqlite3 to packit .packit.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ab01b3428155b28c69b3fb5ad0cb79c1d94d461c Author: Stefan Schubert Date: Wed Jan 31 12:17:52 2024 +0100 added sqlite3 to debian build .github/workflows/cibuild-setup-ubuntu.sh | 1 + 1 file changed, 1 insertion(+) commit a68e58e56ca51caa1d15565ffe3b07dad1f7b636 Author: Stefan Schubert Date: Wed Jan 31 02:26:06 2024 -0800 fixed time tests/expected/lslogins/checkuser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b3fdf52f2be18ba155368392a35a1093d01449a7 Author: Stefan Schubert Date: Wed Jan 31 10:49:37 2024 +0100 unifiy test output tests/expected/lslogins/checkuser | 9 ++------- tests/ts/lslogins/checkuser | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) commit b3cf355aa275b767e0fc2f2b32cf728f28180033 Author: Stefan Schubert Date: Wed Jan 31 10:07:39 2024 +0100 cleanup tests tests/expected/lslogins/checkuser | 7 +++++++ 1 file changed, 7 insertions(+) commit 4a6120c289158bb5c7077a1a530b5c9771abd6d9 Author: Stefan Schubert Date: Wed Jan 31 10:06:28 2024 +0100 cleanup tests tests/ts/lslogins/checkuser | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) commit c8c8be7f7175b78dfb1c13951a7462141188a94c Author: Stefan Schubert Date: Tue Jan 30 18:43:12 2024 +0100 fixed time-stamp tests/ts/lslogins/checkuser | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit a46d1739cdf9569b02ec76bef71aa462fc2cfd4d Author: Stefan Schubert Date: Tue Jan 30 18:04:58 2024 +0100 creating lastlog2 database in the tests login-utils/lslogins.c | 10 +++++++++- tests/ts/lslogins/checkuser | 40 ++++++++++++++++++++++++---------------- tests/ts/lslogins/create_db.sql | 9 +++++++++ tests/ts/lslogins/lastlog2.db | Bin 12288 -> 0 bytes 4 files changed, 42 insertions(+), 17 deletions(-) commit 412fc17d814c926368fdca9f1e92f534b45b97a1 Author: Stefan Schubert Date: Tue Jan 30 15:49:24 2024 +0100 check test output tests/ts/lslogins/checkuser | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 919a325cc1931a0331b9833e5808c1228d9645a8 Author: Stefan Schubert Date: Tue Jan 30 14:11:00 2024 +0100 cleanup; Added testcase for lslogins and lastlog2 DB login-utils/Makemodule.am | 2 +- login-utils/lslogins.c | 16 ++++++++-------- tests/commands.sh | 1 + tests/ts/lslogins/checkuser | 31 +++++++++++++++++++++++++++++++ tests/ts/lslogins/lastlog2.db | Bin 0 -> 12288 bytes 5 files changed, 41 insertions(+), 9 deletions(-) commit bf7f26be8db9207149cff414f86b37f8f615a77a Author: Stefan Schubert Date: Thu Jan 25 18:12:53 2024 +0100 lslogins: Add support for lastlog2 login-utils/Makemodule.am | 4 +++ login-utils/lslogins.c | 91 ++++++++++++++++++++++++++++++++++++++++++++--- meson.build | 1 + 3 files changed, 92 insertions(+), 4 deletions(-)