Changes between v2.35.1 and v2.35.2 ------------------------------------ commit 88a1d6f1812ab05fedc75e295368ff6198e63d89 Author: Karel Zak Date: Wed May 20 15:44:20 2020 +0200 build-sys: release++ (v2.35.2) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 113a2e1a2ab67527f21881a63e2c179a41195bc3 Author: Karel Zak Date: Wed May 20 15:43:03 2020 +0200 docs: add v2.35.2-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.35.2-ReleaseNotes | 83 +++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) commit a89a7245478847b6a4041f8c444e149fb1926e13 Author: Karel Zak Date: Wed May 20 15:41:14 2020 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 0beab8a196ef174f1efc88e601706be4193ec424 Author: Karel Zak Date: Wed May 20 15:39:02 2020 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 762 +++++++++++++------------- po/cs.po | 774 +++++++++++++------------- po/da.po | 774 +++++++++++++------------- po/de.po | 776 +++++++++++++------------- po/es.po | 774 +++++++++++++------------- po/et.po | 762 +++++++++++++------------- po/eu.po | 762 +++++++++++++------------- po/fi.po | 764 +++++++++++++------------- po/fr.po | 774 +++++++++++++------------- po/gl.po | 755 +++++++++++++------------- po/hr.po | 1169 ++++++++++++++++++++------------------- po/hu.po | 762 +++++++++++++------------- po/id.po | 762 +++++++++++++------------- po/it.po | 762 +++++++++++++------------- po/ja.po | 762 +++++++++++++------------- po/nl.po | 762 +++++++++++++------------- po/pl.po | 774 +++++++++++++------------- po/pt.po | 774 +++++++++++++------------- po/pt_BR.po | 774 +++++++++++++------------- po/ru.po | 762 +++++++++++++------------- po/sl.po | 762 +++++++++++++------------- po/sv.po | 774 +++++++++++++------------- po/tr.po | 762 +++++++++++++------------- po/uk.po | 774 +++++++++++++------------- po/util-linux.pot | 758 +++++++++++++------------- po/vi.po | 762 +++++++++++++------------- po/zh_CN.po | 1569 ++++++++++++++++++++--------------------------------- po/zh_TW.po | 762 +++++++++++++------------- 28 files changed, 11438 insertions(+), 11225 deletions(-) commit aafc98c2eb2e7ee14b0a3b2c8b25d32152b82005 Author: Boyuan Yang <073plan@gmail.com> Date: Wed May 20 15:31:00 2020 +0200 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 1682 +++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 1005 insertions(+), 677 deletions(-) commit 42be0dacbd5a5a74d980a96442d0c28377996084 Author: Božidar Putanec Date: Wed May 20 15:30:59 2020 +0200 po: update hr.po (from translationproject.org) po/hr.po | 911 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 452 insertions(+), 459 deletions(-) commit 5513157adaeaebe23cb8c060b72090939e133e8d Author: Karel Zak Date: Wed May 20 15:25:31 2020 +0200 lib/strutils: remove redundant include Signed-off-by: Karel Zak lib/strutils.c | 2 -- 1 file changed, 2 deletions(-) commit a9ea0b33837f051ccb3c63ac8a5d850e41b9ce1e Author: Yannick Le Pennec Date: Sun May 17 23:13:22 2020 +0800 docs: Fix dead references to kernel documentation Most date back to reorganisation of the Documentation/ tree in 2016, new paths based on v5.7-rc5: fdisk.8: Documentation/{,admin-guide/}devices.txt eject.c: Documentation/{,userspace-api/}ioctl/cdrom.rst mount.8: Documentation/filesystems/adfs.{txt,rst} rfkill.8: Documentation/{rfkill.txt,driver-api/rfkill.rst} tunelp.8: Documentation/{parport.txt,admin-guide/parport.rst} zramctl.8: Documentation/{blockdev/zram.txt,admin-guide/blockdev/zram.rst} Signed-off-by: Yannick Le Pennec disk-utils/fdisk.8 | 2 +- sys-utils/eject.c | 2 +- sys-utils/mount.8 | 2 +- sys-utils/rfkill.8 | 2 +- sys-utils/tunelp.8 | 2 +- sys-utils/zramctl.8 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) commit 821753983bb4d50610b8380cdc39246b24eee92b Author: Michael Kerrisk Date: Sat May 16 09:45:11 2020 +0200 ipcs.1: ipcs no longer needs read permission on IPC resources With changes starting around util-linux commit 058e81540fbb0d2b78 that switched from using IPC_STAT to parsing /proc/sysvipc/*, ipcs now shows all IPC objects rather than just the objects for which the user has read permission. Update the page to reflect this fact, and also add a NOTES section describing the historical and fallback behavior where /proc is not available. Signed-off-by: Michael Kerrisk sys-utils/ipcs.1 | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) commit 603ec8a40ff5ff3baf2afc02475587d5b3498d1f Author: Gaël PORTAY Date: Fri May 15 08:52:06 2020 -0400 sfdisk: (man) fix typo disk-utils/sfdisk.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit aef845850c91c2aa5abfb510e5e787522b2cc6a0 Author: Johannes Thumshirn Date: Fri May 15 17:41:33 2020 +0900 blkzone: deny destructive ioctls on busy blockdev If a user submits a zone management ioctl from user-space, like a zone reset and a file-system (like zonefs or f2fs) is mounted on the zoned block device, the zone will get reset and the file-system's cached value of the zone's write-pointer becomes invalid. Subsequent writes to this zone from the file-system will result in unaligned writes and the drive will error out. Open the block device file in exclusive mode for submitting these ioctls. If a file-system is mounted the kernel will return -EBUSY and we can't continue issuing the ioctl. [kzak@redhat.com: - remove unnecessary error message] Reported-by: Coly Li Cc: Damien Le Moal Signed-off-by: Johannes Thumshirn Signed-off-by: Karel Zak sys-utils/blkzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 62e978dbf7bec21888f8cb4f881d23389c8f9ed6 Author: Sami Kerola Date: Sat Feb 8 21:12:14 2020 +0000 write: fix potential string overflow Noticed when compiled with gcc verion 9.2.1 20200130. term-utils/write.c:182:7: warning: ‘strcmp’ argument 1 declared attribute ‘nonstring’ [-Wstringop-overflow=] 182 | if (strcmp(u->ut_line, ctl->src_tty_name) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/utmpx.h:31, from term-utils/write.c:60: /usr/include/bits/utmpx.h:59:8: note: argument ‘ut_line’ declared here 59 | char ut_line[__UT_LINESIZE] | ^~~~~~~ Signed-off-by: Sami Kerola term-utils/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1c0b61ab78ad93e84d89f1f169bae19c6319bb76 Author: Karel Zak Date: Tue Feb 25 12:06:06 2020 +0100 libblkid: fix compiler warning [-Wsign-compare] libblkid/src/superblocks/exfat.c: In function ‘probe_exfat’: ./include/c.h:133:17: warning: comparison of distinct pointer types lacks a cast libblkid/src/superblocks/exfat.c:129:5: note: in expansion of macro ‘min’ ./include/c.h:134:8: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] Signed-off-by: Karel Zak libblkid/src/superblocks/exfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 467e1e9ddeb6cd782d360d02f9fa04417e26d4d4 Author: Ritika Srivastava Date: Wed May 13 15:06:10 2020 -0700 lsblk: Ignore hidden devices Lsblk throws the following error for nvmeNcXnY devices. lsblk: nvme1c1n1: unknown device name This is because nvmeNcXnY devices are hidden and do not have the file /sys/block//dev. Following patch was added https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=d51f05bfecb299a830897106460bf395be440c0a Which made lsblk read from /sys/block//device/dev which do exist for nvmeNcXnY devices. After the above patch, the unknown error goes away. However, another error is encountered in the very next step. nvme1c1n1: failed to initialize sysfs handler This is because lsblk looks for /sys/dev/block/242:1 (nvmeNcXnY major:minor) pathname which usually exists for other block devices but not for the nvmeNcXnY devices as they are hidden. Below patch does not even print this error for hidden devices and exits silently. [kzak@redhat.com: - add prefix to make sysfs_devname_is_hidden() usable for /sys dumps - use the function in initialize_device() more early] Signed-off-by: Ritika Srivastava Signed-off-by: Karel Zak include/sysfs.h | 3 +++ lib/sysfs.c | 29 +++++++++++++++++++++++++++++ misc-utils/lsblk.c | 5 +++++ 3 files changed, 37 insertions(+) commit 1beb4d61346f26ab21599d4c1eeb233af8d97aba Author: Karel Zak Date: Tue May 12 09:16:49 2020 +0200 libblkid: fix fstatat() use in blkid__scan_dir() Addresses: https://github.com/karelzak/util-linux/issues/1037 References: http://github.com/karelzak/util-linux/commit/2208b3ccb298be2675cf005b761b1668f8cd576f Signed-off-by: Karel Zak libblkid/src/devno.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit bf9d14c67a5c566f796012ca1bad76d8f897cb0a Author: Anatoly Pugachev Date: Thu May 7 12:17:47 2020 +0300 docs: Correct ChangeLog URL to history log. Debian is using this to make URL with tagged release, and with the old URL it does return an empty page. $ apt info util-linux | grep -i version Version: 2.35.1-2 $ zcat /usr/share/doc/util-linux/changelog.gz See version control history. http://git.kernel.org/?p=utils/util-linux/util-linux.git;a=log;h=2.35.1 ^^ empty page Signed-off-by: Anatoly Pugachev ChangeLog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bb5f396e6701f7ec0d486c29833a838f234d833c Author: Karel Zak Date: Wed May 6 15:18:52 2020 +0200 wipefs: fix man page --no-headings short option Addresses: https://github.com/karelzak/util-linux/issues/1029 Signed-off-by: Karel Zak misc-utils/wipefs.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5c523482556cdf82ef978c050dcb46a3a0969359 Author: Mark Hindley Date: Tue May 5 21:28:55 2020 +0200 tests: Fix for misc/fallocate test build failure. This was already a known possible failure case. However, in the migration to a clearer separation of stdout and stderr in the testsuite, the logfile used to detect the failure was not updated. Signed-off-by: Mark Hindley tests/ts/misc/fallocate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b3f25dce328d6a2eeab64ce1ded20055eb24d298 Author: Karel Zak Date: Wed May 6 13:32:46 2020 +0200 libfdisk: fix partition calculation for BLKPG_* ioctls The include/partx.h interface we use in util-linux uses 512-byte sectors, but libfdisk uses real sector sizes. Signed-off-by: Karel Zak libfdisk/src/context.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 3f3c32139cfc336cdb2189afb974f0e985afc2b2 Author: Jakub Wilk Date: Tue May 5 14:17:55 2020 +0200 scriptlive: fix typo Signed-off-by: Jakub Wilk term-utils/scriptlive.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6cb2d984f89ac65684084797791da74575a3a555 Author: Jakub Wilk Date: Tue May 5 14:16:52 2020 +0200 scriptlive: fix man page formatting Signed-off-by: Jakub Wilk term-utils/scriptlive.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8006876158c43e501245b27770b0c700f8503233 Author: Karel Zak Date: Mon May 4 11:44:03 2020 +0200 docs: add swap to 1st fstab field Addresses: https://github.com/karelzak/util-linux/issues/1027 Signed-off-by: Karel Zak sys-utils/fstab.5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit c255dbfb967fc4c37db220b48814158f5d94f5f9 Author: Sven Wiltink Date: Fri May 1 16:35:40 2020 +0200 lsblk: Fall back to ID_SERIAL In some cases ID_SERIAL_SHORT isn't provided by libudev, but ID_SERIAL is. An example of this are virtio devices. See the output of udevadm info: P: /devices/pci0000:00/0000:00:06.0/virtio2/block/vdb N: vdb S: disk/by-id/virtio-08491434ee711d3420e9 S: disk/by-path/pci-0000:00:06.0 S: disk/by-path/virtio-pci-0000:00:06.0 E: DEVLINKS=/dev/disk/by-id/virtio-08491434ee711d3420e9 /dev/disk/by-path/pci-0000:00:06.0 /dev/disk/by-path/virtio-pci-0000:00:06.0 E: DEVNAME=/dev/vdb E: DEVPATH=/devices/pci0000:00/0000:00:06.0/virtio2/block/vdb E: DEVTYPE=disk E: ID_PATH=pci-0000:00:06.0 E: ID_PATH_TAG=pci-0000_00_06_0 E: ID_SERIAL=08491434ee711d3420e9 E: MAJOR=252 E: MINOR=16 E: SUBSYSTEM=block E: TAGS=:systemd: E: USEC_INITIALIZED=1403804 [kzak@redhat.com: - add ID_SERIAL also to get_properties_by_file()] Signed-off-by: Karel Zak misc-utils/lsblk-properties.c | 3 +++ 1 file changed, 3 insertions(+) commit ddaf29e496f678cb5b5ed6812282b50d48dad598 Author: Wolfram Sang Date: Tue Apr 28 09:13:15 2020 +0200 bash-completion: umount explicitly needs gawk gensub() is a gawk extension, so use it explicitly. Otherwise users will get an error if their 'awk' defaults to something else. Fixes: 3ebfc8d37 ("bash-completion: umount support relative path and ~ as home shorthands") Signed-off-by: Wolfram Sang bash-completion/umount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit dcc86fef842e3fa978985e0b4982180da4b5faf5 Author: Roberto Bergantinos Corpas Date: Mon Apr 27 15:46:02 2020 +0200 libmount: fix mount -a EBUSY for cifs fstab: //rhel73/myshare/sub/path /mnt cifs after mount in mountinfo: # grep cifs /proc/self/mountinfo 47 39 0:40 /sub/path /mnt rw,relatime shared:60 - cifs //rhel73/myshare/sub/path ... ^^^^^^^^^ or: # grep cifs /proc/self/mountinfo 47 39 0:40 / /mnt rw,relatime shared:60 - cifs //rhel73/myshare/sub/path ... ^ That is so since on kernel cifs code, cifs_get_root (which returns the entry associated with mnt_root) return s_root if CIFS_MOUNT_USE_PREFIX_PATH is set, no questions asked. This situation can occurr often on CIFS mounts, as CIFS servers limit frequently scope of access to the root path. [kzak@redhat.com: - add more info to the commit message, - clean up variable names] Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1826719 Signed-off-by: Roberto Bergantinos Corpas Signed-off-by: Karel Zak libmount/src/tab.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit f08432038c20ca0674fb2e3134938a742ee65807 Author: Karel Zak Date: Mon Apr 27 11:15:00 2020 +0200 libfdisk: (script) fix partno_from_devname() Addresses: https://github.com/karelzak/util-linux/issues/1015 Signed-off-by: Karel Zak libfdisk/src/script.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 202cb6e2683e11485732c1daf9c71d705f6e703a Author: Karel Zak Date: Wed Apr 22 14:57:33 2020 +0200 sfdisk: only report I/O errors on --move-data Now sfdisk stops everything on I/O error when moving data. It seems better to report the error to user and continue as it's better to have one bad sector in the partition than inconsistent all partition. Addresses: https://github.com/karelzak/util-linux/issues/984 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 58 ++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 27 deletions(-) commit b42a2c0f6d812e43ac8df142d3eb0890ef201a3a Author: Tycho Andersen Date: Thu Jan 9 16:52:41 2020 -0700 libmount: do not unnecessarily chmod utab.lock Before ecfeae90a294 ("libmount: Ensure utab.lock mode 644"), you could do something like: irc:/tmp umount --version umount from util-linux 2.27.1 (libmount 2.27.0: selinux, assert, debug) irc:/tmp mkdir foo bar irc:/tmp unshare -Urm irc:/tmp mount --bind foo bar irc:/tmp umount bar irc:/tmp echo $? 0 However, afterwards, you get: /tmp unshare -Urm /tmp mount --bind foo bar /tmp umount bar umount: /tmp/bar: filesystem was unmounted, but failed to update userspace mount table. Because of the chmod failing: fchmod(3, 0644)                         = -1 EPERM (Operation not permitted) Let's figure out whether the chmod is necessary before doing it, and only do it if it is necessary. This won't fix cases where the system is already broken, but at least on healthy systems umount will behave as before. Signed-off-by: Tycho Andersen libmount/src/lock.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit 24fa7d60ea0b5838b5eaef2a0455fca4adfadeda Author: Karel Zak Date: Wed Apr 22 10:32:49 2020 +0200 eject: fix compiler warning [-Wformat-overflow] Signed-off-by: Karel Zak sys-utils/eject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2031e0960921c9d8d7021e1016f3150ca9b80ff9 Author: Karel Zak Date: Wed Apr 22 09:44:47 2020 +0200 pylibmount: cleanup and sync UL_RaiseExc Addresses: https://github.com/karelzak/util-linux/issues/1013 Signed-off-by: Karel Zak libmount/python/pylibmount.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) commit e1b7dd6cac3880a96c75785887896f8189d887d2 Author: Lukas Czerner Date: Wed Apr 15 09:08:12 2020 +0200 blkdiscard: (man) offset and length must be sector aligned Update blkdiscard manual page. Length and offset values must be aligned to the device sector size. Signed-off-by: Lukas Czerner Reported-by: Patrick Oppenlander sys-utils/blkdiscard.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d50541d5312afcd6599c616e95db93e644824bbe Author: Disconnect3d Date: Mon Apr 13 16:14:10 2020 +0200 Fix off by one when checking "/dev/mapper/" path This PR fixes an off by one in `strncmp(dev->bid_name, "/dev/mapper/", 11)` check. The `"/dev/mapper/"` string literal has a length of 12 and without this fix paths like `"/dev/mapperSOMETHING"` would also be accepted. libblkid/src/devname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 30b15eac64ab5d037255c5a86b7520d85ff8f12b Author: Sami Kerola Date: Tue Feb 25 21:30:19 2020 +0000 ctrlaltdel: display error message indicated by errno Signed-off-by: Sami Kerola sys-utils/ctrlaltdel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8cd59115360806885def18472b75a50b4c3b1a02 Author: Jiaxun Yang Date: Sat Mar 28 12:19:42 2020 +0800 lscpu: Adapt MIPS cpuinfo MIPS have slightly different layout of cpuinfo. Signed-off-by: Jiaxun Yang sys-utils/lscpu.c | 2 ++ 1 file changed, 2 insertions(+) commit a0b64b050effc11df43539a94618bb935e72debc Author: Karel Zak Date: Tue Mar 24 10:52:54 2020 +0100 libfdisk: remove unwanted assert() Signed-off-by: Karel Zak libfdisk/src/label.c | 1 - 1 file changed, 1 deletion(-) commit 9bfed00d920d1a40c0eaed15147fa2dddc392390 Author: Sami Kerola Date: Sun Mar 22 09:37:41 2020 +0000 docs: kill.1 add note about shell-internal kill implementations Requested-by: Ilia Baryshnikov Reference: https://github.com/karelzak/util-linux/issues/991#issuecomment-602108648 Signed-off-by: Sami Kerola misc-utils/kill.1 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit a41254b8f7e74a6c14f357af8b7ea9a457dffa89 Author: Gaël PORTAY Date: Fri Mar 20 16:21:58 2020 -0400 lib/mangle: check for the NULL string argument This patch prevents to call the function strlen() with a NULL string argument that leads to a segmentation fault. Signed-off-by: Gaël PORTAY include/mangle.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 08f7c4d55fdc334d250750386119ff0ede994ffc Author: Gaël PORTAY Date: Fri Mar 20 16:10:35 2020 -0400 libfdisk: (script) fix segmentation fault This patch fixes a segmentation fault that occurs if the name value is empty (i.e. name=). Signed-off-by: Gaël PORTAY libfdisk/src/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit ac11705979ad51ab419201e33656058d252c1814 Author: Mark Barbone Date: Thu Mar 19 18:13:46 2020 -0400 Fix typo in the mount (8) man page sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 545cf85f445f7b97bff0a54c7849febcb0f04ccc Author: Karel Zak Date: Wed Mar 11 18:38:09 2020 +0100 libmount: smb2 is unsupported alias Kenneth D'souza wrote: # grep -w MODULE_ALIAS_FS fs/cifs/cifsfs.c MODULE_ALIAS_FS("cifs"); 112/112│MODULE_ALIAS_FS("smb3"); Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1812118 Signed-off-by: Karel Zak libmount/src/tab.c | 1 - libmount/src/utils.c | 1 - 2 files changed, 2 deletions(-) commit d2f7e772bb9e7615db15a0a8796a66f072d116b5 Author: Karel Zak Date: Wed Mar 11 10:38:37 2020 +0100 libmount: improve smb{2,3} support It seems kernel can use smb3 as fstype in mountinfo. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1812118 Signed-off-by: Karel Zak libmount/src/tab.c | 6 +++++- libmount/src/utils.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) commit 821be171fc98074ade84cfc451fc060b2c11d0b4 Author: Karel Zak Date: Wed Mar 4 12:54:24 2020 +0100 lscpu: use official name for HiSilicon tsv110 Addresses: https://github.com/karelzak/util-linux/issues/969 Signed-off-by: Karel Zak sys-utils/lscpu-arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 3ed97beca6fae91ae2bfa424733fe6bf9c3b9abe Author: Karel Zak Date: Thu Feb 27 14:37:23 2020 +0100 su, runuser: (man) add more info about PATH and PAM Addresses: https://github.com/karelzak/util-linux/issues/964 Signed-off-by: Karel Zak login-utils/runuser.1 | 8 +++++++- login-utils/su.1 | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) commit a7399fa3c214b8a031e431b4737da855f98b1a2d Author: Karel Zak Date: Thu Feb 27 14:04:55 2020 +0100 hwclock: fix audit exit status According to audit_log_user_message(3) result 1 is "success" and 0 is "failed", we use standard EXIT_{SUCCESS,FAILURE} macros with reverse status. Addresses: https://github.com/karelzak/util-linux/issues/966 Signed-off-by: Karel Zak sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f900fc11a644d65b18e5109361b06e326cc5c022 Author: Karel Zak Date: Thu Feb 27 13:54:05 2020 +0100 chsh: (man) fix default behavior description Addresses: https://github.com/karelzak/util-linux/issues/967 Signed-off-by: Karel Zak login-utils/chsh.1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit bbe1b31447f365c78e03937346a8033d778697d3 Author: Karel Zak Date: Tue Feb 25 15:31:23 2020 +0100 lsblk: fix -P regression from v2.34 Since v2.34 --list prints devices only once to make the output user-readable. Unfortunately, it's regression for scripts/applications where we need to parse lsblk output. So, let's make --pairs and --raw backwardly compatible with versions before 2.34 and print all hierarchy. Addresses: https://github.com/ibm-s390-tools/s390-tools/issues/80 Signed-off-by: Karel Zak misc-utils/lsblk.8 | 10 ++++++---- misc-utils/lsblk.c | 9 +++++---- 2 files changed, 11 insertions(+), 8 deletions(-) commit 57d5160227fc4792c33bb9fef605939f893678ad Author: Karel Zak Date: Mon Feb 24 13:02:09 2020 +0100 umount: don't try it as non-suid if not found mountinfo entry Addresses: https://github.com/karelzak/util-linux/issues/961 Signed-off-by: Karel Zak sys-utils/umount.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit e3ec43a64003dcfbe8a082bd3e2d94ce7724ed89 Author: Karel Zak Date: Mon Feb 17 13:13:11 2020 +0100 lscpu: fix SIGSEGV on archs without drawers & books The drawers and books are optional and not supported on all architectures and in this case drawers/books relevant arrays are not allocated, so don't access it although user wants it (e.g.  "lscpu -p -y --output-all"). This patch also cleans up arrays allocation to make it more readable and robust against edit mistakes. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1801760 Signed-off-by: Karel Zak sys-utils/lscpu.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) commit e4894e685ce45855a1103145a60b7fce312f4498 Author: Sami Kerola Date: Sat Feb 15 21:12:50 2020 +0000 kill: include sys/types.h before checking SYS_pidfd_send_signal Including sys/types.h must happen before SYS_pidfd_send_signal is checked, because that header defines variable in normal conditions. When sys/types.h does not have SYS_pidfd_send_signal then fallback is defined in config.h that is included by default, and has therefore worked fine before and after this change. Signed-off-by: Sami Kerola include/pidfd-utils.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) commit 7cef7955e7c74b10d697b7b24f6455c614719f88 Author: Pali Rohár Date: Wed Feb 12 18:08:46 2020 +0100 exfat: Fix parsing exfat label According to released exfat specification, label is only 22 bytes long. libblkid/src/superblocks/exfat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 302e1c48e460cbf0ddedcee0cbc4f68de2b9528c Author: Pali Rohár Date: Sun Feb 9 13:04:34 2020 +0100 libblkid: Fix UTF-16 support in function blkid_encode_to_utf8() Function blkid_encode_to_utf8() says that is supports BLKID_ENC_UTF16LE and BLKID_ENC_UTF16BE encodings, but it is not truth and supports only UCS-2 (and not full UTF-16). As all places where BLKID_ENC_UTF16LE and BLKID_ENC_UTF16BE is used expects UTF-16 and not UCS-2, this patch changes implementation of encodings BLKID_ENC_UTF16LE and BLKID_ENC_UTF16BE to supports full UTF-16, including surrogate pairs and not only UCS-2. libblkid/src/encode.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) commit b28fd989696e036114f4c8e21e202f552f0f6343 Author: Karel Zak Date: Tue Feb 4 15:54:53 2020 +0100 sfdisk: fix ref-counting for the script Signed-off-by: Karel Zak disk-utils/sfdisk.c | 1 + 1 file changed, 1 insertion(+) commit d56eb757bbd9719cc31dc207bfeaf2ea6f7ce312 Author: Karel Zak Date: Tue Feb 4 15:54:10 2020 +0100 libfdisk: (script) fix memory leak Signed-off-by: Karel Zak libfdisk/src/script.c | 4 ++++ 1 file changed, 4 insertions(+) commit 0967f9a3f18e0320571db8dbc347c1e38b97f286 Author: J William Piggott Date: Fri Feb 21 20:03:47 2020 -0500 hwclock: make glibc 2.31 compatible ______________________________________________________ GNU C Library NEWS -- history of user-visible changes. Version 2.31 Deprecated and removed features, and other changes affecting compatibility: * The settimeofday function can still be used to set a system-wide time zone when the operating system supports it. This is because the Linux kernel reused the API, on some architectures, to describe a system-wide time-zone-like offset between the software clock maintained by the kernel, and the "RTC" clock that keeps time when the system is shut down. However, to reduce the odds of this offset being set by accident, settimeofday can no longer be used to set the time and the offset simultaneously. If both of its two arguments are non-null, the call will fail (setting errno to EINVAL). Callers attempting to set this offset should also be prepared for the call to fail and set errno to ENOSYS; this already happens on the Hurd and on some Linux architectures. The Linux kernel maintainers are discussing a more principled replacement for the reused API. After a replacement becomes available, we will change settimeofday to fail with ENOSYS on all platforms when its 'tzp' argument is not a null pointer. settimeofday itself is obsolescent according to POSIX. Programs that set the system time should use clock_settime and/or the adjtime family of functions instead. We may cease to make settimeofday available to newly linked binaries after there is a replacement for Linux's time-zone-like offset API. ______________________________________________________ hwclock(8) had one settimeofday(2) call where both args were set for --hctosys when the RTC was ticking UTC. This allowed setting the system time, timezone, and locking the warp_clock function with a single call. That operation now takes 3 calls of settimeofday(2). Although this common operation now takes three calls, the overall logic for the set_system_clock() function was simplified. Co-Author: Karel Zak Signed-off-by: J William Piggott sys-utils/hwclock.c | 71 ++++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) commit 61b384b36105fe682ddf16b9379f446d935603bc Author: Karel Zak Date: Tue Feb 4 16:17:42 2020 +0100 fstrim: do not use Protect setting in systemd service The ProtectHome= and ProtectSystem= settings mounts all stuff for the service in read-only mode. The fstrim ioctl operates on read-only mountpoint file descriptor, but on some read-only filesystem the operation can fail, so since 2d22ac64e4 we check for read-only volumes and skip it. References: Upstream: http://github.com/karelzak/util-linux/commit/2d22ac64e4d6e6732640f38b7232b5bcdc84a877 Addresses: https://github.com/karelzak/util-linux/issues/948 Signed-off-by: Karel Zak sys-utils/fstrim.service.in | 2 -- 1 file changed, 2 deletions(-) commit 00e53f17c8462cb34ece08cc10db60a7da29a305 Author: Karel Zak Date: Tue Feb 4 15:11:19 2020 +0100 libfdisk: (script) accept sector-size, ignore unknown headers - add sector-size between supported headers (already in --dump output) - report unknown headers by -ENOTSUP - ignore ENOTSUP in sfdisk (but print warning) and in fdisk_script_read_file() Addresses: https://github.com/karelzak/util-linux/issues/949 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 6 +++++- libfdisk/src/script.c | 49 ++++++++++++++++++++++++++----------------------- 2 files changed, 31 insertions(+), 24 deletions(-)