Changes between v2.31-rc1 and v2.31-rc2 -------------------------------------------- commit bb305629d74d619344c80eb201a301ad626fbe08 Author: Karel Zak Date: Tue Oct 3 17:53:33 2017 +0200 build-sys: release++ (v2.31-rc2) Signed-off-by: Karel Zak NEWS | 6 +++++- configure.ac | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) commit 3c44e5ab982c17c8468d5181142cd069321aa683 Author: Karel Zak Date: Tue Oct 3 17:51:55 2017 +0200 docs: update v2.31-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.31-ReleaseNotes | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) commit 88564c98c47448a61051ea79194aa93dc1c34d91 Author: Karel Zak Date: Tue Oct 3 17:49:32 2017 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 2 ++ 1 file changed, 2 insertions(+) commit 04ece4e67fa005109840cd79e8a086a3f4b525f2 Author: Karel Zak Date: Tue Oct 3 17:48:43 2017 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 506 +++++++++++++++++++++++++++-------------------------- po/cs.po | 506 +++++++++++++++++++++++++++-------------------------- po/da.po | 504 ++++++++++++++++++++++++++++------------------------- po/de.po | 503 ++++++++++++++++++++++++++++------------------------- po/es.po | 506 +++++++++++++++++++++++++++-------------------------- po/et.po | 506 +++++++++++++++++++++++++++-------------------------- po/eu.po | 507 ++++++++++++++++++++++++++++-------------------------- po/fi.po | 506 +++++++++++++++++++++++++++-------------------------- po/fr.po | 503 ++++++++++++++++++++++++++++------------------------- po/gl.po | 503 ++++++++++++++++++++++++++++------------------------- po/hr.po | 506 +++++++++++++++++++++++++++-------------------------- po/hu.po | 507 ++++++++++++++++++++++++++++-------------------------- po/id.po | 506 +++++++++++++++++++++++++++-------------------------- po/it.po | 506 +++++++++++++++++++++++++++-------------------------- po/ja.po | 506 +++++++++++++++++++++++++++-------------------------- po/nl.po | 506 +++++++++++++++++++++++++++-------------------------- po/pl.po | 503 ++++++++++++++++++++++++++++------------------------- po/pt_BR.po | 506 +++++++++++++++++++++++++++-------------------------- po/ru.po | 503 ++++++++++++++++++++++++++++------------------------- po/sl.po | 506 +++++++++++++++++++++++++++-------------------------- po/sv.po | 506 +++++++++++++++++++++++++++-------------------------- po/tr.po | 506 +++++++++++++++++++++++++++-------------------------- po/uk.po | 503 ++++++++++++++++++++++++++++------------------------- po/util-linux.pot | 499 ++++++++++++++++++++++++++++------------------------- po/vi.po | 506 +++++++++++++++++++++++++++-------------------------- po/zh_CN.po | 506 +++++++++++++++++++++++++++-------------------------- po/zh_TW.po | 506 +++++++++++++++++++++++++++-------------------------- 27 files changed, 7153 insertions(+), 6484 deletions(-) commit 7d2a9960adcbe546808e90a9a193590cbf575ab3 Author: Karel Zak Date: Tue Oct 3 15:35:17 2017 +0200 rfkill: support old "list" output .. just because we want to be replacement for the original version. Signed-off-by: Karel Zak sys-utils/rfkill.8 | 20 +++++-- sys-utils/rfkill.c | 159 ++++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 129 insertions(+), 50 deletions(-) commit 49f4f7b6c5018c53b84e55f7105a42bfab337249 Author: Karel Zak Date: Tue Oct 3 14:31:57 2017 +0200 rfkill: remove duplicate code Signed-off-by: Karel Zak sys-utils/rfkill.c | 141 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 82 insertions(+), 59 deletions(-) commit 18d3a03fda242d42cc2cc64fe3d59f3c8dac540b Author: Karel Zak Date: Tue Oct 3 13:44:19 2017 +0200 rfkill: refactor actions * convert action string to ID and use switch() * add note about default output to the man page Signed-off-by: Karel Zak sys-utils/rfkill.8 | 10 +++++++ sys-utils/rfkill.c | 85 +++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 75 insertions(+), 20 deletions(-) commit 7d8e3bcd156976301dbf4da0926e15009f1bdc7b Author: Karel Zak Date: Tue Oct 3 13:01:56 2017 +0200 rfkill: improve default output Signed-off-by: Karel Zak sys-utils/rfkill.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit e1bf3ec2413ebe0aea6554a4108da0ff293b08ad Author: Karel Zak Date: Mon Oct 2 15:45:41 2017 +0200 docs: add Atari PT to the TODO list Addresses: https://github.com/karelzak/util-linux/issues/517 Signed-off-by: Karel Zak Documentation/TODO | 3 +++ 1 file changed, 3 insertions(+) commit e8365fc1c68a28a8df0d5df3b03fa0eda05b05bc Author: Karel Zak Date: Mon Oct 2 13:44:29 2017 +0200 libmount: add human compatible message for EBADMSG errno mount: /media/sdb5: mount(2) system call failed: Bad message. is really ugly for end users. It seems XFS, extN (etc) use EBADMSG for bad checksums. For network or pseudo filesystems continue to use "Bad message" error... Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1496764 Signed-off-by: Karel Zak libmount/src/context_mount.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 946eb86a47eba5f682cd6e3b700786ce94116b46 Merge: d44e4f203 f218d8d2f Author: Karel Zak Date: Mon Oct 2 12:44:24 2017 +0200 Merge branch 'fix-python_libmount_get_propagation' of https://github.com/giuseppe/util-linux * 'fix-python_libmount_get_propagation' of https://github.com/giuseppe/util-linux: libmount: fix Python get_propagation commit d44e4f2038d7b0c81d0b2d39e45d29befc678027 Merge: 76493ceba 3452b9082 Author: Karel Zak Date: Mon Oct 2 12:20:36 2017 +0200 Merge branch 'patch-1' of https://github.com/sgargel/util-linux * 'patch-1' of https://github.com/sgargel/util-linux: Fix end translation commit 76493ceba6600d3a98ad00deaf12edcf305f5ad4 Author: Karel Zak Date: Mon Oct 2 11:59:57 2017 +0200 losetup: rename to --sector-size and LOG-SEC Signed-off-by: Karel Zak sys-utils/losetup.8 | 16 +++++++--------- sys-utils/losetup.c | 12 ++++++------ 2 files changed, 13 insertions(+), 15 deletions(-) commit 43dc89344940da43ae53c768b9e85635b77e0b50 Author: Karel Zak Date: Mon Oct 2 11:27:59 2017 +0200 lib/randutils: remove superfluous continue Addresses: https://github.com/karelzak/util-linux/commit/fa949792072530b49ef5760d7ecd6d250c66e35f#commitcomment-24678670 Signed-off-by: Karel Zak lib/randutils.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) commit 3452b9082b891eea248d952b5d97a963e027414d Author: sgargel Date: Thu Sep 28 13:56:56 2017 +0200 Fix end translation See also https://translate.google.it/#en/it/end po/it.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a1a41597bfd55e709024bd91aaf024159362679c Author: Stanislav Brabec Date: Tue Sep 26 16:14:51 2017 +0200 losetup: Add support for logical block size Kernel since 4.14 supports setting of logical block size[1]. It allows to create loop devices that report logical block size different from 512. Add support for this feature to losetup. References: [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/block/loop.c?id=89e4fdecb51cf5535867026274bc97de9480ade5 [kzak@redhat.com: - fix loopcxt_get_blocksize() - remove lo_blocksize from loop_info64] Signed-off-by: Stanislav Brabec Cc: Ming Lei Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Jens Axboe Signed-off-by: Karel Zak include/loopdev.h | 3 +++ lib/loopdev.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/losetup.8 | 3 +++ sys-utils/losetup.c | 51 ++++++++++++++++++++++++++++++++++++++------------- 4 files changed, 94 insertions(+), 13 deletions(-) commit ce87b20a7bc5c7c4b9fc0df81402d9ac375336a1 Author: Karel Zak Date: Wed Sep 27 11:25:08 2017 +0200 docs: add exec() exit codes to TODO Signed-off-by: Karel Zak Documentation/TODO | 7 +++++++ 1 file changed, 7 insertions(+) commit 502c5186d3086c25184ccf67a391d8a62bd53944 Author: Karel Zak Date: Tue Sep 26 12:47:50 2017 +0200 cfdisk: cleanup die-on-signal code Let's keep signal handler simple and don't cleanup terminal from the handler. Signed-off-by: Karel Zak disk-utils/cfdisk.c | 63 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 47 insertions(+), 16 deletions(-) commit c431d9015a98443d2e0ec1eb244f72d8665d7ae4 Author: Karel Zak Date: Tue Sep 26 12:23:33 2017 +0200 cfdisk: make resize code more readable Signed-off-by: Karel Zak disk-utils/cfdisk.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit c7f87da2ba6b1e0bfcd3a41737483100010778d4 Author: Tobias Stoeckmann Date: Mon Sep 25 21:55:34 2017 +0200 setproctitle: fix out of boundary access A program using setproctitle can trigger an out of boundary access if an attacker was able to clear the environment before execution. The check in setproctitle prevents overflows, but does not take into account that the whole length of the arguments could be 1, which is possible by supplying such a program name to execlp(3) or using a symbolic link, e.g. argv[0] = "l", argv[1] = NULL. Only login uses setproctitle, which is not affected by this problem due to initializing the environment right before the call. lib/setproctitle.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit f17bda66bd440fe8375f5fd13e2efa6bd3a0c942 Author: Tobias Stoeckmann Date: Mon Sep 25 21:54:11 2017 +0200 login: fix signal race The functions warnx(3) and gettext(3) are not safe to use within signal handlers and should be avoided. Preparing the message beforehand and calling write(2) as well as calling _exit(2) solves the problem. [kzak@redhat.com: - use program_invocation_short_name rather than argv[0], - use ignore_result() to keep compiler happy] Signed-off-by: Karel Zak login-utils/login.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) commit 14b3dd0fc65d519440594852abf7710a2ec71464 Author: Karel Zak Date: Mon Sep 25 10:40:37 2017 +0200 docs: add 2.30.2 to ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.31-ReleaseNotes | 5 +++++ 1 file changed, 5 insertions(+) commit f218d8d2f53633ea5c2afde211e4e2ad6ce486e9 Author: Giuseppe Scrivano Date: Thu Sep 21 23:18:30 2017 +0200 libmount: fix Python get_propagation The current implementation would return always 0, as it is the return code of mnt_fs_get_propagation. Change the implementation to raise an exception on an error and return the propagation flags otherwise. Signed-off-by: Giuseppe Scrivano libmount/python/fs.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)