Changes between v2.27-rc2 and v2.27 -------------------------------------------- commit cd150a429d15a7c96918aa2432532ced0bd27465 Author: Karel Zak Date: Mon Sep 7 09:55:19 2015 +0200 build-sys: release++ (v2.27) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit dbf5898fcae07e3ed56cabfa204f7d5adc845590 Author: Karel Zak Date: Mon Sep 7 09:53:37 2015 +0200 docs: update v2.27-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.27-ReleaseNotes | 41 +++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) commit 8cc98eab8c297f43b360d9fcee355ea7f03f1b11 Author: Karel Zak Date: Mon Sep 7 09:50:08 2015 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 2 ++ 1 file changed, 2 insertions(+) commit ac31e6f8238dd5cbda3ba29913315b740e37a41d Author: Karel Zak Date: Mon Sep 7 09:47:51 2015 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 378 +++++++++++++-------------- po/cs.po | 378 +++++++++++++-------------- po/da.po | 378 +++++++++++++-------------- po/de.po | 378 +++++++++++++-------------- po/es.po | 378 ++++++++++++++------------- po/et.po | 378 +++++++++++++-------------- po/eu.po | 372 ++++++++++++++------------- po/fi.po | 373 ++++++++++++++------------- po/fr.po | 378 +++++++++++++-------------- po/gl.po | 372 ++++++++++++++------------- po/hr.po | 370 ++++++++++++++------------- po/hu.po | 378 +++++++++++++-------------- po/id.po | 375 +++++++++++++-------------- po/it.po | 378 +++++++++++++-------------- po/ja.po | 751 ++++++++++++++---------------------------------------- po/nl.po | 375 ++++++++++++++------------- po/pl.po | 378 ++++++++++++++------------- po/pt_BR.po | 375 ++++++++++++++------------- po/ru.po | 378 +++++++++++++-------------- po/sl.po | 378 +++++++++++++-------------- po/sv.po | 378 +++++++++++++-------------- po/tr.po | 378 +++++++++++++-------------- po/uk.po | 378 ++++++++++++++------------- po/util-linux.pot | 371 ++++++++++++++------------- po/vi.po | 378 +++++++++++++-------------- po/zh_CN.po | 375 ++++++++++++++------------- po/zh_TW.po | 375 +++++++++++++-------------- 27 files changed, 5159 insertions(+), 5373 deletions(-) commit 242d1044d2cbe307c7d403294b94fa9dfdad352d Author: Yuri Chornoivan Date: Mon Sep 7 09:42:15 2015 +0200 po: update uk.po (from translationproject.org) po/uk.po | 1022 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 422 insertions(+), 600 deletions(-) commit 7a9dfc96a47c29c7d4edae17d8d4a38976201150 Author: Jakub Bogusz Date: Mon Sep 7 09:42:15 2015 +0200 po: update pl.po (from translationproject.org) po/pl.po | 1216 ++++++++++++++++++++------------------------------------------ 1 file changed, 391 insertions(+), 825 deletions(-) commit 00a96dbb4ee2024874661ecb9109234f0ea9ad06 Author: Takeshi Hamasaki Date: Mon Sep 7 09:42:15 2015 +0200 po: update ja.po (from translationproject.org) po/ja.po | 754 ++++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 476 insertions(+), 278 deletions(-) commit 8e4f54d00e7de38528cc36cb28dfb00ab9ceb34b Author: Antonio Ceballos Roa Date: Mon Sep 7 09:42:14 2015 +0200 po: update es.po (from translationproject.org) po/es.po | 1129 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 475 insertions(+), 654 deletions(-) commit b632f55c29cf516af266c92304844adb98ef5fbd Author: Michal Schmidt Date: Thu Sep 3 13:41:19 2015 +0200 logger: improve logger --journald man page example The example use of logger --journald in the man page has a couple of flaws: - It's missing a "MESSAGE=" field. This is supposed to be the primary human readable text. Without it the log entry is invisible in a plain "journalctl" output. - The MESSAGE_ID is supposed to be a 128-bit hexadecimal string that globally uniquely identifies the message type. One can generate such an id with "journalctl --new-id". This patches fixes the above and also changes the example to use a here-document instead of printf. In my opinion it makes the expected multi-line data format more obvious. Signed-off-by: Michal Schmidt misc-utils/logger.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit e8c000348153f7e5e3ead8bad8f89ec122f6fdb5 Author: Andreas Henriksson Date: Mon Sep 7 08:50:39 2015 +0200 hwclock: fix format warning in alpha code Signed-off-by: Andreas Henriksson sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9d0655fe2da4e22f9f2762a5d4fbd1941c53ecc2 Merge: 58dda17 e46a7f8 Author: Karel Zak Date: Fri Sep 4 10:07:28 2015 +0200 Merge branch 'build-sys' of https://github.com/kolyshkin/util-linux * 'build-sys' of https://github.com/kolyshkin/util-linux: build-sys: allow gettext 0.17 to be used build-sys: allow autoconf < 2.64 to be used commit 58dda170fb28d394118ff8a92ea51d4603def18f Author: Kir Kolyshkin Date: Wed Sep 2 17:48:56 2015 -0700 libmount: typo fixes I was reading the code and found these mountinfo typos. Signed-off-by: Kir Kolyshkin libmount/src/init.c | 2 +- libmount/src/monitor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit e46a7f8efed7f7e4d7c54153061a0a19b0d098e4 Author: Kir Kolyshkin Date: Wed Sep 2 18:20:22 2015 -0700 build-sys: allow gettext 0.17 to be used The requirement for gettext 0.18 was introduced by commit e3e16717 to pass --no-wrap option to msgmerge tool, which I guess improves the process of updating po files for translators. At the same time, unfortunately, it makes building from git fail on a RHEL/CentOS 6 system, as it comes with gettext 0.17. Use the existing hack in autogen.sh to allow building with gettext 0.17, with an appropriate warning so that the user is aware: warning: forcing autopoint to use old gettext 0.17 The only negative side effect of this patch I am aware of is if gettext-0.17 is used, then --no-wrap is not being passed to msgmerge (although msgmerge 1.17 already supports it), because Makefile.in.in that comes with gettext 0.17 doesn't have MSGMERGE_OPTIONS. From my POV, this is way better than to not being able to build. NOTE if gettext 0.18.3 is installed, it is used and this patch doesn't change anything; it only allows gettext 1.17 to be used if this is all we have. Cc: Benno Schulenberg Cc: Sami Kerola Signed-off-by: Kir Kolyshkin autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a8afc8c66606c0fd68b46e03bed2112143d0bf1e Author: Kir Kolyshkin Date: Wed Sep 2 17:50:15 2015 -0700 build-sys: allow autoconf < 2.64 to be used Since commit 50d096a macro m4_ifblank is used, but as it is only available in autoconf-2.64, on CentOS 6 system we end up with: > $ ./autogen.sh > configure:25396: error: possibly undefined macro: m4_ifblank > If this token and others are legitimate, please use > m4_pattern_allow. > See the Autoconf documentation. > [root@kir-ovz2 util-linux]# autoconf --version > autoconf (GNU Autoconf) 2.63 So, the obvious thing to do would be to raise AC_PREREQ to 2.64 in configure.ac. But, given the facts that - autoconf 2.64 is not available for RHEL/CentOS 6, - the only need is one small macro, it's better to just add the missing macro. While at it, add the m4_ifnblank, too. Signed-off-by: Kir Kolyshkin m4/ul.m4 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) commit dd49c7d6d666489401d2e65d381f256cc931c50b Author: Karel Zak Date: Wed Sep 2 14:43:58 2015 +0200 libfdisk: (gpt) reorder only when necessary Signed-off-by: Karel Zak libfdisk/src/dos.c | 3 +-- libfdisk/src/gpt.c | 13 +++++++++++-- libfdisk/src/label.c | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) commit 2eca78be4719bc41ed34de588be39a239338bd6a Author: Karel Zak Date: Wed Sep 2 10:56:24 2015 +0200 mount: remove XFS from man page, xfsprogs provides xfs(5) Signed-off-by: Karel Zak sys-utils/mount.8 | 198 +----------------------------------------------------- 1 file changed, 3 insertions(+), 195 deletions(-) commit e03b613e8d65d8e705ce5850ed05b3a156097e75 Author: Karel Zak Date: Tue Sep 1 12:37:18 2015 +0200 lscpu: fix read_hypervisor_powerpc() logic We care about /proc/device-tree/compatible content... The patch also removes unnecessary path_exist(), it seems good enough to call open() rather than access() + open(). Addresses: https://github.com/karelzak/util-linux/issues/218 Signed-off-by: Karel Zak sys-utils/lscpu.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) commit bc8ec36f628ded08f437b9165208396b9b3b4435 Author: Karel Zak Date: Mon Aug 31 14:10:24 2015 +0200 tests: (blkid) update drbdmanage Signed-off-by: Karel Zak tests/expected/blkid/low-probe-drbdmanage-control-volume | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5cea5be05ffacc4a1790d5c3207ba4a0f6f77e7a Author: Karel Zak Date: Mon Aug 31 13:24:33 2015 +0200 libfdisk: (bsd) add note about non-written parental MBR Signed-off-by: Karel Zak libfdisk/src/bsd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 7caa6b37be851e9fcffdb7ab79a6149fd5aec0a6 Author: Karel Zak Date: Mon Aug 31 13:23:55 2015 +0200 libblkid: use 'VERSION' rather than 'PERSISTENCE_VERSION' Signed-off-by: Karel Zak libblkid/src/superblocks/drbdmanage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 7430affdd9f2a33019a75a589e4357c9be479657 Author: Karel Zak Date: Mon Aug 31 11:49:45 2015 +0200 libblkid: (drbdmanage) improve version setting code Signed-off-by: Karel Zak libblkid/src/superblocks/drbdmanage.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) commit 928f209ceae3fe3995d4ff926bca0d60a23cf744 Author: Karel Zak Date: Mon Aug 31 11:38:58 2015 +0200 libmount: fix compiler warning [-Wdiscarded-qualifiers] Signed-off-by: Karel Zak libmount/src/tab_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1b76608ef83d79ccba4b8f4f5eb2a50cf48b9519 Author: Chen Qi Date: Mon Aug 31 16:23:46 2015 +0800 login: replace siginterrupt with sigaction [kzak@redhat.com: - POSIX.1-2008 marks siginterrupt() as obsolete] Signed-off-by: Chen Qi login-utils/login.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 37edac9a0ca83f311279d2e49bacd6ac80310dc8 Author: Chen Qi Date: Mon Aug 31 16:23:45 2015 +0800 build-sys: include errno.h instead of argp.h configure should include errno.h instead of argp.h when checking for presence of program_invocation_short_name uclibc defines this to be const char* unlike util-linux-ng which defines this to be char* so this error goes unnoticed on glibc/eglibc systems. here is the error it fixes in file included from mountP.h:14:0, from cache.c:29: /home/kraj/work/slugos/build/tmp-slugos-uclibc/sysroots/nslu2le/usr/include/errno.h:55:46: error: conflicting types for '__progname' ../../../include/c.h:118:14: note: previous declaration of '__progname' was here make[3]: *** [cache.lo] Error 1 Signed-off-by: Khem Raj Signed-off-by: Jonathan Liu configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9ad7c4c8edb912403e46deaed3bb86eca3a8ba84 Author: Karel Zak Date: Mon Aug 31 10:46:56 2015 +0200 tests: (cal) update US week numbers Signed-off-by: Karel Zak tests/expected/cal/bigyearw | 156 ++++----- tests/expected/cal/colorw | 48 +-- tests/expected/cal/jan1753 | 12 +- tests/expected/cal/sep1752w | 148 ++++---- tests/expected/cal/weekarg | 40 +-- tests/expected/cal/weeknum | 816 ++++++++++++++++++++++---------------------- 6 files changed, 610 insertions(+), 610 deletions(-) commit 03f8bc1f327b21d4a5311733f175ceabda5f3f2d Author: Sami Kerola Date: Thu Aug 27 14:21:29 2015 +0100 cal: check biggest week number correctly when highlighting This allows Sunday based week 54 be highlighted, and deny week 54 for Monday based weeks when year has only 52 weeks. Signed-off-by: Sami Kerola misc-utils/cal.c | 2 +- tests/expected/cal/weekarg | 20 ++++++++++++++++++++ tests/ts/cal/weekarg | 26 ++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) commit e1abe57e18facab690d70a6cd02139cb1066c25f Author: Sami Kerola Date: Thu Aug 27 14:21:28 2015 +0100 cal: replace magic constants with symbolical values This makes it easier to know what the values in guestion represent. Signed-off-by: Sami Kerola misc-utils/cal.c | 73 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 32 deletions(-) commit efafeaf684a1d7cd7d65b205470d5438014be7cd Author: Sami Kerola Date: Thu Aug 27 14:21:26 2015 +0100 cal: correct gregorian week numbering Jan 1 is always First week, and year always has 53 weeks. The week 53 may be cut short, e.g., it may and often has fewer than 7 days. Every year 28 year intervals US week numbering continues all the way to 54th week, such as 1972, 2000, and 2028. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1249486 Reported-by: Michal Toth Signed-off-by: Sami Kerola misc-utils/cal.c | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) commit 32c9ce4bafa76003f732b6e60e794c15a1942ca8 Author: Karel Zak Date: Mon Aug 31 10:11:01 2015 +0200 lib/sysfs: make sysfs_next_subsystem() more robust Signed-off-by: Karel Zak lib/sysfs.c | 2 ++ 1 file changed, 2 insertions(+) commit 56e78cb53252a983f6614f4bfd89e5e696e2a2f1 Author: Andreas Henriksson Date: Tue Aug 25 18:27:41 2015 +0200 lsblk: fix resource leak [coverity scan] Signed-off-by: Andreas Henriksson misc-utils/lsblk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 74819b5f6421cb06029e8355ea8b06190be9b7c1 Author: Andreas Henriksson Date: Tue Aug 25 18:27:40 2015 +0200 lib/strutil: fix parse_switch resource leak [coverity scan] Signed-off-by: Andreas Henriksson lib/strutils.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 9c9ebb988e7ab14717cbf7262ffa3cf8b5f3a551 Merge: 268a62b 930f9ea Author: Karel Zak Date: Fri Aug 28 10:13:42 2015 +0200 Merge branch 'escaped-test' of https://github.com/kees/util-linux * 'escaped-test' of https://github.com/kees/util-linux: tests: add very long mount line to libmount mtab commit 268a62bf389a0fd5ba1b0649f6e8afab9e97bc81 Author: Karel Zak Date: Thu Aug 27 23:07:15 2015 +0200 docs: fix typo Reported-by: Andreas Henriksson Signed-off-by: Karel Zak Documentation/howto-tests.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 930f9ea0d8fda7f55206e9007aafa6b8e490652f Author: Kees Cook Date: Wed Aug 26 14:39:21 2015 -0700 tests: add very long mount line to libmount mtab Very long mount lines from the kernel (either from escaping or from giant option lists) could exceed BUFSIZ, leading to parsing failures. This adds a test for the condition. Signed-off-by: Kees Cook tests/expected/libmount/tabfiles-parse-mtab | 7 +++++++ tests/expected/libmount/tabfiles-py-parse-mtab | 7 +++++++ tests/ts/libmount/files/mtab | 1 + 3 files changed, 15 insertions(+) commit eac8f358b7e58aab81e0ac9a9bdb0bfdafba1f77 Author: Karel Zak Date: Thu Aug 27 16:04:42 2015 +0200 docs: add notest about drone.io and travis-ci Signed-off-by: Karel Zak Documentation/howto-tests.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) commit 1198e390514e6c0ce34411982228bb773e45ae5a Author: Karel Zak Date: Thu Aug 27 11:07:39 2015 +0200 libblkid: (drbdmanage) add magic strings array terminator Signed-off-by: Karel Zak libblkid/src/superblocks/drbdmanage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit d92b8c3ba138f07a7432b367feb599141ce76121 Author: Karel Zak Date: Thu Aug 27 10:49:39 2015 +0200 libmount: handle arbitrary line length for mounts Based on patch from Kees Cook, he wrote: > The kernel's maximum path length is PATH_MAX (4096). The use of BUFSIZ > (8192) would seem sufficient for reading mountinfo files, but it's > not. Paths may contain escaped characters (requiring 4x as many bytes > to read), and filesystem options are of unknown length. To avoid > mounts being either intentionally or unintentionally hidden from > libmount and its users, we must accept arbitrary length lines when > parsing. > > Long valid entries are currently ignored, with warnings like this: > mount: /proc/self/mountinfo: parse error: ignore entry at line 11. > mount: /proc/self/mountinfo: parse error: ignore entry at line 12. > > Instead of using a malloc on every line parsed from mount files, do it > once per mount file context, growing it as needed. The general case > will never grow it. I have moved the parser stuff to the new struct libmnt_parser, maybe we can move more things (e.g. libmnt_table->fmt) to this struct later. Reported-by: Kees Cook Signed-off-by: Karel Zak libmount/src/tab_parse.c | 81 +++++++++++++++++++++++++++++------------------- 1 file changed, 49 insertions(+), 32 deletions(-) commit 0a9e11af222dfc9455e9e6f6099e9aca4ae79ee8 Merge: 3a13129 75a8e72 Author: Karel Zak Date: Wed Aug 26 10:52:49 2015 +0200 Merge branch 'master' of https://github.com/yurchor/util-linux * 'master' of https://github.com/yurchor/util-linux: Fix trivial typos commit 75a8e726e9308e4fd6788b58a340a1c9495645a7 Author: Yuri Chornoivan Date: Tue Aug 25 20:02:53 2015 +0300 Fix trivial typos disk-utils/fdisk.c | 2 +- libfdisk/src/dos.c | 2 +- libfdisk/src/table.c | 2 +- sys-utils/zramctl.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 3a131296d192d2920d8f3f576c9822a2ac46f65d Author: Karel Zak Date: Tue Aug 25 15:43:03 2015 +0200 dmesg: highlight -T issues in docs Signed-off-by: Karel Zak sys-utils/dmesg.1 | 6 ++++-- sys-utils/dmesg.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) commit 049bfa066c8063585a8b685a059dd2a19f25b99c Author: Karel Zak Date: Tue Aug 25 15:34:09 2015 +0200 fallocate: fix error message FALLOC_FL_KEEP_SIZE flag is generic and used in many situations, "-n" in the error message does not make sense. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1146152 Signed-off-by: Karel Zak sys-utils/fallocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)