Changes between v2.38 and v2.38.1 -------------------------------------------- commit 54a4d5c3ec33f2f743309ec883b9854818a25e31 Author: Karel Zak Date: Thu Aug 4 11:06:21 2022 +0200 build-sys: release++ (v2.38.1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit e51a82836a47723669bf046e24c51d5eb051c15f Author: Karel Zak Date: Thu Aug 4 11:04:46 2022 +0200 docs: update v2.38.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.38.1-ReleaseNotes | 109 ++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) commit aaef476e19be37ded90c27b9e79b70ebb6cb8dcf Author: Karel Zak Date: Thu Aug 4 11:01:38 2022 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) commit 1c88ab7e47724fd355a638c9a293389aca0e9245 Author: Karel Zak Date: Thu Aug 4 10:48:55 2022 +0200 po-man: merge changes Signed-off-by: Karel Zak po-man/de.po | 317 +- po-man/es.po | 345 +- po-man/fr.po | 43523 ++++++++++++++++++++++++++++++++++++-------- po-man/pt_BR.po | 275 +- po-man/sr.po | 326 +- po-man/uk.po | 19673 ++++++++++++++++---- po-man/util-linux-man.pot | 146 +- 7 files changed, 52060 insertions(+), 12545 deletions(-) commit 047eb14630a001db00b80107b5af3a837aadf42f Author: Karel Zak Date: Thu Aug 4 10:47:47 2022 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 967 +++++++++++++++++++++++---------------------- po/cs.po | 976 +++++++++++++++++++++++---------------------- po/da.po | 971 +++++++++++++++++++++++---------------------- po/de.po | 1134 ++++++++++++++++++++++++++-------------------------- po/es.po | 976 +++++++++++++++++++++++---------------------- po/et.po | 967 +++++++++++++++++++++++---------------------- po/eu.po | 967 +++++++++++++++++++++++---------------------- po/fi.po | 971 +++++++++++++++++++++++---------------------- po/fr.po | 976 +++++++++++++++++++++++---------------------- po/gl.po | 967 +++++++++++++++++++++++---------------------- po/hr.po | 1134 ++++++++++++++++++++++++++-------------------------- po/hu.po | 967 +++++++++++++++++++++++---------------------- po/id.po | 967 +++++++++++++++++++++++---------------------- po/it.po | 969 +++++++++++++++++++++++---------------------- po/ja.po | 1138 +++++++++++++++++++++++++++-------------------------- po/nl.po | 971 +++++++++++++++++++++++---------------------- po/pl.po | 976 +++++++++++++++++++++++---------------------- po/pt.po | 976 +++++++++++++++++++++++---------------------- po/pt_BR.po | 976 +++++++++++++++++++++++---------------------- po/ru.po | 971 +++++++++++++++++++++++---------------------- po/sl.po | 967 +++++++++++++++++++++++---------------------- po/sv.po | 980 ++++++++++++++++++++++----------------------- po/tr.po | 972 +++++++++++++++++++++++---------------------- po/uk.po | 1134 ++++++++++++++++++++++++++-------------------------- po/util-linux.pot | 974 ++++++++++++++++++++++----------------------- po/vi.po | 971 +++++++++++++++++++++++---------------------- po/zh_CN.po | 980 ++++++++++++++++++++++----------------------- po/zh_TW.po | 977 ++++++++++++++++++++++----------------------- 28 files changed, 14131 insertions(+), 13741 deletions(-) commit eae29433bd331bb7299d401ef5ba02a0afaad72a Author: Yuri Chornoivan Date: Thu Aug 4 10:44:57 2022 +0200 po-man: update uk.po (from translationproject.org) po-man/uk.po | 17422 +++++++++++++++++---------------------------------------- 1 file changed, 5241 insertions(+), 12181 deletions(-) commit 2eb9c174c1669465d625d57e2a62d7bbc5687b1b Author: Frédéric Marchal Date: Thu Aug 4 10:44:57 2022 +0200 po-man: update fr.po (from translationproject.org) po-man/fr.po | 43412 +++++++++++---------------------------------------------- 1 file changed, 7976 insertions(+), 35436 deletions(-) commit 319261d211555c651b9f7de6ea5c49af58d0ba7d Author: Yuri Chornoivan Date: Thu Aug 4 10:43:31 2022 +0200 po: update uk.po (from translationproject.org) po/uk.po | 174 ++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 83 insertions(+), 91 deletions(-) commit 3ea8ed14e4d84b7c94aa2c702b4ed4ca5c637a96 Author: Takeshi Hamasaki Date: Thu Aug 4 10:43:31 2022 +0200 po: update ja.po (from translationproject.org) po/ja.po | 2999 ++++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 2141 insertions(+), 858 deletions(-) commit 7d13aed31fea88fd19d8255cb94c59e3f82a30c8 Author: Božidar Putanec Date: Thu Aug 4 10:43:30 2022 +0200 po: update hr.po (from translationproject.org) po/hr.po | 176 ++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 84 insertions(+), 92 deletions(-) commit 3d60bfd1e4c3e01c515826cdc53dc92a3bf4e1c6 Author: Mario Blättermann Date: Thu Aug 4 10:43:30 2022 +0200 po: update de.po (from translationproject.org) po/de.po | 176 ++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 84 insertions(+), 92 deletions(-) commit ac1f3857366ae2273a428f05a7c4a0ad7816509c Author: Karel Zak Date: Thu Aug 4 10:13:49 2022 +0200 column: fix greedy mode on -l In the 'greedy' mode strtok() skips leading white chars, but code for -l (merge remaining data to the last column) do not count the skipped chars. Old version: $ printf ' a b c\n1 2 3\n' | column -t -o '-' -l2 a-a 1-2 3 Fixed version: $ printf ' a b c\n1 2 3\n' | column -t -o '-' -l2 a-b c 1-2 3 Note, see leading white chars ' a b c'. Fexes: https://github.com/util-linux/util-linux/issues/1763 Signed-off-by: Karel Zak text-utils/column.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) commit 0763e8dd609b5061f04f2d7d592d0374e3d10688 Author: Karel Zak Date: Thu Aug 4 10:10:19 2022 +0200 column: fix buffer overflow when -l specified $ printf 'a b c\n1 2 3\n' | column -s : -t -o '-' -l2 a b c-ġ 1 2 3- Signed-off-by: Karel Zak text-utils/column.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit 16ca7d6a0c3d03ecc39cf1e8835f94ff4f026e85 Author: Masatake YAMATO Date: Thu Jul 28 12:56:52 2022 +0900 lsfd: fix crash triggered by an empty filter expression $ lsfd -Q '' or $ lsfd --filter '' made lsfd process crash. Signed-off-by: Masatake YAMATO misc-utils/lsfd-filter.c | 8 ++++++- tests/expected/lsfd/option-filter-broken-exp | 7 ++++++ tests/ts/lsfd/option-filter-broken-exp | 36 ++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) commit 789450d42d4d94fb5b8e40b5aad63d065e40d5fd Author: Karel Zak Date: Tue Aug 2 10:55:16 2022 +0200 switch_root: (man) fix return code description Fixes: https://github.com/util-linux/util-linux/issues/1761 Signed-off-by: Karel Zak sys-utils/switch_root.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f89f673b1431a7dc89cb7e154fdcf73e065432d3 Author: Karel Zak Date: Wed Jul 20 18:07:08 2022 +0200 irqtop: remove unused variable Signed-off-by: Karel Zak sys-utils/irq-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ba154e68c5448a42496baeb2d595d8dc4b990a6c Author: Karel Zak Date: Mon Jun 6 16:14:14 2022 +0200 lib/logindefs: fix compiler warning [-Werror=format-truncation=] Signed-off-by: Karel Zak login-utils/logindefs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit f5810542c24325d477abf5d1b2d231f0ddd1299d Author: Karel Zak Date: Mon Jun 6 16:14:30 2022 +0200 irqtop: fix compiler warning [-Werror=format-truncation=] Signed-off-by: Karel Zak sys-utils/irq-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0107263d84771bb8022041cc8730685e3cfecff4 Author: Karel Zak Date: Wed Jul 20 16:55:02 2022 +0200 sulogin: fix includes * support --enable-sulogin-emergency-mount on Linux only * don't include unnecessary linux/magic.h * don't include linux/fs.h, sys/mount.h should be enough, otherwise define a fallback for MS_RELATIME Reported-by: Andreas Schwab Signed-off-by: Karel Zak configure.ac | 2 ++ login-utils/sulogin-consoles.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) commit 6a4071b5d63055429dfc2c92cd3d0e3ab2ff21d1 Author: Karel Zak Date: Wed Jul 20 15:23:01 2022 +0200 lib/fileutils: fix compiler warning lib/fileutils.c: In function ‘dup_fd_cloexec’: lib/fileutils.c:75:35: warning: unused parameter ‘lowfd’ [-Wunused-parameter] int dup_fd_cloexec(int oldfd, int lowfd) ^ Addresses: https://github.com/util-linux/util-linux/issues/1755 Signed-off-by: Karel Zak lib/fileutils.c | 4 ++++ 1 file changed, 4 insertions(+) commit 96a05122f0be2d5ea07649171337e2c711ae8b93 Author: Andrew Price Date: Fri Jul 15 15:55:13 2022 +0100 libuuid: (man) uuid_copy() -- add missing parenthesis Signed-off-by: Andrew Price libuuid/man/uuid_copy.3.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1f27183e9a377b1f3f78290791bf324be2969090 Author: Sol Boucher Date: Fri Jul 8 12:09:13 2022 -0400 unshare: Fix "you (user xxxx) don't exist" error when uid differs from primary gid This problem affected the --map-auto and --map-groups=auto command-line switches. The root cause is that /etc/subgid is indexed by user or uid, not by group or gid; therefore, we should be using the effective uid to find entries in this file, just as we do for /etc/subuid. Signed-off-by: Sol Boucher sys-utils/unshare.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 651a21bca1c82d3644c5ea4cc57f1ec7b34acf83 Author: Karel Zak Date: Thu Jul 7 13:41:37 2022 +0200 lscpu: keep bogomips locale output locale sensitive Fixes: https://github.com/util-linux/util-linux/issues/1743 Signed-off-by: Karel Zak sys-utils/lscpu.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit cca14e56373dc1b5069e1eace02665c84e47f264 Author: Karel Zak Date: Mon Jun 27 13:00:55 2022 +0200 libblkid: simplify 'leaf' detection References: https://github.com/util-linux/util-linux/pull/1729 Signed-off-by: Karel Zak libblkid/src/devname.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) commit c158b5512c509ebde760573da6a45f023a4a04ef Author: Masatake YAMATO Date: Sun Jun 26 15:04:36 2022 +0900 lsns: (man) add ip-netns to "SEE ALSO" section Signed-off-by: Masatake YAMATO sys-utils/lsns.8.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 21a3b3324e70687377ea9a5f4aa6db13adb0328a Author: bobbyboy5069 <106821778+bobbyboy5069@users.noreply.github.com> Date: Fri Jun 24 23:02:15 2022 +0300 add padding to dates in issue file Pad the day of the month so the length of the date string doesn't change. term-utils/agetty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 789d6ddf14e1c323e482cefceb6ffb6b48ad6825 Author: Will Jordan Date: Wed Jun 22 15:13:11 2022 -0700 Improve is_dm_leaf performance Read from `/holders` instead of `/slaves` to determine whether the device is a leaf node, eliminating a scan across all block devices in the system. libblkid/src/devname.c | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) commit c4ea22024f8cfaf69b8d7b97e58f14a9b8fc7c34 Author: Karel Zak Date: Mon Jun 20 14:00:38 2022 +0200 hardlink: use info rather than warning message Fixes: https://github.com/util-linux/util-linux/issues/1710 Signed-off-by: Karel Zak misc-utils/hardlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fdf9a68aecabd83c6da649e5b9ab3f529e3ca4a0 Author: Karel Zak Date: Mon Jun 20 13:42:35 2022 +0200 sfdiks: (man) fix example Fixes: https://github.com/util-linux/util-linux/discussions/1719 Signed-off-by: Karel Zak disk-utils/sfdisk.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8ede65ace58accacd3c73f556e6d3986e4fb386b Author: Karel Zak Date: Mon Jun 13 10:34:52 2022 +0200 libblkid: (swap) fix magic string memcmp [fuzzing] Reported-by: Thibault Guittet Signed-off-by: Karel Zak libblkid/src/superblocks/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b334bff4347e8344c8e9f09c6d47dbd88fa69971 Author: David Cantrell Date: Thu Jun 9 19:13:01 2022 +0100 change the default comparison method on Mac OS to suppress a warning that's going to fall back to memcmp misc-utils/hardlink.c | 4 ++++ 1 file changed, 4 insertions(+) commit 4cb82d05bdc5a653d01f9a62af15620d1d3db8ef Author: Karel Zak Date: Tue Jun 7 09:46:54 2022 +0200 lslogins: fix free(): invalid pointer Signed-off-by: Karel Zak login-utils/lslogins.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 6a930189e5a4ca380203f8f49a0b051def5d1630 Author: Karel Zak Date: Tue Jun 7 09:11:56 2022 +0200 lslogins: improve prefixes interpretation It seems that for example 'passwd --lock' uses two exclamation marks in password field. It seems better to assume arbitrary number of '!' and '*' prefixes. The patch also makes description of the PWD-EMPTY output field more explicit. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2093166 Signed-off-by: Karel Zak login-utils/lslogins.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) commit bfa66e103e1e657d003084c42dd2697c017ab974 Author: Karel Zak Date: Mon Jun 6 16:19:16 2022 +0200 zramctl: fix compiler warning [-Werror=maybe-uninitialized] Signed-off-by: Karel Zak sys-utils/zramctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 44e68033806b4484d9d95b57866443ec895cac9d Author: Karel Zak Date: Mon Jun 6 16:15:43 2022 +0200 lsfd: fix compiler warning [-Werror=maybe-uninitialized] Signed-off-by: Karel Zak misc-utils/lsfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 47f315578216d722936016226c1c2224642ba2f2 Author: Karel Zak Date: Fri Jun 3 09:07:09 2022 +0200 uuidd: remove also PrivateNetwork=yes from systemd service Fixes: https://github.com/util-linux/util-linux/issues/1704 References: 304b4dc4936b115ca33af5325c3b04d0997c1353 Signed-off-by: Karel Zak misc-utils/uuidd.service.in | 1 - 1 file changed, 1 deletion(-) commit 886aa679036ed36b926f51cfc16df437ef28c67d Author: Karel Zak Date: Thu Jun 2 16:55:49 2022 +0200 uuidd: allow AF_INET in systemd service libuuid uses socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) to get MAC address for time based UUIDs, but there is RestrictAddressFamilies=AF_UNIX in uuidd service file ... Fixes: https://github.com/util-linux/util-linux/issues/1704 Signed-off-by: Karel Zak misc-utils/uuidd.service.in | 1 - 1 file changed, 1 deletion(-) commit 70cdbf65fe36ea8c941b95bc23545066e647c709 Author: Karel Zak Date: Thu Jun 2 16:02:54 2022 +0200 libblkid: (hfs) fix make sure buffer is large enough Signed-off-by: Karel Zak libblkid/src/superblocks/ntfs.c | 3 +++ 1 file changed, 3 insertions(+) commit ea4eb902812de248249b27599ef0678492d29128 Author: Karel Zak Date: Thu Jun 2 16:02:54 2022 +0200 libblkid: (hfs) fix label use [fuzzing] Reported-by: Thibault Guittet Signed-off-by: Karel Zak libblkid/src/superblocks/hfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit e97a4a7d0e4de023f24103c3a4a6847184150bcd Author: Karel Zak Date: Thu Jun 2 16:02:54 2022 +0200 libblkid: (bsd) fix buffer pointer use [fuzzing] Reported-by: Thibault Guittet Signed-off-by: Karel Zak libblkid/src/partitions/bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c372e1bedc0a7aba422c0a299ca32dff8156ab3c Author: Karel Zak Date: Thu Jun 2 16:02:54 2022 +0200 libblkid: (mac) make sure block size is large enough [fuzzing] Reported-by: Thibault Guittet Signed-off-by: Karel Zak libblkid/src/partitions/mac.c | 2 ++ 1 file changed, 2 insertions(+) commit f1692632bab8bc2033c0cd9d0aae5c22a5f19a07 Author: Karel Zak Date: Thu Jun 2 16:02:54 2022 +0200 libblkid: (probe) fix size and offset overflows [fuzzing] Reported-by: Thibault Guittet Signed-off-by: Karel Zak libblkid/src/probe.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) commit 68e6c894c6ff1efadb298c1a06a8f2ac393146c9 Author: Andrey Albershteyn Date: Fri May 27 12:56:27 2022 +0200 libblkid: update documentation of BLOCK_SIZE tag The name BLOCK_SIZE is unfortunate. This tag doesn't represent commonly used file system block size but minimal block size accessible by file system (sector size). Signed-off-by: Andrey Albershteyn libblkid/src/superblocks/superblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2e5262f5051e51e712ee96b0d0a2900db3732620 Author: Hideki EIRAKU Date: Wed May 25 12:23:16 2022 +0900 loopdev: set block_size when using LOOP_CONFIGURE LOOP_CONFIGURE ioctl was introduced by commit d5fd456c88aba4fcf77d35fe38024a8d5c814686. Since the previous implementation set partscan flag but did not set block_size with the LOOP_CONFIGURE ioctl, an issue fixed by commit 422f0e9f206a145c59a71333dad20d38cbbfc0c4 was reappeared. Setting block_size in the LOOP_CONFIGURE ioctl parameter fixes the issue. Signed-off-by: Hideki EIRAKU Signed-off-by: Karel Zak lib/loopdev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) commit 3df6c8c1191f8efa0fd54802a90290cb639c25b7 Author: csbo98 Date: Sun May 22 14:47:13 2022 +0800 taskset: fix use of err_affinity() Maybe there is a little mistake in do_taskset() function in taskset.c. In the first call of sched_getaffinity(), if the call is failed we should use err_affinity(ts->pid, 0) other than err_affinity(ts->pid, 1). Signed-off-by: Karel Zak schedutils/taskset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9dbc073e4c58a56f68da8209df19789131446f5e Author: Scott Shambarger Date: Thu May 12 16:27:26 2022 -0700 fstrim: Remove all skipped entries before de-duplication When processing fstab entries, de-duplication is performed based on the source before all tests on the target have been checked, resulting in some entries being skipped when a removed duplicate with a different target would not have been. The fix is to move all the target checks before the source de-duplication. Addresses: #1686 Signed-off-by: Scott Shambarger sys-utils/fstrim.c | 53 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 23 deletions(-) commit 3530f10dbb45e6fd7662989c7dd72023de3dfa60 Author: Alberto Ruiz Date: Thu May 12 23:35:21 2022 +0200 losetup: Fix typo for the --sector-size docs sys-utils/losetup.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ec7fa47cadb994a7c06df12825bf58334cd64b00 Author: Rosen Penev Date: Mon May 2 17:53:07 2022 -0700 fix time_t format Use musl's define to test for 64-bit time_t. Signed-off-by: Rosen Penev sys-utils/unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit aecc151d6537f90cc6a337e683860425a477f185 Author: Rosen Penev Date: Mon May 2 17:43:32 2022 -0700 fix various formats Found with -Wformat. Signed-off-by: Rosen Penev disk-utils/sfdisk.c | 8 ++++---- lib/fileeq.c | 3 ++- libblkid/src/probe.c | 2 +- misc-utils/hardlink.c | 2 +- term-utils/script.c | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) commit 1fa66a6ceae564d9ba05188cafd88178633cd301 Author: FeRD (Frank Dana) Date: Mon May 9 17:17:57 2022 -0400 hardlink: Fix man page docs for '-v/--verbose' Signed-off-by: FeRD (Frank Dana) misc-utils/hardlink.1.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 603aafb3dbc38ed2dcde5babac20be174890e8a3 Author: FeRD (Frank Dana) Date: Mon May 9 07:31:13 2022 -0400 hardlink: Move -c option in --help The new placement mirrors its position in the manpage, and keeps it grouped with the individual flags for which it acts as a shorthand. Signed-off-by: FeRD (Frank Dana) misc-utils/hardlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7fc579fc346ba8c0cb4582c77801650adbea982a Author: FeRD (Frank Dana) Date: Mon May 9 07:20:26 2022 -0400 hardlink: Document '-c' option in manpage Signed-off-by: FeRD (Frank Dana) misc-utils/hardlink.1.adoc | 3 +++ 1 file changed, 3 insertions(+) commit cfc1b128431386a6608e34080c668b838d53ca2f Author: Narthorn Date: Sat May 7 07:43:02 2022 +0200 fstrim: check for ENOSYS when using --quiet-unsupported Some filesystems like bindfs report ENOSYS (Function not implemented) for the trim ioctl, which should be caught by --quiet-unsupported. sys-utils/fstrim.c | 1 + 1 file changed, 1 insertion(+) commit b7f69167aeb45ae6f0deaab8d9a0b97d165d4dbb Author: Karel Zak Date: Wed May 4 12:13:08 2022 +0200 libmount: fix and improve utab update on MS_MOVE * avoid double '//' * don't update /fooxxx when /foo update requested (make sure that startswith() returns path terminated by '/') * canonicalize only once the new path -- all in utab/mtab is already canonicalized, so after MS_MOVE we need to care about the new path only * use asprintf() rather than strcpy() and strcat(), don't compose a new path from prefix and subdir when replace entire path Addresses: https://github.com/util-linux/util-linux/pull/1660 Signed-off-by: Karel Zak libmount/src/tab_update.c | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) commit 0d600d3cc1fcc89306aa491c723e3e716585ced3 Author: Karel Zak Date: Mon May 2 15:30:26 2022 +0200 logger: make sure structured data are escaped For the option --sd-param all formatting chars (" \ and ]) has to be escaped by \. This patch also allow escape [ to make it more user friendly. For example $ logger --rfc5424 --sd-id zoo@123 --sd-param 'foo="b\"A\"r"' --no-act --stderr "this is message" <13>1 2022-05-02T15:35:00.342141+02:00 ws.net.home kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="45291"][zoo@123 foo="b\"A\"r"] this is message Reported-by: Ulrich Windl Signed-off-by: Karel Zak misc-utils/logger.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) commit b144dfa04eb6322b6cd717beb861c6cd8664e613 Author: Karel Zak Date: Mon May 2 15:07:42 2022 +0200 lib/strutils: add ul_strchr_escaped() Like strchr(), but ignores escaped chars. Signed-off-by: Karel Zak include/strutils.h | 2 ++ lib/strutils.c | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) commit b269ca07383ae93589e36544da414931cdb6e3d7 Author: Karel Zak Date: Mon May 2 12:57:13 2022 +0200 more: avoid infinite loop on --squeeze The command 'echo | more -s' ends in infinite loop if exit-on-EOF is disabled (default now). We need to call more_key_command() to ask for user's reaction. Fixes: https://github.com/util-linux/util-linux/issues/1669 Signed-off-by: Karel Zak text-utils/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b69ba6ed69fabda339f40593745c69e637fb9fce Author: Pali Rohár Date: Sat Apr 30 12:50:46 2022 +0200 libfdisk: (gpt) Add UUID for Marvell Armada 3700 Boot partition This GPT UUID is used by BootROM on Marvell Armada 3700 SoC. BootROM searches for GPT partition with this UUID on attached SATA disk and loads bootloader from it. Marvell Armada 3700 SoC is used e.g. on popular EspressoBIN SBC board which has relatively solid Linux support. Information about SATA booting and this GPT partition is currently documented only in development version of ARM Trusted-Firmware-A documentation: https://trustedfirmware-a.readthedocs.io/en/latest/plat/marvell/armada/build.html It is missing in official documentation for Armada 3720 BootROM and therefore hard to find it. Signed-off-by: Pali Rohár include/pt-gpt-partnames.h | 3 +++ 1 file changed, 3 insertions(+) commit ed16511d0b9000d80b1707811c431d30c0dd3a10 Author: Rosen Penev Date: Fri Apr 29 16:53:43 2022 -0700 meson: fix compilation without systemd systemdsystemunitdir is used elsewhere. Signed-off-by: Rosen Penev meson.build | 1 + 1 file changed, 1 insertion(+) commit e2b9eb743109e07e5f3205cceea7fdc07f8ee315 Author: Warner Losh Date: Fri Apr 29 15:29:44 2022 -0600 BSD: Use byteswap.h and endian.h defined macos when present Newer versions of FreeBSD will have a glibc compatible byteswap.h. Currently, this file assumes that FreeBSD requires bswap{16,32,64} to always be defined. This isn't the case when we're using the byteswap.h file (which is enabled by HAVE_BYTESWAP_H define). Assume that if byteswap.h and endian.h are present, then the proper macros are defined. Otherwise, assume that sys/endian.h is present and paper over the small differences between the BSDs for this file. Signed-off-by: Warner Losh include/bitops.h | 7 +++++++ 1 file changed, 7 insertions(+) commit 781617b5c6243acb46ce07a77ee53b5d01a7a2eb Author: Nicolas Caramelli Date: Fri Apr 29 18:16:36 2022 +0200 meson: fix when HAVE_CLOCK_GETTIME is set Signed-off-by: Nicolas Caramelli meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 52a4208f760393cdfcdf4169f5db06ffc1bb2a4c Author: d032747 Date: Fri Apr 22 10:07:46 2022 +0200 libuuid: improve cache handling Short running applications with a few UUID request don't need a large cache. Therefore increment the cache size over runtime. libuuid/src/gen_uuid.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit 3ca84c91a7b71a3b941572793ab5e4f363f78fb5 Author: Karel Zak Date: Fri Apr 29 10:11:49 2022 +0200 lsirq: improve --sort IRQ IRQ column mixes numbers and text, it seems better to use strverscmp() rather than classic strcmp(). Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2078787 Signed-off-by: Karel Zak sys-utils/irq-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e0b219ffd07b570a629f386824e6a8db52bb44f4 Author: Franck Bui Date: Fri Apr 22 11:30:09 2022 +0200 libmount: when moving a mount point, all sub mount entries in utab should also be updated Given that /run/mount/utab stores paths, this file needs to be adjusted when a mount tree is moved. However the moved tree may contains sub mount points in which case their utab entries (if any) need to also be translated. This patch takes care of that. As suggested in https://github.com/systemd/systemd/issues/15266, a better approach might be to store mount IDs instead of paths since mount IDs remain unchanged when mount trees are moved. Fixes: #1659 libmount/src/tab_update.c | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) commit 4f4948c4a5100ca570bd074c959b4ea468ce99cd Author: Karel Zak Date: Thu Apr 21 10:59:28 2022 +0200 tests: report failed tests Signed-off-by: Karel Zak tests/run.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) commit d0f6d31f5c8f494445d27ac58e55be4431fec0d2 Author: Karel Zak Date: Wed Apr 20 14:42:32 2022 +0200 dmesg: fix --since and --until Now --since and --until requires any time field in the output (e.g. --ctime,-T), it means "dmesg --since '1 day ago'" doesn't work, but "dmesg -T --since '1 day ago'" works as expected. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2076829 Signed-off-by: Karel Zak sys-utils/dmesg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 93a2e63fe7c893aa72375a398bd7d98dca83ee31 Author: Chris Hofstaedtler Date: Wed Apr 13 11:11:50 2022 +0000 tests: fdisk/bsd: update expected output for ppc64le Update expected test data after upstream MRs #1385 and #1386. Signed-off-by: Chris Hofstaedtler tests/expected/fdisk/bsd_0_64.LE | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) commit 2f3579bfa16500376617738c2fa58d39ca0a7014 Author: data-man Date: Tue Apr 12 15:29:06 2022 +0500 Don't install uuidd service if systemd isn't present misc-utils/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 65a8977ae59d6463f7a16cc4a27c04ed9f33f60b Author: Anatoly Pugachev Date: Sat Apr 9 12:44:06 2022 +0300 tests: don't compile lsfd/mkfds helper on macos, since it's linux only macos is missing linux only header "sys/prctl.h", so exclude lsfd/mkfds on macos from make 'check-programs' target tests/helpers/Makemodule.am | 2 ++ 1 file changed, 2 insertions(+) commit c41e859b238998453a99a3fbe6f082f081372b86 Author: Anatoly Pugachev Date: Fri Apr 8 17:53:58 2022 +0300 tests: fix misc/setarch run in a docker environment Fixes: #601 tests/ts/misc/setarch | 1 + 1 file changed, 1 insertion(+) commit 76e71d7ccc6957f448b17c0b8cb8aa3bcb38cb73 Author: Anatoly Pugachev Date: Fri Apr 8 15:34:16 2022 +0300 libfdisk: meson.build fix typo libfdisk/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 122c211a6cad3b17294675d292f517ce91739f3d Author: Karel Zak Date: Wed Apr 6 10:38:43 2022 +0200 lsns: improve dependence on NS_GET_ ioctls Fixes: http://autobuild.buildroot.org/results/572ecf8e37ac733a4e4265f4f78f35230337278e Reported-by: Fabrice Fontaine Signed-off-by: Karel Zak sys-utils/lsns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 3d81f25817317e8fae2ce567502ce2b001962b39 Author: Fabrice Fontaine Date: Tue Apr 5 20:04:59 2022 +0200 configure.ac: add lsns option lsns unconditionally uses NS_GET_NSTYPE since version 2.38 and https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=de72df79d72fa906e71e2ac922d8745ff22deee5 which is only available since kernel 4.11 and https://github.com/torvalds/linux/commit/e5ff5ce6e20ee22511398bb31fb912466cf82a36 resulting in the following build failure: sys-utils/lsns.c: In function 'add_namespace_for_nsfd': sys-utils/lsns.c:719:25: error: 'NS_GET_NSTYPE' undeclared (first use in this function) 719 | clone_type = ioctl(fd, NS_GET_NSTYPE); | ^~~~~~~~~~~~~ So add an option to allow the user to disable lsns Fixes: - http://autobuild.buildroot.org/results/572ecf8e37ac733a4e4265f4f78f35230337278e Signed-off-by: Fabrice Fontaine configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit fa24be05492bc4f775c78ed9b0f058428c3778d0 Author: Karel Zak Date: Mon Apr 4 15:59:36 2022 +0200 tests: make libmount tests more portable git tree on macbook: ... warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree: 'tests/expected/libmount/optstr-apply-user-X' 'tests/expected/libmount/optstr-apply-user-x' Let's rename the files. Addresses: https://github.com/util-linux/util-linux/issues/1583 Signed-off-by: Karel Zak .../libmount/{optstr-apply-user-X => optstr-apply-user-large-X} | 0 .../libmount/{optstr-apply-user-x => optstr-apply-user-small-x} | 0 tests/ts/libmount/optstr | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) commit 26fe3fade1fe8d3c277b5a7b536de46bb9bdc944 Author: Masatake YAMATO Date: Mon Mar 7 18:17:25 2022 +0900 lsfd: add static modifier to nodev_table Signed-off-by: Masatake YAMATO misc-utils/lsfd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 0f8b7b9b0ef44f3f9465b78f55d0336ce8acf82f Author: Masatake YAMATO Date: Mon Mar 7 17:10:17 2022 +0900 lsfd: delete __unused__ attribute for an used parameter Signed-off-by: Masatake YAMATO misc-utils/lsfd-fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c08b39dfd0b396f7f9cf64307a54d9b967db0b19 Author: Karel Zak Date: Fri Apr 1 10:03:14 2022 +0200 lsblk: fix JSON output when without --bytes Fixes: https://github.com/util-linux/util-linux/issues/1636 Signed-off-by: Karel Zak misc-utils/lsblk.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 1cd244ad2bbe5432231c6f47d4777095d83c134d Author: Karel Zak Date: Wed Mar 30 10:50:38 2022 +0200 hardlink: require statfs_magic.h only when reflink support enabled Addresses: https://github.com/util-linux/util-linux/issues/1634 Signed-off-by: Karel Zak misc-utils/hardlink.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)