Changes between v2.29 and v2.29.1 -------------------------------------------- commit 9ebc8a7a882ddfd93bc3262514791a0dcaadba09 Author: Karel Zak Date: Fri Jan 20 14:13:08 2017 +0100 build-sys: release++ (v2.29.1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit ed037d87d58049562d5deb13d0e0e48940142fae Author: Karel Zak Date: Fri Jan 20 14:11:26 2017 +0100 docs: update v2.29.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.29.1-ReleaseNotes | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) commit 2b2e56804d56cb712c5ed3f1544f32b346d1169b Author: Karel Zak Date: Fri Jan 20 14:07:48 2017 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 2 ++ 1 file changed, 2 insertions(+) commit 72c1cc14d32b8632e2941697a4a62dba5a7cd4b4 Author: Karel Zak Date: Fri Jan 20 14:06:39 2017 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 44 ++++++++++++++++++++++---------------------- po/cs.po | 46 +++++++++++++++++++++++----------------------- po/da.po | 46 +++++++++++++++++++++++----------------------- po/de.po | 46 +++++++++++++++++++++++----------------------- po/es.po | 46 +++++++++++++++++++++++----------------------- po/et.po | 44 ++++++++++++++++++++++---------------------- po/eu.po | 44 ++++++++++++++++++++++---------------------- po/fi.po | 44 ++++++++++++++++++++++---------------------- po/fr.po | 46 +++++++++++++++++++++++----------------------- po/gl.po | 44 ++++++++++++++++++++++---------------------- po/hr.po | 44 ++++++++++++++++++++++---------------------- po/hu.po | 44 ++++++++++++++++++++++---------------------- po/id.po | 44 ++++++++++++++++++++++---------------------- po/it.po | 44 ++++++++++++++++++++++---------------------- po/ja.po | 46 +++++++++++++++++++++++----------------------- po/nl.po | 46 +++++++++++++++++++++++----------------------- po/pl.po | 46 +++++++++++++++++++++++----------------------- po/pt_BR.po | 46 +++++++++++++++++++++++----------------------- po/ru.po | 48 ++++++++++++++++++++++++------------------------ po/sl.po | 44 ++++++++++++++++++++++---------------------- po/sv.po | 46 +++++++++++++++++++++++----------------------- po/tr.po | 44 ++++++++++++++++++++++---------------------- po/uk.po | 46 +++++++++++++++++++++++----------------------- po/util-linux.pot | 46 +++++++++++++++++++++++----------------------- po/vi.po | 46 +++++++++++++++++++++++----------------------- po/zh_CN.po | 46 +++++++++++++++++++++++----------------------- po/zh_TW.po | 44 ++++++++++++++++++++++---------------------- 27 files changed, 610 insertions(+), 610 deletions(-) commit d747a5cf19b9ee4fece98f3b7a88ff47c0ca2287 Author: Karel Zak Date: Fri Jan 20 13:57:38 2017 +0100 tests: (build-sys) don't link -lm by default Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 2 +- tests/expected/build-sys/config-all-non-nls | 2 +- tests/expected/build-sys/config-audit | 2 +- tests/expected/build-sys/config-chfnsh-libuser | 2 +- tests/expected/build-sys/config-chfnsh-no-password | 2 +- tests/expected/build-sys/config-chfnsh-pam | 2 +- tests/expected/build-sys/config-core | 2 +- tests/expected/build-sys/config-devel | 2 +- tests/expected/build-sys/config-devel-non-docs | 2 +- tests/expected/build-sys/config-non-libblkid | 2 +- tests/expected/build-sys/config-non-libmount | 2 +- tests/expected/build-sys/config-non-libs | 2 +- tests/expected/build-sys/config-non-libsmartcols | 2 +- tests/expected/build-sys/config-non-libuuid | 2 +- tests/expected/build-sys/config-non-nls | 2 +- tests/expected/build-sys/config-selinux | 2 +- tests/expected/build-sys/config-slang | 2 +- tests/expected/build-sys/config-static | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) commit 4b00be627568e2f70b13e2a8bfe705deb2efae2c Author: Andreas Henriksson Date: Thu Jan 19 22:50:31 2017 +0100 man: chsh(1): add login.defs to SEE ALSO (The shadow equivalent manpage lists it.) login-utils/chsh.1 | 1 + 1 file changed, 1 insertion(+) commit feed505ab0c20f5e231af7db3dfac0364ed6e44f Author: Andreas Henriksson Date: Thu Jan 19 23:04:47 2017 +0100 chsh: use -h as shorthand for --help instead of -u The -u is still supported (but no longer documented). (This matches the switches used by shadow chsh.) login-utils/chsh.1 | 4 ++-- login-utils/chsh.c | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) commit 749993c70475a2c61074445c36b63153eadb1c65 Author: Andreas Henriksson Date: Thu Jan 19 22:39:31 2017 +0100 man: chfn(1): add chsh and login.defs to SEE ALSO (The shadow version of the same manpage mentions these utils, but does not mention finger.) login-utils/chfn.1 | 2 ++ 1 file changed, 2 insertions(+) commit 3163efbab67a7ec44da1ed1c8153e4ab99e19947 Author: Carlos Santos Date: Thu Jan 19 17:27:37 2017 -0200 build-sys: fix compilation with ncurses and uClibc or musl libc Compiling util-linux with musl and uClibc-ng toolchains when wide-char support is not enabled in ncurses results in compilation failures with the following message: error: two or more data types in declaration specifiers #define wchar_t char The problem occurs because util-linux #defines its own wchar_t (as char) when configured without widechar support. This conflicts with definition of wchar_t contained in stddef.h. This error can be reproduced running " #define wchar_t char #include int main() { return 0; } The only way to avoid the problem it to reorder the inclusion of headers in some files under the text-utils directory. Addresses: http://autobuild.buildroot.net/results/3a2f228e0fa7b5cc28a13d49f48f1a6aef8d9d7a http://autobuild.buildroot.net/results/99e96069f652d511c6212a5bb6be29e68fb1747c http://autobuild.buildroot.net/results/2dc5721aef93b7b410153bafad78248fac3db941 http://autobuild.buildroot.net/results/8a9e197ba7a292b18f8c0c36dca974685556a38a Signed-off-by: Carlos Santos text-utils/colcrt.c | 2 +- text-utils/colrm.c | 2 +- text-utils/column.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 19567e1b0bfe533ea91032d3f7c3549268154676 Author: Karel Zak Date: Fri Jan 20 11:02:23 2017 +0100 su, runuser: fix typo in the /etc/default path Reported-by: Andreas Henriksson Signed-off-by: Karel Zak login-utils/su-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9d2e4c97bd724b05a2c6f5f9c17efac95ed1f439 Author: Karel Zak Date: Thu Jan 19 12:01:51 2017 +0100 runuser: add "--" to SYNOPSIS Signed-off-by: Karel Zak login-utils/runuser.1 | 2 +- login-utils/su-common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit e9b0b7f6a1bedebaaf67d1f32f63a89ab60415d4 Author: Bert van Hall Date: Wed Jan 18 16:41:36 2017 +0100 term-utils/script: fix typo leading to syntax error Introduced in edc7e42, this typo is actually invalid C. Fix this. Signed-off-by: Bert van Hall term-utils/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit beceb14b450ded6560ed743634a5e80604a8edf3 Author: Karel Zak Date: Thu Jan 19 11:35:24 2017 +0100 build-sys: use MATH_LIBS for hwclock Signed-off-by: Karel Zak configure.ac | 6 ++++++ sys-utils/Makemodule.am | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) commit 6ddbece037f707ba9c36553d18d791c556503a0c Author: Karel Zak Date: Wed Jan 18 14:04:18 2017 +0100 docs: update v2.29.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.29.1-ReleaseNotes | 84 +++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) commit 1d827d88bde402e050ae97a85838cc71473afcf3 Author: Karel Zak Date: Wed Jan 18 14:03:11 2017 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 4 ++++ 1 file changed, 4 insertions(+) commit 124d92d82e5c0f2d273044abeb6761da06e0d8a8 Author: Karel Zak Date: Wed Jan 18 14:01:44 2017 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 732 +++++++++++++++--------------- po/cs.po | 729 +++++++++++++++--------------- po/da.po | 1277 +++++++++++++++++++---------------------------------- po/de.po | 729 +++++++++++++++--------------- po/es.po | 729 +++++++++++++++--------------- po/et.po | 732 +++++++++++++++--------------- po/eu.po | 727 +++++++++++++++--------------- po/fi.po | 732 +++++++++++++++--------------- po/fr.po | 1166 +++++++++++++++++++----------------------------- po/gl.po | 727 +++++++++++++++--------------- po/hr.po | 727 +++++++++++++++--------------- po/hu.po | 732 +++++++++++++++--------------- po/id.po | 732 +++++++++++++++--------------- po/it.po | 732 +++++++++++++++--------------- po/ja.po | 731 +++++++++++++++--------------- po/nl.po | 729 +++++++++++++++--------------- po/pl.po | 729 +++++++++++++++--------------- po/pt_BR.po | 883 ++++++++++++++++++------------------ po/ru.po | 731 +++++++++++++++--------------- po/sl.po | 732 +++++++++++++++--------------- po/sv.po | 729 +++++++++++++++--------------- po/tr.po | 732 +++++++++++++++--------------- po/uk.po | 729 +++++++++++++++--------------- po/util-linux.pot | 728 +++++++++++++++--------------- po/vi.po | 731 +++++++++++++++--------------- po/zh_CN.po | 729 +++++++++++++++--------------- po/zh_TW.po | 732 +++++++++++++++--------------- 27 files changed, 10155 insertions(+), 10693 deletions(-) commit e334cfbf4a1b3e42b9c1b7ce1a6e1267ac4117e5 Author: Rafael Fontenelle Date: Wed Jan 18 13:50:12 2017 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 781 ++++++++++++++++++++++++++++-------------------------------- 1 file changed, 369 insertions(+), 412 deletions(-) commit cd5056db2fbf57edbf8154f8f330faac1906ffe0 Author: Stéphane Aulery Date: Wed Jan 18 13:50:12 2017 +0100 po: update fr.po (from translationproject.org) po/fr.po | 1742 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 925 insertions(+), 817 deletions(-) commit d758ef50a0ed400bedc61fc0b920b70346b48afb Author: Joe Hansen Date: Wed Jan 18 13:50:12 2017 +0100 po: update da.po (from translationproject.org) po/da.po | 1450 +++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 874 insertions(+), 576 deletions(-) commit a67fb6a069cc7467f20e4e0005d3c38876c1bb41 Author: Karel Zak Date: Mon Jan 16 14:57:02 2017 +0100 libfdisk: (gpt) make calculations more robust Signed-off-by: Karel Zak libfdisk/src/gpt.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) commit e57a53983b660cf30a90647bfc8022b766a62270 Author: Karel Zak Date: Fri Jan 13 12:16:06 2017 +0100 libfdisk: recount size when apply user device properties Signed-off-by: Karel Zak libfdisk/src/alignment.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit d2114760c2b9a3990ed2aedecddc276ad4e864fd Author: Stanislav Brabec Date: Tue Jan 10 13:54:17 2017 +0100 If mtab support is disabled, disable ro/rw mtab checks Commit f9906424 introduced a check that should prevent different information in mtab and /proc/mounts. The check can require significant amount of time, and for systems without mtab support it has no sense. Execute this code only on systems with mtab. When a systems with large number of nodes (thousands) mount the filesystems simultaneously, the time required for serialization causes the utimensat() to take a large amount of time (tens of minutes) when a large number of nodes are simultaneously updating the timestamp. Signed-off-by: Stanislav Brabec libmount/src/context_mount.c | 2 ++ 1 file changed, 2 insertions(+) commit a7c8fe3970716a0962b837bf70dd5b119f16f3ba Author: Karel Zak Date: Mon Jan 9 13:28:24 2017 +0100 libsmartcols: add scols_cell_get_alignment() Just to hide that we use cell flags (bitwise operations) to define cell content alignment. The patch also more explicitly specifies the flags in the header file. The alignment is evaluated in the order: right, center, left. The default is left. Note that SCOLS_CELL_FL_* are used for for table title only. v2.29.1: function not exported by API Signed-off-by: Karel Zak libsmartcols/src/cell.c | 16 ++++++++++++++++ libsmartcols/src/libsmartcols.h.in | 7 ++++--- libsmartcols/src/smartcolsP.h | 3 +++ libsmartcols/src/table_print.c | 17 +++++++++++------ 4 files changed, 34 insertions(+), 9 deletions(-) commit 6a119af3f56a5b2864c51f7c4763b55a316d9519 Author: Karel Zak Date: Mon Jan 9 13:01:39 2017 +0100 lscpu: add aarch64 specific names It seems that aarch64 uses a different names for some /proc/cpuinfo fields (e.g. intel: bogomips, flags, and aarch64: BogoMIPS, features, ...) Addresses: https://github.com/karelzak/util-linux/issues/392 Signed-off-by: Karel Zak sys-utils/lscpu.c | 3 +++ tests/expected/lscpu/lscpu-armv7 | 3 +++ 2 files changed, 6 insertions(+) commit 59810c31888d04ba4244c19dc4998b844bf3b69a Author: Nate Clark Date: Wed Jan 4 15:21:17 2017 -0500 libblkid/minix: Sanity check superblock s_state for v 1 and 2 Swap devices with specific values in the uuid can look like minix devices to blkid. Add an extra check to make sure the state of the filesystem has valid state flags. A couple of offending swap uuids include: 35f1f264-137f-471a-bc85-acc9f4bc04a3 35f1f264-7f13-471a-bc85-acc9f4bc04a3 35f1f264-138f-471a-bc85-acc9f4bc04a3 35f1f264-8f13-471a-bc85-acc9f4bc04a3 Without this change a swap device with any of those uuids would be detected as minix and swap by blkid. Signed-off-by: Nate Clark libblkid/src/superblocks/minix.c | 4 ++++ 1 file changed, 4 insertions(+) commit fb8683291e6d71d3f5e27fdda1076b616bc2a32f Author: Nate Clark Date: Wed Jan 4 15:24:32 2017 -0500 libblkid/minix: Use same checks for version 3 fsck.minix performs the same sanity checks on all versions of the superblock. Update the probe to perform the same sanity checks so it is less likely a different type of filesystem will be identified as minix. Signed-off-by: Nate Clark libblkid/src/superblocks/minix.c | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) commit da85b31610b954f80065699d77a0731a788bcbf0 Author: Nate Clark Date: Wed Jan 4 15:24:22 2017 -0500 libblkid/minix: Match minix superblock types All of the types in the minix super block are unsigned but in probe_minix they were being treated as signed. This would cause some of the extra sanity checks to pass on a non minix device. The types were updated to match the return types of the helper functions in disk-utils/minix_programs.h This can be checked by creating a swap partition with one of these UUIDs 35f1f264-2468-471a-bc85-acc9f4bc04a3 35f1f264-6824-471a-bc85-acc9f4bc04a3 35f1f264-2478-471a-bc85-acc9f4bc04a3 35f1f264-7824-471a-bc85-acc9f4bc04a3 Prior to this change they would all be considered minix and swap by blkid. Signed-off-by: Nate Clark libblkid/src/superblocks/minix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 01f963c26fe2abdd6c6ff3b78ba89e4f37147b46 Author: Nate Clark Date: Wed Jan 4 12:31:37 2017 -0500 disk-utils/mkfs.minix: Set ninodes after checking max ninodes in the superblock needs to be set after inodes is checked against MINIX_MAX_INODES otherwise a value larger than MINIX_MAX_INODES can be attempted to be stored in the superblock. Without this change the command "mkfs.minix -2 -i 65530 " would write a minix superblock with ninodes set to 0. Signed-off-by: Nate Clark disk-utils/mkfs.minix.c | 2 +- tests/expected/minix/mkfs-v2i65535 | 9 +++++++++ tests/ts/minix/mkfs | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) commit 2ddd73be0d3c390aac3dcc6e64176f9c6824ab2d Author: Karel Zak Date: Mon Jan 2 11:32:24 2017 +0100 lib/linux_version: fix stupid typo ... introduced by commit d404065a. Sorry. Signed-off-by: Karel Zak lib/linux_version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 89332dd30649207d08d10f73448dd720bf43c43e Author: Karel Zak Date: Fri Dec 16 12:46:45 2016 +0100 findmnt: error on --target /non-exist The original --target implementation (< v2.27) has been based on stat(), so it was usable for valid paths only. The new implementation is based on search in the mountinfo file, so it works for arbitrary crazy path. This is not backwardly compatible and if the path does not exist then it still returns at least root directory mount entry. This patch forces mnt_table_find_mountpoint() to check if the path is valid before we search in the mountinfo file. Signed-off-by: Karel Zak libmount/src/tab.c | 4 ++++ 1 file changed, 4 insertions(+) commit 5cbb15d1a5f826954b41dfde0e5d843cea9e24bd Author: Karel Zak Date: Thu Dec 15 14:40:26 2016 +0100 more: avoid double free() on exit On 'q' command more(1) calls end_it() function with _exit(). The _exit() may suspend program execution due to pending I/O on very loaded server. In this time SIGINT may be delivered due to impatient user who will press ^C. And then end_it() cleanup function may be executed by signal handler too. The result is double free()... Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1403971 Signed-off-by: Karel Zak text-utils/more.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 8e6cf50077b91dc2fea5eeab29d2564a695db9fa Author: Karel Zak Date: Tue Dec 13 12:41:18 2016 +0100 build-sys: cleanup UL_NCURSES_CHECK * use SUFFIX for upper-case suffix * use AC_CHECK_TOOL() to search for ncurses-config (thanks to Mike Frysinger) * separate checks by AS_IF() Signed-off-by: Karel Zak m4/ul.m4 | 54 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 21 deletions(-) commit cbf491102366ef53cca7a45a90f02a3db2a0d339 Author: Karel Zak Date: Tue Dec 13 12:11:18 2016 +0100 fdisk: don't be silent when list non-existing device Addresses: https://github.com/karelzak/util-linux/issues/376 Signed-off-by: Karel Zak disk-utils/fdisk.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 0502cf26a6a8f8844999efd0e23ad35b88a878f3 Author: Karel Zak Date: Mon Dec 12 15:23:53 2016 +0100 build-sys: prefer pkg-config for ncurses and use ncurses{5,6}-config as fallback only. Signed-off-by: Karel Zak m4/ul.m4 | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) commit a47c5b47d8f67ca18a58c0144bf3f5238721957a Author: Ruediger Meier Date: Wed Dec 7 20:39:02 2016 +0100 build-sys: don't clean *.img files Don't know why this was added in d78df0ac but it can't be right that libmount/python removes these files in the toplevel builddir. Moreover I've never seen such *.img files appearing during build at all. Signed-off-by: Ruediger Meier libmount/python/Makemodule.am | 2 -- 1 file changed, 2 deletions(-) commit 18077f363d7d4fbc4645fec63975585504d11ba0 Author: Michael Kerrisk Date: Mon Dec 5 07:49:42 2016 +0100 docs: renice(1): Add credentials(7) to SEE ALSO credentials(7) explains concepts such as "process group". Signed-off-by: Michael Kerrisk sys-utils/renice.1 | 1 + 1 file changed, 1 insertion(+) commit 939870f8751790d96d1a748cc48c75119dab5047 Author: Michael Kerrisk Date: Mon Dec 5 07:28:09 2016 +0100 docs: renice(1): Add SEE ALSO entry for sched(7) The sched(7) page as of the most recent release contains detailed information on the 'nice' value, including a discussion of autogrouping, which has surprising interactions with the process nice value. Signed-off-by: sys-utils/renice.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 31f26530bec669ced86bd0a88f82ee244f727168 Author: Michael Kerrisk Date: Sun Dec 4 21:00:34 2016 +0100 docs: mount(8): Wording fix The correct word here is "practice"; "manner" would not be well understood by most English speakers. Signed-off-by: Michael Kerrisk sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ed4b7f3b1ebb4a5bb4f5863878b6794421fed0db Author: Michael Kerrisk Date: Sat Dec 3 20:39:35 2016 +0100 docs: ionice(1): SEE ALSO: add ioprio_set(2) ioprio_set(2) is the system call that underlies this command. Signed-off-by: Michael Kerrisk schedutils/ionice.1 | 2 ++ 1 file changed, 2 insertions(+) commit 6f865bf58bb94144fe7b493b426d0e40c6d01ef2 Author: Michael Kerrisk Date: Sat Dec 3 20:38:52 2016 +0100 docs: lsns(8): SEE ALSO: add namespaces(7) Signed-off-by: Michael Kerrisk sys-utils/lsns.8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit bd2a7af00ff42c63650b0420e878fbe9b5e777e8 Author: Michael Kerrisk Date: Sun Dec 4 20:23:54 2016 +0100 docs: last(1): Eliminate oddball formatting \s-2...\s0 is unused anywhere else. Remove it. Signed-off-by: Michael Kerrisk login-utils/last.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 29e70b13e7d08d214dbe66702202c2d6b0657495 Author: Michael Kerrisk Date: Sat Dec 3 20:37:10 2016 +0100 docs: last(1): SEE ALSO: add reference to wtmp(5) Signed-off-by: Michael Kerrisk login-utils/last.1 | 1 + 1 file changed, 1 insertion(+) commit 61b6a06ff39407d0ad5310c8fe902887c04099bd Author: Michael Kerrisk Date: Mon Dec 5 12:39:22 2016 +0100 docs: taskset(1): Wording fix Signed-off-by: Michael Kerrisk schedutils/taskset.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 68a5938ad6d15585a20dc9f64b770f714412e747 Author: Michael Kerrisk Date: Mon Dec 5 12:36:50 2016 +0100 docs: namei(1): SEE ALSO: add symlink(7) Signed-off-by: Michael Kerrisk misc-utils/namei.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 22b245882497eecd15d4f84e38e22a96c02d46af Author: Michael Kerrisk Date: Wed Dec 7 14:04:17 2016 +0100 docs: kill(1): Wording fix Fix a wording error introduced in one of my recent commits. Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 07b153772e48688a0de93093942c8c13051acd4f Author: Michael Kerrisk Date: Sun Dec 4 20:51:32 2016 +0100 docs: various pages: Use 'UID" and "GID", not "uid" and "gid" in man pages Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 2 +- sys-utils/mount.8 | 16 ++++++++-------- sys-utils/setpriv.1 | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) commit 33694b941b5a23951d2bb506d76d9d4039f77c9d Author: Michael Kerrisk Date: Sun Dec 4 20:44:04 2016 +0100 docs: various pages: Use "PID" not "pid" in man-pages Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 12 ++++++------ sys-utils/unshare.1 | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) commit 09bc431121010559d37f6a80858d6e7264728fc5 Author: Michael Kerrisk Date: Sun Dec 4 20:40:01 2016 +0100 docs: various pages: Use "ID" not "id" in man pages The correct abbreviation of identifier is is "ID" (as used in many pages), not "id" (as used in a few pages). Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 2 +- sys-utils/mount.8 | 4 ++-- sys-utils/prlimit.1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit 6daaab78496f29a64721eb3ae94e63aee42320f4 Author: Michael Kerrisk Date: Sun Dec 4 20:34:54 2016 +0100 docs: various pages: Use consistent terminology (set-user-ID and set-group-ID) Use consistent terminology for set-user-ID and set-group-ID bits. There's much inconsistency in the pages. "suid", "set-user-identifier", "setuid". Stick with one terminology, "set-user-ID" and set-grout-ID, as suggested in man-pages(7). Signed-off-by: login-utils/runuser.1 | 2 +- login-utils/su.1 | 3 ++- sys-utils/mount.8 | 10 +++++----- sys-utils/readprofile.8 | 2 +- sys-utils/setpriv.1 | 6 ++++-- term-utils/wall.1 | 3 ++- 6 files changed, 15 insertions(+), 11 deletions(-) commit 64d4836bd0cbf94365cfdd086eb74ead25dc288a Author: Michael Kerrisk Date: Sat Dec 3 21:13:59 2016 +0100 docs: various pages: Format pathnames as italic (.I) In the majority of pages, pathnames are formatted as Italic, which is the norm. However, there are several cases where they are formatted as bold. This patch fixes a number of those exceptions. Signed-off-by: Michael Kerrisk disk-utils/cfdisk.8 | 2 +- disk-utils/fsck.8 | 12 ++++++------ lib/terminal-colors.d.5 | 6 +++--- login-utils/chfn.1 | 2 +- login-utils/last.1 | 6 +++--- login-utils/login.1 | 6 +++--- login-utils/sulogin.8 | 2 +- misc-utils/getopt.1 | 4 ++-- misc-utils/lsblk.8 | 2 +- misc-utils/whereis.1 | 6 +++--- sys-utils/fstab.5 | 2 +- sys-utils/mount.8 | 10 ++++++---- sys-utils/readprofile.8 | 12 ++++++------ sys-utils/renice.1 | 2 +- sys-utils/umount.8 | 6 +++--- term-utils/agetty.8 | 10 +++++----- 16 files changed, 46 insertions(+), 44 deletions(-) commit 764868426129f2e0d126e6915b7fe2a0d51f7557 Author: Michael Kerrisk Date: Fri Dec 9 13:32:34 2016 +0100 docs: renice(1): Remove obsolete BUGS text Already at least as far back as util-linux 2.2, renice uses getpriority(2) to fetch the process's old nice value. Thus, the "problem" discussed in this BUGS note disappeared long ago. This is trivially demonstrable: $ sleep 100 & [1] 24322 $ renice -n 5 24322 24322 (process ID) old priority 0, new priority 5 $ renice -n 10 24322 24322 (process ID) old priority 5, new priority 10 Rather than trying to explain the ancient problem (20 years old?), just kill this text. Signed-off-by: Michael Kerrisk Signed-off-by: Karel Zak sys-utils/renice.1 | 5 ----- 1 file changed, 5 deletions(-) commit 4b639a52c8c7b922616bf993012086878674a079 Author: Michael Kerrisk Date: Fri Dec 9 13:25:20 2016 +0100 docs: renice(1): Rework discussion of unprivileged users, The BUGS section describing the limitations on what an unprivileged user may do to the nice value is outdated, given the kernel changes that added RLIMIT_NICE in Linux 2.6.12. So, remove that text. The revised details for modern Linux were partially covered in NOTES, but there were also inaccuracies there (and the use of the word "monotonically" was unneeded). In particular, the point is that unprivileged users can only increase the nice value. There is no restriction particular to the range 0..+19. So, for example, the following scenario is possible: 1. Superuser sets the nice value of an unprivileged user's process to -20. 2. The unprivileged user can now renice that process to (say) -10. Signed-off-by: Michael Kerrisk Signed-off-by: Karel Zak sys-utils/renice.1 | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) commit 194a3503076748f0e66c515d7e7cd9083cc78727 Author: Karel Zak Date: Fri Dec 9 09:47:33 2016 +0100 hwclock: don't check for permissions The right place to verify user permissions is kernel. The current situation is too strict (due to previous attempts to use hwclock as suid that has never been supported). Signed-off-by: Karel Zak sys-utils/hwclock.c | 5 ----- 1 file changed, 5 deletions(-) commit bbb24d90af4069fd52f7525fbb8dc209b61a05e8 Author: Andreas Henriksson Date: Mon Nov 28 17:24:50 2016 +0100 sulogin: bail out from getpasswd(...) on timeout If timeout happens while waiting in prompt, bail out instead of retrying. Reported-by: Bjørn Mork Addresses: http://bugs.debian.org/846107 Signed-off-by: Andreas Henriksson login-utils/sulogin.c | 4 ++++ 1 file changed, 4 insertions(+) commit 51e22ab6dfbee7ca3ff8515f5a835242fde9f2dd Author: Andreas Henriksson Date: Mon Nov 28 17:24:49 2016 +0100 sulogin: make getpasswd(...) return NULL on ^D This makes the caller bail out early instead of evaluating the input as a password. Reported-by: Bjørn Mork Addresses: http://bugs.debian.org/846112 Signed-off-by: Andreas Henriksson login-utils/sulogin.c | 1 + 1 file changed, 1 insertion(+) commit 2b502676a190b492020aae804018259c5fed8a68 Author: Michael Kerrisk Date: Mon Dec 5 10:46:48 2016 +0100 docs: kill(1): Wording fix Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f8742e39988008936bd90dd2accdc4692ad33673 Author: Michael Kerrisk Date: Mon Dec 5 10:43:53 2016 +0100 docs: kill(1): Formatting fixes Formatting fixes for constants and structure/field names, as per man-pages(7). Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 685596293313067071fa5bd1d9efeec79e0dd5f1 Author: Michael Kerrisk Date: Mon Dec 5 10:38:53 2016 +0100 docs: kill(1): Rework notes on thread groups The points in the NOTES can be expressed more compactly (there is some redundancy in the two existing paragraphs). Also, add a reference to signal(7), since this provides much more detail on the topic. Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) commit 53925476ada746a8680ffe7a747df7b2a9a79490 Author: Michael Kerrisk Date: Mon Dec 5 10:24:54 2016 +0100 docs: kill(1): Add more detail on use of SIGTERM vs SIGKILL It's worth adding a recommendation here to use SIGTERM rather than SIGKILL, and explain why. Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit a4270c9ba99ea3c0c406523d27ff9ba2d0a62ad4 Author: Michael Kerrisk Date: Sat Dec 3 20:37:51 2016 +0100 docs: kill(1): Fix section reference for sigqueue(3) and add to SEE ALSO Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 48b8fe384502ff0a47f744d9c0aa7015f9664305 Author: Michael Kerrisk Date: Sun Dec 4 17:44:55 2016 +0100 docs: various pages: Use "system call" not "syscall" A minor wording fix... Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 4 ++-- sys-utils/mount.8 | 7 ++++--- sys-utils/setpriv.1 | 2 +- sys-utils/umount.8 | 2 +- sys-utils/unshare.1 | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) commit 943717dbd1692e487f02b33d4bff88d463ec87ef Author: Andreas Henriksson Date: Fri Dec 2 15:10:18 2016 +0100 chrt: default to SCHED_RR policy This fixes a regression introduced in: commit 7a4ea5664edba98bff28adec3a9c3cfb5763a495 "chrt: add control struct" Previously (and as documented in the manpage) the default policy was SCHED_RR. Now it's implicitly SCHED_OTHER (0) as the value is not initialized explicitly anymore. Test-command: chrt 90 echo hello Reported-by: Patrick Pelissier Addresses: http://bugs.debian.org/846572 Signed-off-by: Andreas Henriksson schedutils/chrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d44ab08e1f41e93094e671b6e0db2ace07c9fcfd Author: Karel Zak Date: Mon Dec 5 13:05:34 2016 +0100 docs: nsenter(1): add missing 'see also' for --user Signed-off-by: Karel Zak sys-utils/nsenter.1 | 1 + 1 file changed, 1 insertion(+) commit cc7b5bb73803cc802f57cabc358657c7242a6fe2 Author: Michael Kerrisk Date: Mon Dec 5 10:55:41 2016 +0100 docs: nsenter(1): Formatting fix Add formatting for 'file' argument used by various options. Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 50 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 14 deletions(-) commit 9eb7f6786a711e9a5c2838e3bcf9c2b80bef87fa Author: Michael Kerrisk Date: Mon Dec 5 10:52:09 2016 +0100 docs: nsenter(1): Describe the 'file' argument used by namespace options Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 7 +++++++ 1 file changed, 7 insertions(+) commit a4bc5b1de3e918d7f2980148b9c7d80939395852 Author: OGAWA Hirofumi Date: Wed Nov 23 14:13:34 2016 +0900 lsns: Fix parser for /proc//stat which is including space in comm For example, child process of spamd has 32031 (spamd child) S 32026 32026 32026 0 -1 4210752 338 0 0 0 ... fscanf("%d %*s %c %d*[^\n]") in read_process() can't parse above as we expected, because %s only skips non-whitespace. I.e. it parses like following, 32031 (spamd child) S 32026 32026 32026 0 -1 4210752 338 0 0 0 ... +---+ +----+ + %d %*s %c and returns 2 (pid=32031, state=c). This fixes it by skipping task->comm part manually. Signed-off-by: OGAWA Hirofumi sys-utils/lsns.c | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) commit cef9be1385ba9610af5ae2160618f35ec6206df7 Author: Karel Zak Date: Wed Nov 30 10:53:56 2016 +0100 sfdisk: cleanup --dump error messages old: # truncate -s 1G empty && ./sfdisk --dump empty sfdisk: failed to dump partition table: Success new: # truncate -s 1G empty && ./sfdisk --dump empty sfdisk: empty: does not contain a recognized partition table. Addresses: https://github.com/karelzak/util-linux/issues/375 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 1b36f8d17a250f524af644733a0aed0e7ea8dd1e Author: Karel Zak Date: Tue Nov 29 15:58:18 2016 +0100 sfdisk: don't be silent when list non-existing device Addresses: https://github.com/karelzak/util-linux/issues/376 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit 1df0363f2ac90345d1202631c7d1bd3df9404315 Author: Ruediger Meier Date: Thu Nov 17 03:09:59 2016 +0100 build-sys: update package release number during development Now we use v2.29-5-g8ffab30 -> 2.29.5-8ffa (libblkid 2.29.5) instead of v2.29-5-g8ffab30 -> 2.29.5-8ffa (libblkid 2.29.0) otherwise the bugfix releases (2.29.1) would look newer that latest HEAD. Signed-off-by: Ruediger Meier configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bd9583e24bc13fb0d030b99543c8976c5c8398ac Author: Ruediger Meier Date: Thu Nov 17 03:09:58 2016 +0100 build-sys: fix empty package release number Was broken for major releases since b0e6b25e: $ blkid -V blkid from util-linux 2.28 (libblkid 2.28., 12-Apr-2016) Now we also set 0 in this case, like: $ blkid -V blkid from util-linux 2.30 (libblkid 2.30.0, 12-Apr-2016) Signed-off-by: Ruediger Meier configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit aebce58c4b5e7b89e7b2474ec916721cdcd06c12 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 12:00:09 2016 +0100 IPC namespaces also isolate POSIX message queues As described in pid_namespaces(7), IPC namespaces also isolate POSIX message queues. Update the unshare(1) and nsenter(1) pages to clarify that. Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 3 ++- sys-utils/unshare.1 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit 0a39c8d87065bee9e7535804ea556c82f65b3e69 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 12:00:05 2016 +0100 Provide better cross references for namespace concepts For each namespace that is discussed, add more explicit references to the corresponding clone(2) flags and add references to relevant section 7 namespace pages. Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 59 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 15 deletions(-) commit 452ac8716d401d8856355aa7e9c99bbbaa5379ee Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 12:00:00 2016 +0100 Provide better cross references for namespace concepts For each namespace that is discussed, add more explicit references to the corresponding clone(2) flags and add references to relevant section 7 namespace pages. Signed-off-by: Michael Kerrisk sys-utils/unshare.1 | 57 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 47 insertions(+), 10 deletions(-) commit fb94c5325aebace41f63274d30ce64cf0938f068 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:57 2016 +0100 SEE ALSO: add cross reference to namespaces(7) Rationale: both of these pages are about namespaces. Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 3 ++- sys-utils/unshare.1 | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) commit 2facda8317f479689ca200fda4e1e5980ad2608f Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:53 2016 +0100 Replace reference to sigvec(2) with sigaction(2) The sigvec(3) (not sigvec(2)) page documents ancient BSD APIs. The right page to cross reference here is sigaction(2), which documents the modern POSIX APIs. Signed-off-by: Michael Kerrisk misc-utils/kill.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 95baad134160881f79e8b8119e566ffaaa08319e Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:49 2016 +0100 Fix formatting errors in page cross references These pages had errors such as .BR page (x) . which should be .BR page (x). Signed-off-by: Michael Kerrisk disk-utils/swaplabel.8 | 2 +- misc-utils/findmnt.8 | 2 +- sys-utils/blkdiscard.8 | 2 +- sys-utils/dmesg.1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 6e44279279ad7fb79cff85dcb1ab87e1b7dc10c4 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:45 2016 +0100 Fix reference for scheduling discussion Some time back, I moved the discussion of scheduling from sched_setscheduler(2) to a new sched(7) page. Adjust the cross reference in the taskset(1) page accordingly. Signed-off-by: Michael Kerrisk schedutils/taskset.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d45d4d4ea07f26b4311d219138c5bfb19acbe004 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:40 2016 +0100 Fix section number in lockf() page xref lockf() is in section 3, not 2. Signed-off-by: Michael Kerrisk misc-utils/lslocks.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 211c74a703d56bade8b2404ab687840d3a532d86 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:37 2016 +0100 Fix page cross references * Add a section number to page cross reference * Format cross references in bold Signed-off-by: Michael Kerrisk sys-utils/ipcs.1 | 10 +++++----- sys-utils/lsipc.1 | 10 +++++----- sys-utils/tunelp.8 | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) commit bc9cf1a916e6adb3dc00dba4e188ad6311a4a5d4 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:30 2016 +0100 Correctly format page cross references Most pages in util-linux follow the standard convention of formatting page cross references in bold. Fix the few exceptions that use italic. Signed-off-by: Michael Kerrisk login-utils/chfn.1 | 2 +- login-utils/login.1 | 2 +- sys-utils/mount.8 | 2 +- text-utils/pg.1 | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) commit c14e236a488b9c138152da16c9419ee2a9772722 Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:27 2016 +0100 Place SEE ALSO entries in order This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk disk-utils/cfdisk.8 | 4 ++-- disk-utils/fdformat.8 | 4 ++-- disk-utils/fdisk.8 | 4 ++-- disk-utils/fsck.8 | 6 +++--- disk-utils/fsck.minix.8 | 2 +- disk-utils/mkfs.cramfs.8 | 4 ++-- disk-utils/mkfs.minix.8 | 2 +- disk-utils/swaplabel.8 | 4 ++-- libuuid/man/uuid_generate.3 | 6 +++--- login-utils/last.1 | 4 ++-- login-utils/login.1 | 4 ++-- login-utils/runuser.1 | 8 ++++---- login-utils/su.1 | 6 +++--- login-utils/vipw.8 | 2 +- misc-utils/blkid.8 | 2 +- misc-utils/findmnt.8 | 4 ++-- misc-utils/getopt.1 | 4 ++-- misc-utils/kill.1 | 2 +- misc-utils/logger.1 | 2 +- misc-utils/lsblk.8 | 4 ++-- misc-utils/mcookie.1 | 2 +- schedutils/chrt.1 | 2 +- schedutils/taskset.1 | 4 ++-- sys-utils/dmesg.1 | 2 +- sys-utils/eject.1 | 2 +- sys-utils/fallocate.1 | 4 ++-- sys-utils/fstab.5 | 6 +++--- sys-utils/fstrim.8 | 4 ++-- sys-utils/ipcrm.1 | 2 +- sys-utils/ipcs.1 | 2 +- sys-utils/lsipc.1 | 2 +- sys-utils/lsns.8 | 2 +- sys-utils/mount.8 | 14 +++++++------- sys-utils/nsenter.1 | 4 ++-- sys-utils/pivot_root.8 | 2 +- sys-utils/prlimit.1 | 4 ++-- sys-utils/setpriv.1 | 2 +- sys-utils/swapon.8 | 6 +++--- sys-utils/switch_root.8 | 4 ++-- sys-utils/umount.8 | 4 ++-- sys-utils/unshare.1 | 2 +- term-utils/mesg.1 | 2 +- term-utils/script.1 | 2 +- term-utils/setterm.1 | 6 +++--- text-utils/colcrt.1 | 4 ++-- text-utils/more.1 | 4 ++-- text-utils/tailf.1 | 4 ++-- 47 files changed, 88 insertions(+), 88 deletions(-) commit dae51d6979343e33f3b11fcd23345c4aa08c063d Author: Michael Kerrisk (man-pages) Date: Thu Nov 10 11:59:14 2016 +0100 Fix typo in page cross reference (capabilities(7), not, capability(7)) Signed-off-by: Michael Kerrisk sys-utils/setpriv.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)