Changes between v2.27 and v2.27.1 --------------------------------- commit 9f5e5bec91a72365b9baa771fa02cbedab804fe3 Author: Karel Zak Date: Mon Nov 2 11:38:45 2015 +0100 build-sys: release++ (v2.27.1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 967eab4e4c869045ca7751728df5087769fa3d43 Author: Karel Zak Date: Mon Nov 2 11:37:25 2015 +0100 docs: update v2.27.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.27.1-ReleaseNotes | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) commit f8f6459c000e11666c7c9ef8a5be742f98bb293f Author: Karel Zak Date: Mon Nov 2 11:35:41 2015 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit f0cc25ab0681b794e1220e414fce4aac99bfe082 Author: Karel Zak Date: Mon Nov 2 11:33:12 2015 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 666 +- po/cs.po | 935 +-- po/da.po | 667 +- po/de.po | 935 +-- po/es.po | 665 +- po/et.po | 666 +- po/eu.po | 666 +- po/fi.po | 664 +- po/fr.po | 665 +- po/gl.po | 658 +- po/hr.po | 656 +- po/hu.po | 666 +- po/id.po | 666 +- po/it.po | 666 +- po/ja.po | 665 +- po/nl.po | 665 +- po/pl.po | 665 +- po/pt_BR.po | 17243 ++++++++++++++++++++++++++++++---------------------- po/ru.po | 1546 ++--- po/sl.po | 666 +- po/sv.po | 666 +- po/tr.po | 666 +- po/uk.po | 665 +- po/util-linux.pot | 657 +- po/vi.po | 665 +- po/zh_CN.po | 1485 ++--- po/zh_TW.po | 666 +- 27 files changed, 19384 insertions(+), 17377 deletions(-) commit eebe9f172d33a20fcd82ec5a45551d91c30803c4 Author: Wylmer Wang Date: Mon Nov 2 11:28:31 2015 +0100 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 1778 ++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 1146 insertions(+), 632 deletions(-) commit 6a05df38cc7e72ceebb6e5eabe161e9bdbfed45b Author: Evgeniy Yakushev Date: Mon Nov 2 11:28:31 2015 +0100 po: update ru.po (from translationproject.org) po/ru.po | 7745 +++++++++++++++++--------------------------------------------- 1 file changed, 2099 insertions(+), 5646 deletions(-) commit 26b167d078ebad54e4f73577484ad94aa628ecf1 Author: Rafael Ferreira Date: Mon Nov 2 11:28:31 2015 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 17208 +++++++++++++++++++++++++--------------------------------- 1 file changed, 7398 insertions(+), 9810 deletions(-) commit d34b67957557dce88eac17e7671473b4b8eb0dec Author: Philipp Thomas Date: Mon Nov 2 11:28:31 2015 +0100 po: update de.po (from translationproject.org) po/de.po | 2173 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 925 insertions(+), 1248 deletions(-) commit e822e63b0703e65a090dd5dac86106bb3235bb3b Author: Petr Písař Date: Mon Nov 2 11:28:31 2015 +0100 po: update cs.po (from translationproject.org) po/cs.po | 1413 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 619 insertions(+), 794 deletions(-) commit 4bee4ece7393b43159b38e80173bcbf3c781c2e8 Author: Karel Zak Date: Fri Oct 30 11:08:32 2015 +0100 lib/sysfs: make sysfs_get_devname()/blkid_devno_to_wholedisk() more robust Now the function uses result buffer for internal stuff (readlink), so it requires that the buffer is large enough. This is unexpected as caller assumes that the buffer has to be large enough for devname only. References: http://www.spinics.net/lists/util-linux-ng/msg12015.html Reported-by: Tom Yan Signed-off-by: Karel Zak lib/sysfs.c | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) commit e6e5bbda886be638892ed6fe1e677dbb2bc03d63 Author: Karel Zak Date: Fri Oct 16 11:48:47 2015 +0200 script: be pedantic and use "%"SCNi64 Signed-off-by: Karel Zak term-utils/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9723362b31d2800fdd775b8a2e0216c53dfe17fa Author: Isaac Dunham Date: Thu Oct 15 18:12:59 2015 -0700 script: don't assume that time_t is compatible with long time_t may change to 64-bit on 32-bit Linux kernels at some point; at that point, it may be desireable to test for issues with dates past 2038. [kzak@redhat.com: - use %jd rather than %lld] Signed-off-by: Karel Zak term-utils/script.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit e62d2f23545d4407e4b55eb42c3c598698a80793 Author: Karel Zak Date: Thu Oct 15 12:12:11 2015 +0200 libmount: follow docs with parse-error callback return code The docs says that recoverable errors have rc > 0. Signed-off-by: Karel Zak libmount/src/tab_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9d90f3345dda4209a79a7509126f3902803e5d66 Author: Karel Zak Date: Thu Oct 15 11:53:44 2015 +0200 mount, umount, swapon, fsck, lsblk, findmnt: ignore malformed lines The libmount provides way how to deal with parsing errors in fstab -- on error callback function is executed and according to the return libmount manipulate with the malformed line, possible are three states: 1/ fatal error; all file ignored (callback rc < 0) 2/ recoverable error; malformed line ignored (callback rc > 0) 3/ ignore the error (callback rc == 0) The 2/ is the default if no callback specified. Unfortunately our utils uses 3/. The correct way is to use 2/. Signed-off-by: Karel Zak disk-utils/fsck.c | 2 +- misc-utils/findmnt.c | 2 +- misc-utils/lsblk.c | 11 +++++++++++ sys-utils/mount.c | 2 +- sys-utils/swapon-common.c | 11 +++++++++++ sys-utils/umount.c | 2 +- 6 files changed, 26 insertions(+), 4 deletions(-) commit 085e8209f8dacb5fd92853969f2c9fdd4be33f9b Author: Karel Zak Date: Tue Oct 13 12:01:29 2015 +0200 libblkid: make XFS Log visible for wipefs Reported-by: Peter Rajnoha Signed-off-by: root Signed-off-by: Karel Zak libblkid/src/superblocks/xfs.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 858836b976ce1a31a01be76ab1300df16dd385d6 Author: Karel Zak Date: Mon Oct 12 11:42:13 2015 +0200 libmount: fix uid= and gid= translation The current libmount version returns error when no able to convert username/groupname to uid/git. # mount mount /dev/sda1 /mnt/test -o uid=ignore # mount: failed to parse mount options This is regression, the original mount(8) has ignored possible unknown user/group names and the option has been used unconverted (with the original value). For example UDF kernel driver depends on this behavior and "uid=ignore" (or "forgot") is a valid mount option. Fixed version (unit test): ./test_mount_optstr --fix uid=kzak,gid=forgot,aaa,bbb optstr: uid=kzak,gid=forgot,aaa,bbb fixed: uid=1000,gid=forgot,aaa,bbb Reported-By: Anthony DeRobertis Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801527 Signed-off-by: Karel Zak libmount/src/optstr.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) commit 76546bc5298e22680c9510279db82b920d892334 Author: Karel Zak Date: Fri Oct 9 13:13:53 2015 +0200 include/pt-mbr-partnames: remove '|' from partition type name Signed-off-by: Karel Zak include/pt-mbr-partnames.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ffa151fe186bcacfdc6e714cf932231d65ac3a54 Author: Jörg Jenderek Date: Wed Oct 7 11:41:23 2015 +0200 fdisk: to recognize Intel Rapid Start hibernation partition I use Intel Rapid Start Technology on my PC. According to their User Guide "Rapid_Start_Technology_User_Guide_v1.4.pdf" I create a partition with id=84 for hibernation by this Technology. Unfortunately the software fdisk (util-linux-2.27) classifies that partition as "OS/2 hidden C:". That is not wrong, but on website https://en.wikipedia.org/wiki/Partition_type is written, that id 0x84 beside using for hiding drive C: this type is a also used as hibernation partition for Microsoft APM and also for Intel Rapid Start So I patched 2 header files so that fdisk recognize this partition type variation. Signed-off-by: Karel Zak include/pt-mbr-partnames.h | 4 +++- include/pt-mbr.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) commit df0ab8b81d95e00a81a7daa827eef09683177313 Author: Karel Zak Date: Tue Oct 6 11:06:21 2015 +0200 tests: replace username with tag in logger test Signed-off-by: Karel Zak tests/expected/logger/errors-check_socket | 6 +++--- tests/expected/logger/errors-multi-line | 6 +++--- tests/ts/logger/errors | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) commit 3114db99e14feed25eb1b12d51ffcf4cb55fcf1f Author: Karel Zak Date: Tue Oct 6 10:46:37 2015 +0200 tests: add missing files Signed-off-by: Karel Zak tests/expected/logger/errors-multi-line | 4 ++++ tests/expected/logger/errors-tcp | 2 ++ 2 files changed, 6 insertions(+) commit 1eb31677a3a2380b2d6185a5bd3049748856a62c Author: Karel Zak Date: Tue Oct 6 10:17:11 2015 +0200 tests: update and extend logger tests Signed-off-by: Karel Zak tests/expected/logger/errors-check_socket | 13 +++++++++++++ tests/ts/logger/errors | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) commit 2d3c38b557565d6a53017ea92f5fb35e6f8a26c8 Author: Karel Zak Date: Tue Oct 6 09:16:33 2015 +0200 logger: fix messages separation on UNIX socket The function write_output() add additional \n after each message on TYPE_TPC. This is required by syslog daemons, otherwise you will see multiple log messages merged together in your log file, for example: Oct 6 09:01:40 ws kzak: AAA<14>Oct 6 09:01:40 kzak: BBB for printf "AAA\nBBB\n" | logger -p info -u Unfortunately, the connection initialization functions keep the default ALL_TYPES as connection type and nowhere in the control struct is info about the final real connection type. The problem is invisible when you specify --tpc or --udp on logger command line. Addresses: https://github.com/karelzak/util-linux/issues/225 Signed-off-by: Karel Zak misc-utils/logger.c | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) commit 19dddd5561cab69f5dcf1d412c4abe0420b07b57 Author: Sami Kerola Date: Sat Sep 5 19:56:36 2015 +0100 uuidd: improve socket activation error messaging Tell more exactly what is wrong and how, and give hint how to recover when possible. Signed-off-by: Sami Kerola misc-utils/uuidd.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit 5d88ac8111ff1e580a5fa6d629d35ef984a02481 Author: Alexander Kuleshov Date: Fri Oct 2 15:38:56 2015 +0600 bash-completion: curly brace missed for findmnt This patch provides fix for bash-completion/fndmt script. There is curly brace missed in the completion generation for the -M/--mountpoint option. In other way we will get following messages: bash: /etc/bash_completion.d/findmnt: line 91: unexpected EOF while looking for matching `)' bash: /etc/bash_completion.d/findmnt: line 141: syntax error: unexpected end of file Signed-off-by: Alexander Kuleshov bash-completion/findmnt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit aaa324cb90b9e6bd463f3dbdc4ffd195450c4096 Author: Jörg Jenderek Date: Sat Sep 26 02:58:06 2015 +0200 fdisk: to recognize partition type 0xEA (Rufus) i used a partitioning+formatting tool product rufus 2.2. of https://rufus.akeo.ie/ This software has an extra format option for older BIOS. With this fix the main partition is created with some alignments and for the remaining unallocated space a small extra and empty partition with identification 0xEA is created. On the List of partition identifiers for PCs at http://www.win.tue.nl/~aeb/partitions/partition_types-1.html is is said that there is a freedesktop proposal to use also type ea as boot partition Unfortunately the software fdisk (util-linux-2.27) can not classify that partition. I send for the fdisk program my 2 patches so that fdisk recognize this partition type. Signed-off-by: Karel Zak include/pt-mbr-partnames.h | 1 + include/pt-mbr.h | 1 + 2 files changed, 2 insertions(+) commit ebf720abce8f4b3e4ba6c968a1f8aa5e4025783d Author: Karel Zak Date: Wed Sep 30 12:42:16 2015 +0200 libuuid: fix buffer overflow with long paths Based on patch from Justin Akers, he wrote: > When building Openembedded inside a Jenkins matrix job the paths can > get quite long. This ensures libuuid won't crash when attempting to > connect to uuidd in such a scenario. Reported-by: Justin Akers Signed-off-by: Karel Zak libuuid/src/gen_uuid.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 7fc7a7337cc6fef60b84cfc8057d04f14712d493 Author: Karel Zak Date: Thu Sep 24 12:46:21 2015 +0200 zramctl: fix lists of the all devices The command zramctl lists the same stat info for all devices (DATA COMPR TOTAL). Reported-by: Oliver Freyermuth Signed-off-by: Karel Zak sys-utils/zramctl.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) commit 6eb918e8c890f0506f9e853cbd7adadcdb2f1ce1 Author: Karel Zak Date: Tue Sep 22 11:14:31 2015 +0200 libblkid: (promise raid) cleanup code Signed-off-by: Karel Zak libblkid/src/superblocks/promise_raid.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit 43cb0288722722eadab57363b509e9d2d5385fb8 Author: Karel Zak Date: Thu Sep 17 12:27:58 2015 +0200 libfdisk: fix partition move/resize code - verify that the new partition fits to the area if the size of the has not been modified - fix remaining space calculation (yes, brown-paper-bag bug..) - offer also space before first partition as free space Signed-off-by: Karel Zak libfdisk/src/partition.c | 26 ++++++++++++++++++-------- libfdisk/src/table.c | 7 ++++++- 2 files changed, 24 insertions(+), 9 deletions(-) commit 045e00d7e9731bf00daefac706c514b78638077d Author: Karel Zak Date: Thu Sep 17 12:04:23 2015 +0200 libfdisk: add more debug message to resize code Signed-off-by: Karel Zak libfdisk/src/partition.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) commit b0bcd372a4c04d540c8363ec2c4579fb450849ca Author: Karel Zak Date: Mon Nov 2 10:12:00 2015 +0100 fdisk: fix -N internal return code Signed-off-by: Karel Zak disk-utils/sfdisk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit c42e113ad63e135713e572f890363d61e405607e Author: Karel Zak Date: Thu Sep 17 11:44:08 2015 +0200 libfdisk: (gpt) control ranges in set_partition Signed-off-by: Karel Zak libfdisk/src/gpt.c | 15 ++++++++++++--- libfdisk/src/partition.c | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) commit 097ac19c16ed46574114f912a409784c99c1eb69 Author: Karel Zak Date: Tue Sep 15 09:50:08 2015 +0200 ipcs: fix ipc_sem_get_limits() Reported-by: https://github.com/AndrewIrcha Addresses: https://github.com/karelzak/util-linux/commit/e5995acda2d3d55ba4d926741ddd789c9776f1e7#commitcomment-13200369 Signed-off-by: Karel Zak sys-utils/ipcutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9293e80fe8d6b5509dd880363ec975eb9255f218 Author: Karel Zak Date: Fri Sep 11 11:37:49 2015 +0200 libmount: (monitor) remove unnecessary epoll EPOLLPRI Signed-off-by: Karel Zak libmount/src/monitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit e0c2e94bd21a51c7538963da6561430e47350bfe Author: Karel Zak Date: Fri Sep 11 11:19:30 2015 +0200 libmount: (monitor) don't check for regular mtab The monitor supports utab only (as documented). It's application responsibility to use libmount in the right way. It's overkill to check for valid environment during monitor initialization. For example systemd checks for regular mtab during boot, it's better than try to be smart later in libmount monitor when system is already running. Signed-off-by: Karel Zak libmount/src/monitor.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)