Changes between v2.33.1 and v2.33.2 -------------------------------------------- commit df9f1b2ee5bc90fc6f3b0089d2859df1b18f2c74 Author: Karel Zak Date: Tue Apr 9 14:58:07 2019 +0200 build-sys: release++ (v2.33.2) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit ef2405fa91547973d51dbf6b706c9f72f0f67f40 Author: Karel Zak Date: Tue Apr 9 14:55:47 2019 +0200 docs: update v2.33.2-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.33.2-ReleaseNotes | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) commit 16b92f9e47c0c3d8064b739ba2dbe567a51a7f0c Author: Karel Zak Date: Tue Apr 9 14:36:52 2019 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 9 +++++++++ 1 file changed, 9 insertions(+) commit 9a2494d3f43975fc8cf56164bd970861f9171358 Author: Karel Zak Date: Tue Apr 9 14:34:59 2019 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 462 +++++++++++++++-------------- po/cs.po | 460 +++++++++++++++-------------- po/da.po | 460 +++++++++++++++-------------- po/de.po | 851 ++++++++++++++++++++++++++++-------------------------- po/es.po | 460 +++++++++++++++-------------- po/et.po | 462 +++++++++++++++-------------- po/eu.po | 462 +++++++++++++++-------------- po/fi.po | 462 +++++++++++++++-------------- po/fr.po | 851 ++++++++++++++++++++++++++++-------------------------- po/gl.po | 459 +++++++++++++++-------------- po/hr.po | 843 +++++++++++++++++++++++++++-------------------------- po/hu.po | 462 +++++++++++++++-------------- po/id.po | 462 +++++++++++++++-------------- po/it.po | 462 +++++++++++++++-------------- po/ja.po | 460 +++++++++++++++-------------- po/nl.po | 460 +++++++++++++++-------------- po/pl.po | 460 +++++++++++++++-------------- po/pt_BR.po | 460 +++++++++++++++-------------- po/ru.po | 462 +++++++++++++++-------------- po/sl.po | 462 +++++++++++++++-------------- po/sv.po | 460 +++++++++++++++-------------- po/tr.po | 460 +++++++++++++++-------------- po/uk.po | 460 +++++++++++++++-------------- po/util-linux.pot | 452 +++++++++++++++-------------- po/vi.po | 460 +++++++++++++++-------------- po/zh_CN.po | 460 +++++++++++++++-------------- po/zh_TW.po | 462 +++++++++++++++-------------- 27 files changed, 7014 insertions(+), 6582 deletions(-) commit c2508a9bef2e75c5be71e5b2128bad426f4e1f99 Author: Božidar Putanec Date: Tue Apr 9 14:29:53 2019 +0200 po: update hr.po (from translationproject.org) po/hr.po | 8431 ++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 4077 insertions(+), 4354 deletions(-) commit bac5e72888dc1f80313c16f5c7e36cf27ea52cdc Author: Frédéric Marchal Date: Tue Apr 9 14:29:53 2019 +0200 po: update fr.po (from translationproject.org) po/fr.po | 491 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 242 insertions(+), 249 deletions(-) commit a76824e818d6350ac541bc52f01b22f76ee6e440 Author: Mario Blättermann Date: Tue Apr 9 14:29:53 2019 +0200 po: update de.po (from translationproject.org) po/de.po | 3220 +++++++++++++++++++++----------------------------------------- 1 file changed, 1091 insertions(+), 2129 deletions(-) commit e3782bf6776dcef329b09f4324e1be680f690f3c Author: Karel Zak Date: Mon Apr 8 13:33:04 2019 +0200 tests: add /mnt/test/foo^Mbar to mountinfo tests Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak tests/expected/libmount/tabdiff-mount | 1 + tests/expected/libmount/tabdiff-move | 1 + tests/expected/libmount/tabdiff-remount | 1 + tests/expected/libmount/tabdiff-umount | 1 + tests/expected/libmount/tabfiles-parse-mountinfo | 12 ++++++++++++ tests/expected/libmount/tabfiles-py-parse-mountinfo | 12 ++++++++++++ tests/ts/libmount/files/mountinfo | 1 + 7 files changed, 29 insertions(+) commit e902609400a861dbdb47d5c3eb98b951530bf01d Author: Karel Zak Date: Mon Apr 8 13:33:04 2019 +0200 libmount: don't use sscanf() for swaps parsing Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak include/pathnames.h | 1 - libmount/src/tab_parse.c | 120 +++++++++++++++++++++++++++++------------------ 2 files changed, 74 insertions(+), 47 deletions(-) commit ab8738e2af4acfeda15abc1475d72997576304a4 Author: Karel Zak Date: Mon Apr 8 13:33:04 2019 +0200 libmount: don't use sscanf() for mountinfo parsing Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak include/pathnames.h | 2 +- libmount/src/tab_parse.c | 204 ++++++++++++++++++++++++++--------------------- 2 files changed, 114 insertions(+), 92 deletions(-) commit a8e8f89998f1443d36f860c4d0e2fee3a1de5d7d Author: Karel Zak Date: Mon Apr 8 13:33:04 2019 +0200 libmount: don't use sscanf() for fstab parsing Addresses: https://github.com/karelzak/util-linux/issues/780 Signed-off-by: Karel Zak lib/mangle.c | 2 +- libmount/src/tab_parse.c | 135 ++++++++++++++++++++++++----------------------- 2 files changed, 69 insertions(+), 68 deletions(-) commit b9d228cff415ed0e4bcf5b366aec3b6f4d413c64 Author: Marcos Paulo de Souza Date: Mon Apr 1 18:38:31 2019 -0300 fstrim: Remove commnet about vfat not supporting fstrim Commit f663b5b38f ("fat: add FITRIM ioctl for FAT file system") in linux kernel added support for using fstrim with vfat filesystem. Signed-off-by: Marcos Paulo de Souza sys-utils/fstrim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 76d7591c25db8977f212ffc3451800d1586829fb Author: Karel Zak Date: Mon Mar 25 16:39:43 2019 +0100 su: change error message We use PAM and if pam_strerror() returns nothing we have no clue why authentication failed. It's mistake to blame incorrect password if there are many possible reason... Addresses: https://github.com/karelzak/util-linux/issues/778 Signed-off-by: Karel Zak login-utils/su-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4dbe8d5a92ee3ba1740ce96dd1debd1600cc8ada Author: Karel Zak Date: Mon Mar 11 12:02:31 2019 +0100 blkid: (man) cleanup return code section Addresses: https://github.com/karelzak/util-linux/issues/764 Signed-off-by: Karel Zak misc-utils/blkid.8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 3209ed50e388e075963fd544a707cdde5474da6f Author: Karel Zak Date: Wed Mar 6 12:02:30 2019 +0100 su: be sensitive to another SIGCHLD ssi_codes See the same issue for script: 27afe5016842c22d256ea9f88b598d637ca0df84 Signed-off-by: Karel Zak login-utils/su-common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit e88751cdd8de28d77289266970be4c40958ade80 Author: Patrick Steinhardt Date: Fri Mar 1 18:35:49 2019 +0100 last: do not use non-standard __UT_NAMESIZE In commit b22332dd4 (last: fix wtmp user name buffer overflow [asan], 2019-01-13), we started to make sure that the `ut_user` field of the `utmpx` struct is always NUL-terminated. The implementation makes use of the `__UT_NAMESIZE` define to determine the position of the last character in that array. The problem is that this is a non-standard define that is not necessarily available on non-glibc platforms. As there is no standardized define, we should just use `sizeof`. This fixes compilation on musl libc based systems. Signed-off-by: Patrick Steinhardt login-utils/last.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 619fd87dd0929b418fcfca25c42e78cb65f3ce44 Author: Stanislav Brabec Date: Thu Feb 28 23:09:40 2019 +0100 libmount: Recognize more fuse filesystems as pseudofs and netfs Add some fuse filesystems to the list of pseudofs and netfs. There are still tens of filesystems that should be evaluated and added. Signed-off-by: Stanislav Brabec libmount/src/utils.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit bed1af44f464a3eb9f155ccc30845119e3353252 Author: Stanislav Brabec Date: Wed Feb 27 23:22:40 2019 +0100 agetty: Switch to 8-bit processing in get_logname() for UTF-8 terminals If the terminal is in the UTF-8 mode, get_logname() should use 8-bit processing. Signed-off-by: Stanislav Brabec Cc: Lubomir Rintel Tested-by: Lubomir Rintel term-utils/agetty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b72c23f220d8cc05c5f77c0b7d55ebe5be14258e Author: Stanislav Brabec Date: Wed Feb 27 23:22:19 2019 +0100 agetty: Fix input of non-ASCII characters in get_logname() As login supports non-ASCII characters in the logname, agetty should be consistent. 8b58ffdd re-activated old and ASCII-only get_logname(), which restricted the input to ASCII only. As the code does not read whole characters, isascii(ascval) and isprint(ascval) returns nonsenses after entering a non-ASCII character. As keyboard maps don't contain unprintable non-control characters, it seems to be relatively safe to remove both checks. Signed-off-by: Stanislav Brabec Cc: Lubomir Rintel Tested-by: Lubomir Rintel term-utils/agetty.c | 2 -- 1 file changed, 2 deletions(-) commit 669b60a0ce66d73e474a4714828377d38f04f45d Author: Juerg Haefliger Date: Fri Feb 22 17:04:12 2019 +0100 libfdisk: (dos) Use strtoul to parse the label-id Parsing of the label-id fails on 32-bit if the MSB is set. Fix that by using strtoul instead of strtol. Signed-off-by: Juerg Haefliger libfdisk/src/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 45f8c5c3a24346587263bf7af5c4b69361fcb98e Author: dana Date: Fri Feb 22 14:11:29 2019 -0600 column: Address fill-order confusion in documentation Historical versions of column have described the default fill order as rows-then-columns and the -x order as columns-then-rows. This was misleading at best, and the util-linux implementation was updated to clarify the actual behaviour in 3e094e5fe2 (March 2017). However, the other implementations (used by *BSD, macOS, Debian, &al.) continue to use the previous wording, and a user comparing them could easily get the false impression that util-linux column has exactly the opposite fill behaviour from BSD column. To address this, a note is added to the man page explaining the change and clarifying that, despite what the BSD documentation says, the two implementations behave identically in this regard. Signed-off-by: dana text-utils/column.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit 40d6c34fbd6c8a544ca881a1cac065cdb4c6dab4 Author: Karel Zak Date: Wed Feb 20 13:19:23 2019 +0100 lscpu: document --hex output regression (since v2.30) Addresses: https://github.com/karelzak/util-linux/issues/744 Signed-off-by: Karel Zak sys-utils/lscpu.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 794e231b9cd915c2978057b6dd326cb0968733b2 Author: Sami Kerola Date: Fri Jan 25 20:54:42 2019 +0000 include/path.h: remove duplicate header inclusion Signed-off-by: Sami Kerola include/path.h | 1 - 1 file changed, 1 deletion(-) commit b82bf1a1708a61c3071c3dc411bbcb0046703479 Author: Sami Kerola Date: Fri Feb 8 22:01:05 2019 +0000 include: add no return function attribute This warning is repeated 112 times when compiling with all warnings. xalloc.h:23:1: warning: function '__err_oom' could be declared with attribute 'noreturn' [-Wmissing-noreturn] Signed-off-by: Sami Kerola include/xalloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit b419013aad1ece4bc16e2e84738daef66c95c535 Author: Fabian.Kirsch@dlr.de Date: Wed Feb 13 14:49:10 2019 +0000 libfdisk: sanity check, to prevent overlapping partitions from being partly reported as free i noticed wrongly reported free space when looking with cfdisk on an USB drive prepared with the latest alpine *.iso[1]. Feel free to apply below patch, which fixed the issue for me. Greetings Fabian [1]: http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86/alpine-extended-3.9.0-x86.iso Signed-off-by: Karel Zak libfdisk/src/table.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 1f065a86919f146f57bf6ef593c32e80da6ffeb3 Author: Karel Zak Date: Thu Feb 14 10:41:59 2019 +0100 wall: remove unnecessary warning wall(1) may be used in scripts or in pipe. In this case report failed ttyname() does not make sense, especially if the code does not depend on on this function. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1608176 Signed-off-by: Karel Zak term-utils/wall.c | 1 - 1 file changed, 1 deletion(-) commit 4f437ada0bc4a3af1d6636a924a7b15eead3b567 Author: Stanislav Brabec Date: Wed Feb 6 00:07:54 2019 +0100 mount: Do not call mnt_pretty_path() on net file systems. Calling mnt_pretty_path() on network file systems can cause mangling of the output: root# mount | grep nfs nfs.example.com:/home on /home type nfs4 ... root# mkdir -p nfs.example.com:/home root# mount | grep nfs /root/nfs.example.com:/home on /home type nfs4 ... Signed-off-by: Stanislav Brabec sys-utils/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 236ce1f191d2355da8de256a50705c7b085eae57 Author: Icenowy Zheng Date: Thu Jan 24 18:33:34 2019 +0800 libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs The HiFive Unleashed SBC's bootloader seeks for GPT partitions with specific UUID for loading the next stage bootloader (ZSBL loads FSBL, and FSBL loads BBL). Add these partition type UUIDs. Signed-off-by: Icenowy Zheng libfdisk/src/gpt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 44a20296cc1cc302427eb89a380cdbb4934def3c Author: edupont Date: Fri Feb 1 22:57:34 2019 +0100 Typo in configuration help configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 26e60de5c6aa57c144041583935ccb5d923fc4f9 Author: Peter Wu Date: Fri Feb 1 15:40:53 2019 +0100 mount.8: clarify (no)suid behavior on file capabilities Clarify that the nosuid option also affects file capabilities and that it only limits execution of programs. (setgid on directories still inherit the group regardless of the nosuid option.) The new text is taken from the mount(2) manual page from the man-pages project. Addresses: https://github.com/karelzak/util-linux/issues/482 Signed-off-by: Peter Wu sys-utils/mount.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 590dc5e919d24e530483af24e877aeb6904d00d2 Author: Karel Zak Date: Thu Jan 31 14:16:42 2019 +0100 sfdisk: fix logical partition resize when start specified Addresses: https://github.com/karelzak/util-linux/issues/745 Signed-off-by: Karel Zak libfdisk/src/partition.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit 6175978f11f421916e550c157e5d06a9f6cc8dc8 Author: Karel Zak Date: Tue Jan 29 15:44:13 2019 +0100 logger: (man) make more obvious that --server/socket is required The options --tcp/udp specify only how, but no where. Signed-off-by: Karel Zak misc-utils/logger.1 | 4 ++++ 1 file changed, 4 insertions(+) commit 68628af004ec878b87ece147f0a951cda5a8c7ac Author: Johannes Nixdorf Date: Tue Jan 22 19:17:55 2019 +0100 build-sys: fix crypt() detection without -lcrypt The check tested whether code using crypt() links without -lcrypt, but didn't set have_crypt to yes if it succeeded. This fixes the check erroneously failing when compiling against musl libc. Signed-off-by: Johannes Nixdorf configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 24b1741940c50a81b5914cc2b71a189f15a708ef Author: Andreas Schwab Date: Sat Jan 19 23:18:16 2019 +0100 setarch: don't return address of automatic variable On architectures without special personalities setarch uses the contents of a local variable with automatic storage duration after return from the function, causing it to report a spurious error. $ setarch m68k setarch: Kernel cannot set architecture to m68k Signed-off-by: Andreas Schwab sys-utils/setarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1cc0ae600f802f8350f883321c54512d1e9853ea Author: Karel Zak Date: Fri Jan 18 12:13:12 2019 +0100 losetup: use offset in warn_size() calculation # dd if=/dev/urandom of=dummy bs=513 count=1 2>/dev/null # losetup -f --show --offset 1 dummy /dev/loop0 losetup: dummy: Warning: file does not fit into a 512-byte sector; the end of the file will be ignore The warning is bogus as with offset the size of the file fits into 512-byte sector. Simple test that all is right: # dd if=dummy bs=1 skip=1 2>/dev/null | sha256sum - /dev/loop0 da2ed0ade6ea518a802cd8a7a3c01c408ad8699ef6856b0b01f92b867d4ba9b5 - da2ed0ade6ea518a802cd8a7a3c01c408ad8699ef6856b0b01f92b867d4ba9b5 /dev/loop0 Addresses: https://github.com/karelzak/util-linux/issues/722 Signed-off-by: Karel Zak sys-utils/losetup.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 498f5735ebe66e6023f401bd43a628af97e2e0cd Author: Karel Zak Date: Thu Jan 17 11:19:27 2019 +0100 whereis: search in /(s)bin before /usr/lib Addresses: https://github.com/karelzak/util-linux/issues/741 Signed-off-by: Karel Zak misc-utils/whereis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit c7fb646738be59279df97162200cce710f65267f Author: Sami Kerola Date: Sun Jan 13 19:59:40 2019 +0000 readprofile: check input file is not empty [asan] Addresses: https://github.com/karelzak/util-linux/issues/717 Signed-off-by: Sami Kerola sys-utils/readprofile.c | 2 ++ 1 file changed, 2 insertions(+) commit aa14d687ac401f9c313190793d657218c0d0405a Author: Sami Kerola Date: Sun Jan 13 19:48:59 2019 +0000 last: fix wtmp user name buffer overflow [asan] Ensure utmp user name field is null terminated. Without that getpwnam() can buffer overflow, when wtmp file is malformed. Addresses: https://github.com/karelzak/util-linux/issues/715 Signed-off-by: Sami Kerola login-utils/last.c | 1 + 1 file changed, 1 insertion(+) commit 3e3b276c87b9bbf6017d4f4fd738877ffaeff610 Author: Sami Kerola Date: Sat Jan 12 11:14:15 2019 +0000 bash-completion: umount support relative path and ~ as home shorthands Addresses: https://github.com/karelzak/util-linux/issues/703 Signed-off-by: Sami Kerola bash-completion/umount | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-)