Changes between v2.29-rc1 and v2.29-rc2 -------------------------------------------- commit d7b32ebe123a577a4fe8a73d6d3926434999e17d Author: Karel Zak Date: Wed Oct 19 14:33:55 2016 +0200 build-sys: release++ (v2.29-rc2) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit c555686771dbb0a4017e79d25139002a0979dc24 Author: Karel Zak Date: Wed Oct 19 14:32:33 2016 +0200 docs: update v2.29-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.29-ReleaseNotes | 48 ++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) commit e68f36e0c4d62e77a9e6ae858604c801ef6dbac9 Author: Karel Zak Date: Wed Oct 19 14:30:19 2016 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 2 ++ 1 file changed, 2 insertions(+) commit b40dc5a92042b372902be62585ef7f5dd0bc5c38 Author: Karel Zak Date: Wed Oct 19 14:27:56 2016 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 1000 ++++++++++++++++++++++++++-------------------------- po/cs.po | 1000 ++++++++++++++++++++++++++-------------------------- po/da.po | 1000 ++++++++++++++++++++++++++-------------------------- po/de.po | 1000 ++++++++++++++++++++++++++-------------------------- po/es.po | 1000 ++++++++++++++++++++++++++-------------------------- po/et.po | 1004 +++++++++++++++++++++++++++-------------------------- po/eu.po | 1000 ++++++++++++++++++++++++++-------------------------- po/fi.po | 1000 ++++++++++++++++++++++++++-------------------------- po/fr.po | 1000 ++++++++++++++++++++++++++-------------------------- po/gl.po | 1000 ++++++++++++++++++++++++++-------------------------- po/hr.po | 1000 ++++++++++++++++++++++++++-------------------------- po/hu.po | 1000 ++++++++++++++++++++++++++-------------------------- po/id.po | 1000 ++++++++++++++++++++++++++-------------------------- po/it.po | 1000 ++++++++++++++++++++++++++-------------------------- po/ja.po | 1000 ++++++++++++++++++++++++++-------------------------- po/nl.po | 1000 ++++++++++++++++++++++++++-------------------------- po/pl.po | 1000 ++++++++++++++++++++++++++-------------------------- po/pt_BR.po | 1000 ++++++++++++++++++++++++++-------------------------- po/ru.po | 1000 ++++++++++++++++++++++++++-------------------------- po/sl.po | 1000 ++++++++++++++++++++++++++-------------------------- po/sv.po | 1000 ++++++++++++++++++++++++++-------------------------- po/tr.po | 1000 ++++++++++++++++++++++++++-------------------------- po/uk.po | 1000 ++++++++++++++++++++++++++-------------------------- po/util-linux.pot | 986 ++++++++++++++++++++++++++-------------------------- po/vi.po | 1000 ++++++++++++++++++++++++++-------------------------- po/zh_CN.po | 1000 ++++++++++++++++++++++++++-------------------------- po/zh_TW.po | 1000 ++++++++++++++++++++++++++-------------------------- 27 files changed, 13518 insertions(+), 13472 deletions(-) commit 1c5381de55dc7b18da61611711eeb8e80025c2e9 Author: Karel Zak Date: Wed Oct 19 14:21:15 2016 +0200 tests: update build-sys expected output The su(1) change based on libseccomp has been reverted. Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 4 ++-- tests/expected/build-sys/config-all-non-nls | 4 ++-- tests/expected/build-sys/config-audit | 4 ++-- tests/expected/build-sys/config-chfnsh-libuser | 4 ++-- tests/expected/build-sys/config-chfnsh-no-password | 4 ++-- tests/expected/build-sys/config-chfnsh-pam | 4 ++-- tests/expected/build-sys/config-core | 4 ++-- tests/expected/build-sys/config-devel | 4 ++-- tests/expected/build-sys/config-devel-non-docs | 4 ++-- tests/expected/build-sys/config-non-libblkid | 4 ++-- tests/expected/build-sys/config-non-libmount | 4 ++-- tests/expected/build-sys/config-non-libs | 4 ++-- tests/expected/build-sys/config-non-libsmartcols | 4 ++-- tests/expected/build-sys/config-non-libuuid | 4 ++-- tests/expected/build-sys/config-non-nls | 4 ++-- tests/expected/build-sys/config-selinux | 4 ++-- tests/expected/build-sys/config-slang | 4 ++-- tests/expected/build-sys/config-static | 4 ++-- 18 files changed, 36 insertions(+), 36 deletions(-) commit 2687686cf467210ce8051a1e25ea0b7032442c53 Author: Karel Zak Date: Wed Oct 19 13:33:15 2016 +0200 cramfs: revert crc32 changes We cannot use our crc32 without changes in the code, because our ul_crc32() assumes that post-conditioning (xor) is done by application. The zlib implementation does everything. Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 19 ++++++++++++------- disk-utils/mkfs.cramfs.c | 13 +++++++++---- 2 files changed, 21 insertions(+), 11 deletions(-) commit 98fd13a1690a0ff9906a9e03dd162eacfee47d1e Author: Karel Zak Date: Wed Oct 19 12:17:19 2016 +0200 cramfs: add missing includes Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 1 + disk-utils/mkfs.cramfs.c | 1 + 2 files changed, 2 insertions(+) commit 7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1 Author: Gustavo Zacarias Date: Mon Oct 10 17:54:24 2016 -0300 lib/crc32: prefix public functions Make the publicly-visible crc32 library functions prefixed by ul_, such as crc32() -> ul_crc32(). This is because it clashes with the crc32() function from zlib. For newer versions of glib (2.50+) zlib and libblkid are required dependencies and otherwise results in build failure when building statically. Signed-off-by: Gustavo Zacarias disk-utils/fsck.cramfs.c | 12 ++++++------ disk-utils/mkfs.cramfs.c | 6 +++--- include/crc32.h | 4 ++-- lib/crc32.c | 4 ++-- libblkid/src/partitions/gpt.c | 2 +- libblkid/src/superblocks/nilfs.c | 6 +++--- libfdisk/src/gpt.c | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) commit 6a9aaf54915a454c21a16da94b2ed971158b416c Author: Karel Zak Date: Tue Oct 18 12:08:50 2016 +0200 fstrim: add -v to the systemd service It seems to be good idea to have more verbose output in the log files for weekly fstrim execution. The verbose adds details (one line) for each filesystem. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1337304 Signed-off-by: Karel Zak sys-utils/fstrim.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c8805632003c8fb39d8ebf9c921e9c1a90bfa52a Author: Karel Zak Date: Fri Oct 7 16:10:28 2016 +0200 cal: support abbreviated month names Signed-off-by: Karel Zak misc-utils/cal.1 | 6 +++--- misc-utils/cal.c | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 4 deletions(-) commit 535fd6d2b6b3fec9507b2e435460be317e0485a1 Author: Karel Zak Date: Fri Oct 7 16:02:36 2016 +0200 cal: support alone month name parameter For example 'cal August' to print August for the current year. Signed-off-by: Karel Zak misc-utils/cal.1 | 13 ++++++++----- misc-utils/cal.c | 10 ++++++++-- 2 files changed, 16 insertions(+), 7 deletions(-) commit e5927d541147dab344d274f02e7c467403883b3f Author: Karel Zak Date: Fri Oct 7 15:44:18 2016 +0200 cal: cleanup man page Signed-off-by: Karel Zak misc-utils/cal.1 | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) commit c49fb9cacdce5ba5c26793f5375e7778fb41601d Author: Karel Zak Date: Fri Oct 7 15:24:32 2016 +0200 cal: remove err message from monthname_to_number() Signed-off-by: Karel Zak misc-utils/cal.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit 8027dabdd24328ff00794a08c421ac30ec153e8c Author: Karel Zak Date: Fri Oct 7 10:57:37 2016 +0200 docs: update AUTHORS file Addresses: https://github.com/karelzak/util-linux/commit/b86db3c7cff489b8ce4cf9fc58176a78a1797bdc#commitcomment-19326504 Signed-off-by: Karel Zak AUTHORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f3b0d1505ed21a4284a4fe54d2d9b7dea6f4b62b Author: Stanislav Brabec Date: Wed Oct 5 20:55:42 2016 +0200 losetup --nooverlap: fix typo Option is documented and used as --nooverlap, bud coded as --nooverlaps. --nooverlap is considered as shortened option, making the typo invisible. Signed-off-by: Stanislav Brabec sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b56b13684e01ab56738e602b35a2c133e8f9b92a Author: Tobias Stoeckmann Date: Mon Oct 3 22:06:23 2016 +0200 rev: Avoid out of boundary read Check if the length of the parsed string is at least 1, otherwise an out of boundary read would occur. text-utils/rev.c | 3 +++ 1 file changed, 3 insertions(+) commit 2571cf0f9bfa769bdf9c8fba25684fa0330a2b57 Author: Tobias Stoeckmann Date: Mon Oct 3 22:05:46 2016 +0200 rev: Avoid calling free in a signal handler free() is not a safe function for a signal handler. The next line calls _exit() anyway, so there is no need for resource management. text-utils/rev.c | 1 - 1 file changed, 1 deletion(-) commit e8c20678f3700105ea9299ad481ce3d70419bb9e Author: Tobias Stoeckmann Date: Mon Oct 3 22:05:03 2016 +0200 libblkid: Avoid strlen if only first char is checked A strlen() call can lead to out of boundary read access if the superblock in question has no nul-bytes after the string. This could be avoided by using strnlen() but the calls in question merely existed to check if the string length is not 0. By changing the calls as proposed with this diff, these files are in sync with other superblock files, which do exactly the same. libblkid/src/superblocks/befs.c | 2 +- libblkid/src/superblocks/ext.c | 2 +- libblkid/src/superblocks/jfs.c | 2 +- libblkid/src/superblocks/nilfs.c | 2 +- libblkid/src/superblocks/romfs.c | 2 +- libblkid/src/superblocks/xfs.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) commit c39447445c12a21a85e42bc8dd7d70091298349d Author: Karel Zak Date: Thu Oct 6 10:28:33 2016 +0200 docs: update infor about TIOCSTI Signed-off-by: Karel Zak Documentation/TODO | 4 ++++ Documentation/releases/v2.29-ReleaseNotes | 11 +++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) commit 2a8bdaf364a97f7fac7ef110be6319c80539adf9 Merge: 2df4efb 219452a Author: Karel Zak Date: Wed Oct 5 12:11:44 2016 +0200 Merge branch 'master' of https://github.com/Zeuh/util-linux commit 2df4efb9345e0b63d2ab30d4cfd747045fa51da4 Author: Karel Zak Date: Wed Oct 5 11:25:04 2016 +0200 wdct: mark usage() as noreturn [coverity scan] sys-utils/wdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit eeea7ef59035f22e049b2cb1b295f44ef7e236ea Author: Karel Zak Date: Wed Oct 5 11:20:26 2016 +0200 swapoff: fix mem leak [coverity scan] sys-utils/swapoff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 9a8fada18bf81e820c649f0c56a57959ecf59484 Author: Karel Zak Date: Wed Oct 5 11:12:45 2016 +0200 setarch: let's keep analyzer happy [coverity scan] sys-utils/setarch.c | 1 + 1 file changed, 1 insertion(+) commit a325f3c2066f5790e3a611157deffa74d975f8df Author: Karel Zak Date: Wed Oct 5 11:11:45 2016 +0200 rtcwake: make sure buffer is zero terminated [coverity scan] sys-utils/rtcwake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3e11eaa831916e4eecdca695f4b3e69b2e7d0768 Author: Karel Zak Date: Wed Oct 5 10:53:02 2016 +0200 lsns: fix mem leak [coverity scan] sys-utils/lsns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 12fbe36f0fb208a25283b2752fd361b7cd358020 Author: Karel Zak Date: Wed Oct 5 10:38:28 2016 +0200 findmnt: (verify) fix mem leak [coverity scan] misc-utils/findmnt-verify.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 17dd04c92ad82566984dc9f37d2e9775acadc96b Author: Karel Zak Date: Tue Oct 4 20:15:09 2016 +0200 isosize: fix read() result check disk-utils/isosize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9e13b1c1c7116678722c52ead4e79fe5085bb2b2 Author: Karel Zak Date: Tue Oct 4 16:33:09 2016 +0200 libmount: fix null-checking [coverity scan] Signed-off-by: Karel Zak libmount/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e12e917bad78378ae3cfffcb12d0a9f7a1c3eedc Author: Karel Zak Date: Tue Oct 4 16:23:52 2016 +0200 libblkid: check blkid_parse_tag_string() return code [coverity scan] Signed-off-by: Karel Zak libblkid/src/evaluate.c | 3 +-- libblkid/src/resolve.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) commit 0b27fcc189fc772613ed86b315bc211d7a86bc3b Author: Karel Zak Date: Tue Oct 4 16:18:16 2016 +0200 lib/randutils: remove unnecessary function Signed-off-by: Karel Zak include/randutils.h | 1 - lib/randutils.c | 12 +++--------- 2 files changed, 3 insertions(+), 10 deletions(-) commit a86b9f252c9d04a23cee9422b4e03ab3d79e348b Author: Karel Zak Date: Tue Oct 4 16:14:48 2016 +0200 lib/mbsalign: free buffer after error [coverity scan] Signed-off-by: Karel Zak lib/mbsalign.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 2d1fa4fdc3302b50f0263604a46e00c7b88ecc24 Author: Karel Zak Date: Tue Oct 4 16:08:55 2016 +0200 sfdisk: cleanup before going out of scope [coverity scan] Signed-off-by: Karel Zak disk-utils/sfdisk.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) commit 6387bf33dbfd36fd20eeaa29479ba3e2dc9a3edf Author: Karel Zak Date: Tue Oct 4 16:03:11 2016 +0200 sfdisk: free before going out of scope [coverity scan] Signed-off-by: Karel Zak disk-utils/sfdisk.c | 2 ++ 1 file changed, 2 insertions(+) commit 4c906abea2acd9d1ac0199e49384d13b2a1433c6 Author: Karel Zak Date: Tue Oct 4 15:56:59 2016 +0200 isosize: don't ignore read() result [coverity scan] Signed-off-by: Karel Zak disk-utils/isosize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 10c66b0b9ec1f1b6d93a5c6b95d32c6259dd42fd Author: Karel Zak Date: Tue Oct 4 15:53:55 2016 +0200 fsck.cramfs: don't ignore read() result [coverity scan] Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 39d726cef2f68d2bd6407dc1250981c3c344e380 Author: Karel Zak Date: Tue Oct 4 15:53:19 2016 +0200 tests: (cramfs) check for test_sysinfo Signed-off-by: Karel Zak tests/ts/cramfs/mkfs | 1 + 1 file changed, 1 insertion(+) commit cf9b302d461fedb9b653a82eaa367da35547be07 Author: Karel Zak Date: Tue Oct 4 15:02:00 2016 +0200 cfdisk: fix mountpoint detection Signed-off-by: Karel Zak disk-utils/cfdisk.c | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) commit 219452a47cc5966df8906a5dbe67250c13cef9a8 Author: Richard Yann Date: Tue Oct 4 14:48:06 2016 +0200 Fix: list all block device from /dev and all symbolic links to block devices Before fix "fsck -y /d" will never show LVM VG from multipath or mapped devices bash-completion/fsck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 23f75093264aae5d58d61016cb1a29d8ebdfa157 Author: Karel Zak Date: Mon Oct 3 16:56:56 2016 +0200 Revert "su,runuser: add libseccomp based workaround for TIOCSTI ioctl" This reverts commit 8e4925016875c6a4f2ab4f833ba66f0fc57396a2. Stupid hack... configure.ac | 16 ---------------- login-utils/Makemodule.am | 7 +++---- login-utils/su-common.c | 20 -------------------- 3 files changed, 3 insertions(+), 40 deletions(-) commit 8b641fd6a220fd76a6c25b100d1ba43c6052efe2 Author: Karel Zak Date: Mon Oct 3 11:59:25 2016 +0200 tests: add chrt vs. nice test Signed-off-by: Karel Zak .../schedutils/chrt-non-root-batch-vs-nice | 3 ++ tests/ts/schedutils/chrt-non-root | 61 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) commit 88b60f0bdee6a4379d5579918eec919bec94089f Author: Karel Zak Date: Mon Oct 3 11:02:35 2016 +0200 chrt: follow nice setting, prefer sched_setscheduler() * do not reset 'nice' setting by sched_setattr(), if 'nice' setting is not zero then chrt ends with EPERM for non-root users: $ renice -n 5 -p $$; chrt -v -b 0 date 12475 (process ID) old priority 0, new priority 5 chrt: failed to set pid 0's policy: Operation not permitted * it seems more elegant to always use old sched_setscheduler() API for non-deadline policies; in this case we do not need getpriority() to keep 'nice' unchanged. Addresses: https://github.com/karelzak/util-linux/issues/359 Signed-off-by: Karel Zak schedutils/chrt.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) commit b5a58919a932954a643fae53e74dfd96d3c1ff9d Author: Karel Zak Date: Sat Oct 1 01:20:06 2016 +0200 tools: make ko-release-gen usable with gpg2 Signed-off-by: Karel Zak tools/ko-release-gen | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)