Changes between v2.29.1 and v2.29.2 -------------------------------------------- commit 79851652f1ee508bab0f35cc2ec6933998c2f2bf Author: Karel Zak Date: Wed Feb 22 13:06:54 2017 +0100 build-sys: release++ (v2.29.2) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 6b4eb7792b19726e9ecce9d284890b6a5a0d3b53 Author: Karel Zak Date: Wed Feb 22 13:05:47 2017 +0100 docs: update v2.29.2-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.29.2-ReleaseNotes | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) commit 10ca665eccfcaa9271416dbb241f061bd5a965f8 Author: Karel Zak Date: Wed Feb 22 12:46:56 2017 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 2 ++ 1 file changed, 2 insertions(+) commit 5330cbe6fd4ddc80111d0973c70e56b0965e622b Author: Karel Zak Date: Wed Feb 22 12:45:42 2017 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 867 ++++++++++++++++----------------- po/cs.po | 866 ++++++++++++++++----------------- po/da.po | 866 ++++++++++++++++----------------- po/de.po | 866 ++++++++++++++++----------------- po/es.po | 866 ++++++++++++++++----------------- po/et.po | 867 ++++++++++++++++----------------- po/eu.po | 867 ++++++++++++++++----------------- po/fi.po | 867 ++++++++++++++++----------------- po/fr.po | 866 ++++++++++++++++----------------- po/gl.po | 867 ++++++++++++++++----------------- po/hr.po | 867 ++++++++++++++++----------------- po/hu.po | 867 ++++++++++++++++----------------- po/id.po | 867 ++++++++++++++++----------------- po/it.po | 867 ++++++++++++++++----------------- po/ja.po | 866 ++++++++++++++++----------------- po/nl.po | 866 ++++++++++++++++----------------- po/pl.po | 866 ++++++++++++++++----------------- po/pt_BR.po | 1371 +++++++++++++++++++++++++++-------------------------- po/ru.po | 866 ++++++++++++++++----------------- po/sl.po | 867 ++++++++++++++++----------------- po/sv.po | 866 ++++++++++++++++----------------- po/tr.po | 867 ++++++++++++++++----------------- po/uk.po | 866 ++++++++++++++++----------------- po/util-linux.pot | 868 ++++++++++++++++----------------- po/vi.po | 866 ++++++++++++++++----------------- po/zh_CN.po | 866 ++++++++++++++++----------------- po/zh_TW.po | 867 ++++++++++++++++----------------- 27 files changed, 12030 insertions(+), 11871 deletions(-) commit 743f259482cc021c1063d60403c5887694cc970f Author: Rafael Fontenelle Date: Wed Feb 22 12:31:23 2017 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 979 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 485 insertions(+), 494 deletions(-) commit 3541399d63bcad4266291a7793b2cfa97b43fcc6 Author: Karel Zak Date: Wed Feb 22 12:30:07 2017 +0100 tests: add build-sys enable-schedutils result Signed-off-by: Karel Zak tests/expected/build-sys/config-enable-schedutils | 3 +++ 1 file changed, 3 insertions(+) commit fb5ce9161608b4706797f469765c64a860da85a6 Author: Karel Zak Date: Tue Feb 21 11:00:19 2017 +0100 build-sys: simplify UL_ENABLE_ALIAS() semantic Let's follow only $enable_ variables. In this case the MASTERNAME (e.g. [schedutils] for --enable-schedutils) has to be without UL_BUILD_INIT. Signed-off-by: Karel Zak configure.ac | 3 +-- m4/ul.m4 | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) commit 6af7a78e3c6b27df1436a17feb4237c77eb45143 Author: Karel Zak Date: Mon Feb 20 14:17:37 2017 +0100 build-sys: fix --disable-all-programs --enable-schedutils * add UL_ENABLE_ALIAS(NAME, MASTERNAME) to initialize $enable_ according to MASTERNAME. Note that we have to use $build_, the $enable_ is just AC_ARG_ENABLE() stuff only. The $build_ is evaluated and modified by our UL_...() functions. * add enable-schedutils.conf to have build-system regression test for this use-case Addresses: https://github.com/karelzak/util-linux/issues/415 Signed-off-by: Karel Zak configure.ac | 14 ++++++++------ m4/ul.m4 | 15 +++++++++++++++ tools/config-gen.d/enable-schedutils.conf | 3 +++ 3 files changed, 26 insertions(+), 6 deletions(-) commit d9d6d18a4af955844f40432d0321d456ce836c65 Author: Karel Zak Date: Wed Feb 15 11:30:58 2017 +0100 libblkid: (gpt) fix force flag Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit aac33e578f11f1c41ae14b933479e177ea3d9d3d Author: Karel Zak Date: Tue Feb 14 14:57:24 2017 +0100 libblkid: fix BLKID_PARTS_FORCE_GPT usage Now wipefs always inform about MBR as about PMBR. That's bug. Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 7d84cfe4979a95a3933010d9b7691ce4f7c3a2be Author: Karel Zak Date: Fri Feb 10 17:28:07 2017 +0100 findmnt: use line separator for --poll output Addresses: https://github.com/karelzak/util-linux/issues/409 Signed-off-by: Karel Zak misc-utils/findmnt.c | 2 ++ 1 file changed, 2 insertions(+) commit b4ea0cd7a3cf586d496b0d0f3c7c87ac0b71f5cc Author: Karel Zak Date: Fri Feb 10 16:45:18 2017 +0100 libfdisk: fix fdisk_set_wipe_area() calls The function expects size in sectors rather than in bytes. Addresses: https://github.com/karelzak/util-linux/issues/410 Signed-off-by: Karel Zak libfdisk/src/context.c | 12 ++++-------- libfdisk/src/wipe.c | 4 +++- 2 files changed, 7 insertions(+), 9 deletions(-) commit e32eae73127375ba0828b2b142e697e270012beb Author: Karel Zak Date: Fri Feb 10 12:54:23 2017 +0100 sfdisk: --quiet fixes Addresses: https://github.com/karelzak/util-linux/issues/412 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 10 ++++++---- libfdisk/src/alignment.c | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) commit 66a04ff4fc7c9edf67d38a8687f00c72e6ae426b Author: Carlos Santos Date: Wed Feb 8 13:27:36 2017 -0200 build-sys: improve detection of the "isnan" function in uClibc Since commit beceb14b450ded6560ed743634a5e80604a8edf3, MATH_LIBS is set to "-lm" when the isnan function is detected. In uClibc, however, isnan is a macro that calls __isnan, __isnanf, or __isnanl, depending on the size of the argument (double, float or long double). Fixes: http://autobuild.buildroot.net/results/2c2/2c29a78ed81ca844a87dcd076ab3e14ea080296d/ http://autobuild.buildroot.net/results/404/404b10f359b2ae8a7216729fa1bab37fed2d3d4c/ Signed-off-by: Carlos Santos configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 1425cbced6e2ac3f6c13d2d2bd25affe5f3c3c58 Author: Karel Zak Date: Thu Feb 9 11:21:49 2017 +0100 umount: exclude selinuxfs from --all Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1417722 Signed-off-by: Karel Zak sys-utils/umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4bb57955ec930e281d52a39619c5768e20f4b4a0 Author: Karel Zak Date: Wed Feb 1 16:12:55 2017 +0100 libmount: make rootfs lookup by parent-id more robust The root FS id really does not have to be the smallest one. [kzak@redhat.com: - backported to stable branch without reg.test] Reported-by: Michal Soltys Signed-off-by: Karel Zak libmount/src/tab.c | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) commit 6d689e1e1b5ab1b5cce2095dafa1540f2de6e033 Author: Karel Zak Date: Wed Feb 1 15:34:57 2017 +0100 cfdisk: support UI refresh on ^L Addresses: https://github.com/karelzak/util-linux/issues/404 Signed-off-by: Karel Zak disk-utils/cfdisk.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit b018571132cb8c9fece3d75ed240cc74cdb5f0f7 Author: Karel Zak Date: Wed Feb 1 11:58:09 2017 +0100 su: properly clear child PID Reported-by: Tobias Stöckmann Signed-off-by: Karel Zak login-utils/su-common.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit 6955781df02dd4bb6ead50ca985e6fe032e5e726 Author: Karel Zak Date: Tue Jan 31 20:55:07 2017 +0100 lscpu: don't use path_exist() before path_fopen() Signed-off-by: Karel Zak sys-utils/lscpu.c | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) commit 4714a64dcdd8091bfdf6751957da2512a59b4280 Author: Karel Zak Date: Tue Jan 31 16:18:11 2017 +0100 docs: add BUG REPORTING section to README Addresses: https://github.com/karelzak/util-linux/issues/405 Signed-off-by: Karel Zak README | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit c70a05e55e3c2d7493cd44c90960db7ae4884316 Author: Karel Zak Date: Tue Jan 31 13:44:43 2017 +0100 lscpu: make osrelease file optional Signed-off-by: Karel Zak sys-utils/lscpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 3673936f84bcf0b3ac5bff37394180bed7d692d2 Author: Stanislav Brabec Date: Mon Jan 30 17:01:50 2017 +0100 lscpu: Detect Windows Subsystem for Linux Windows 10 implements Windows Subsystem for Linux (WSL). WSL does not implement support for SIGSEGV handler, which is used inside is_vmware_platform(). As a result, lscpu crashes there. Implement WSL detection, and as a side effect, work around the crash. Note that none of existing virtualization types exactly matches. But the the closest would be "container". References: Provide a way to positively detect WSL from an app compiled on Linux. https://github.com/Microsoft/BashOnWindows/issues/423 missing support for SIGSEGV handler https://github.com/Microsoft/BashOnWindows/issues/1637 Signed-off-by: Stanislav Brabec sys-utils/lscpu.c | 20 +++++++++++++++++++- sys-utils/lscpu.h | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) commit fb6ce9b0fb5552b7658f2c8bcdd3c438e30c6626 Author: Stanislav Brabec Date: Wed Jan 25 18:30:26 2017 +0100 fstrim: de-duplicate btrfs sub-volumes There was a comparison of roots in uniq_fs_source_cmp(). As we care only on device names, comparing roots makes only a little sense, and it breaks on btrfs. As a result, FITRIM ioctl() is called for each subvolume. But by design, only one TRIM is needed for the whole btrfs volume. Remove it to be able to de-duplicate btrfs subvolumes. Fixes opensuse #1020077. Signed-off-by: Stanislav Brabec sys-utils/fstrim.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) commit c26866864f4ab4e9050a0acc26edfc83d2df246d Author: Pedro Miguel Carvalho Date: Sun Jan 29 12:03:23 2017 +0000 findmnt: flush stdout after each (un)(re)mount event, when polling. Addresses: karelzak#407 misc-utils/findmnt.c | 1 + 1 file changed, 1 insertion(+) commit 4e6fa51616863d5675ff3bcae995ce61cc18e11c Author: Karel Zak Date: Sat Jan 28 12:39:52 2017 +0100 logger: support sub-trees in the ID for RFC5424 The current code supports @ only, but we also need @.[. ...] RFC5424: 7.2.2 enterpriseId: In general, only the IANA-assigned private enterprise number is needed (a single number). An enterprise might decide to use sub-identifiers below its private enterprise number. If sub- identifiers are used, they MUST be separated by periods and be represented as decimal numbers. An example for that would be "32473.1.2". Addresses: https://github.com/karelzak/util-linux/issues/406 Signed-off-by: Karel Zak misc-utils/logger.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) commit c3754dc2ae64c9dbc91aad796ed6d4e183f779a7 Author: Karel Zak Date: Sat Jan 28 12:39:30 2017 +0100 lib/strutils: return end pointer by isdigit_string() Signed-off-by: Karel Zak include/strutils.h | 8 ++++++-- lib/strutils.c | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) commit 0d533c6bc47796a22ba23f89778dd18fba708d16 Author: Karel Zak Date: Wed Jan 25 12:00:27 2017 +0100 libfdisk: (gpt) add check for entries array size Signed-off-by: Karel Zak libfdisk/src/gpt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit a89d4c992f486f4b04c7035cfd937b6372df21f2 Author: Alden Tondettar Date: Mon Jan 23 23:28:00 2017 -0700 libblkid: Fix out of bounds reads on bad GPT header If a GUID Partition Table claims to have more than 2**25 entries, or if the size of each entry is not exactly 128 bytes, libblkid can read out of bounds and segfault. Perform the appropriate checks. [kzak@redhat.com: - fix typo] Signed-off-by: Alden Tondettar Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)