Changes between v2.21 and v2.22-rc1 -------------------------------------------- commit 3b23a17ec8731ed90734c04b5ffed5679fe91d31 Author: Karel Zak Date: Fri Jul 27 09:17:53 2012 +0200 tests: update non-lib build tests Signed-off-by: Karel Zak tests/expected/build-sys/config-non-libblkid | 9 ++ tests/expected/build-sys/config-non-libmount | 68 +++++++++++++ tests/expected/build-sys/config-non-libs | 21 ++++ tests/expected/build-sys/config-non-libuuid | 39 +++++++ tests/expected/build-sys/config-old-mount | 139 ++++++++++++++++++++++++++ 5 files changed, 276 insertions(+), 0 deletions(-) commit 7770e7df15e0a9ba26b8a1e59ed3234bf909cb26 Author: Karel Zak Date: Fri Jul 27 09:04:55 2012 +0200 build-sys: fix build without libs Signed-off-by: Karel Zak configure.ac | 2 ++ libblkid/src/Makemodule.am | 21 +++++++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) commit aa8135f81b8ba730ec4edde4e0d2a10cc30e9bb7 Author: Karel Zak Date: Fri Jul 27 00:56:28 2012 +0200 build-sys: add minisg COPYING files Signed-off-by: Karel Zak libblkid/Makemodule.am | 2 +- libmount/Makemodule.am | 3 ++- libuuid/Makemodule.am | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) commit 31de0476920bb1040d6e65db5d76e6b7bf98c106 Author: Karel Zak Date: Fri Jul 27 00:09:42 2012 +0200 build-sys: release++ (v2.22-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) commit d6fb4c6986fade516405510f7b238aae0a766f41 Author: Karel Zak Date: Fri Jul 27 00:07:11 2012 +0200 docs: add v2.22-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.22-ReleaseNotes | 1095 +++++++++++++++++++++++++++++ 1 files changed, 1095 insertions(+), 0 deletions(-) commit f1c131ccb879f08e114b33ac740318336500e5bd Author: Karel Zak Date: Thu Jul 26 22:23:09 2012 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) commit eb0f80a65e19a7b0f7e55be00c0f7b6e8ba2d9f9 Author: Karel Zak Date: Thu Jul 26 22:15:58 2012 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 2518 +++++----- po/cs.po | 2495 +++++----- po/da.po | 2507 +++++----- po/de.po |14506 ++++++++++++++++++++++++++++----------------------- po/es.po | 2508 +++++----- po/et.po | 2513 +++++----- po/eu.po | 2475 +++++----- po/fi.po | 2511 +++++----- po/fr.po |15082 ++++++++++++++++++++++++++++++----------------------- po/gl.po | 2431 +++++----- po/hu.po | 2508 +++++----- po/id.po | 2504 +++++----- po/it.po | 2485 +++++----- po/ja.po | 2502 +++++----- po/nl.po |14480 ++++++++++++++++++++++++++++----------------------- po/pl.po | 2495 +++++----- po/pt_BR.po | 2494 +++++----- po/ru.po | 2520 +++++----- po/sl.po | 2508 +++++----- po/sv.po | 2516 +++++----- po/tr.po | 2514 +++++----- po/uk.po | 2505 +++++----- po/util-linux.pot | 2294 ++++----- po/vi.po |14479 ++++++++++++++++++++++++++++---------------------- po/zh_CN.po |11341 ++++++++++++++++++++++------------------ po/zh_TW.po | 2501 +++++----- 26 files changed, 66212 insertions(+), 55980 deletions(-) commit 846d91010d8ed5777abdd6d3949d18ad96cb6ebf Author: Wylmer Wang Date: Thu Jul 26 21:53:37 2012 +0200 po: update zh_CN.po (from translationproject.org) po/zh_CN.po |13151 +++++++++++++++++++++++++++-------------------------------- 1 files changed, 5976 insertions(+), 7175 deletions(-) commit 26a6b4a6f9537899c096290d0e5cd31b1f9c31df Author: Trần Ngọc Quân Date: Thu Jul 26 21:53:37 2012 +0200 po: update vi.po (from translationproject.org) po/vi.po |18111 +++++++++++++++++++++++++++++--------------------------------- 1 files changed, 8337 insertions(+), 9774 deletions(-) commit 163d0e707fda2a83567e89ad80bf1a1e3c28f177 Author: Benno Schulenberg Date: Thu Jul 26 21:53:37 2012 +0200 po: update nl.po (from translationproject.org) po/nl.po |13951 +++++++++++++++++++++++++++----------------------------------- 1 files changed, 6166 insertions(+), 7785 deletions(-) commit 1435d29a214a74d3afdd1a6798525a6cbdfc63ad Author: David Prévot Date: Thu Jul 26 21:53:37 2012 +0200 po: update fr.po (from translationproject.org) po/fr.po |14732 +++++++++++++++++++++++++++----------------------------------- 1 files changed, 6352 insertions(+), 8380 deletions(-) commit 47ae94f4c8de8394b59baaaf2a2aabbb9c839012 Author: Arun Persaud Date: Thu Jul 26 21:53:37 2012 +0200 po: update de.po (from translationproject.org) po/de.po |14127 ++++++++++++++++++++++++++++---------------------------------- 1 files changed, 6283 insertions(+), 7844 deletions(-) commit 03bc5c06587d15421e4cb4aa2931a61606807700 Author: Karel Zak Date: Thu Jul 26 21:49:42 2012 +0200 fdisk: sgi: use xcalloc() Signed-off-by: Karel Zak fdisks/fdisksgilabel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 99b765f0c48e414dcc6f2921e53af7253637f758 Author: Karel Zak Date: Thu Jul 26 21:48:50 2012 +0200 su: use xstrdup() Signed-off-by: Karel Zak login-utils/su.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit ddaf9c35a30dcdbd7b68ee989937753034914a0f Author: Karel Zak Date: Thu Jul 26 21:42:08 2012 +0200 tests: update build-sys tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 212 +++++++++++++++----------- tests/expected/build-sys/config-all-non-nls | 212 +++++++++++++++----------- tests/expected/build-sys/config-audit | 185 +++++++++++++---------- tests/expected/build-sys/config-core | 180 +++++++++++++--------- tests/expected/build-sys/config-devel | 211 +++++++++++++++----------- tests/expected/build-sys/config-non-libblkid | 122 ++++++++-------- tests/expected/build-sys/config-non-libmount | 114 ++++---------- tests/expected/build-sys/config-non-libs | 104 ++++++------- tests/expected/build-sys/config-non-libuuid | 143 ++++++++--------- tests/expected/build-sys/config-non-nls | 180 +++++++++++++--------- tests/expected/build-sys/config-selinux | 185 +++++++++++++---------- tests/expected/build-sys/config-slang | 180 +++++++++++++--------- tests/expected/build-sys/config-static | 188 +++++++++++++---------- 13 files changed, 1198 insertions(+), 1018 deletions(-) commit 22330ba7f37b50a2461fe9f5448224f209501283 Author: Karel Zak Date: Thu Jul 26 19:41:09 2012 +0200 tests: update partx, add missing whitespace ... probably removed by git-pull from Sami's repo :-( Signed-off-by: Karel Zak tests/expected/partx/partx-bsd | 4 ++-- tests/expected/partx/partx-dos+bsd | 8 ++++---- tests/expected/partx/partx-sgi | 4 ++-- tests/expected/partx/partx-sun | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) commit b9c727de1daee3416ed8177b5afec556832ea8ae Author: Karel Zak Date: Thu Jul 26 19:40:36 2012 +0200 tests: update paths to helpers Signed-off-by: Karel Zak tests/commands.sh.in | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 48afe4ddd5337a0b55799d0a1e4654e71d6ed572 Author: Karel Zak Date: Thu Jul 26 19:04:30 2012 +0200 mount: remove unnecessary free() Signed-off-by: Karel Zak sys-utils/mount.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit f716938200c4e606fea9308f729b2c581a6687d2 Author: Karel Zak Date: Thu Jul 26 18:47:59 2012 +0200 tests: update blkid tests with fdisk output Signed-off-by: Karel Zak tests/commands.sh.in | 2 +- tests/expected/blkid/md-raid0-whole | 3 +-- tests/expected/blkid/md-raid1-part | 3 +-- tests/expected/blkid/md-raid1-whole | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) commit 43b382e66ad5be2fae4a7370ae38e26f84d3ec8c Author: Karel Zak Date: Thu Jul 26 18:03:10 2012 +0200 fdisk: dos: mark unused parameters Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit d0a5b91d2efe26093326b0d328dbb0179bf8c604 Author: Karel Zak Date: Thu Jul 26 17:56:39 2012 +0200 fdisk: mac: remove magic maclabel macro, mark unused parameters Signed-off-by: Karel Zak fdisks/fdiskmaclabel.c | 9 ++++++++- fdisks/fdiskmaclabel.h | 7 ++----- 2 files changed, 10 insertions(+), 6 deletions(-) commit 4ae4a8afaa555eb93eea81f21bd0e2dc1c654a25 Author: Karel Zak Date: Thu Jul 26 17:52:30 2012 +0200 fdisk: bsd: mark unused parameters Signed-off-by: Karel Zak fdisks/fdiskbsdlabel.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit b37e2c21ccb467ade5ad54a2d9eae73b6df67f3e Author: Karel Zak Date: Thu Jul 26 17:47:08 2012 +0200 fdisk: aix: remove magic aixlabel macro, mark unused parameters Signed-off-by: Karel Zak fdisks/fdiskaixlabel.c | 11 ++++++++--- fdisks/fdiskaixlabel.h | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) commit c0bf8e97ddeeb9fca3ac1b5eca8c1d83edcea91d Author: Davidlohr Bueso Date: Thu Jul 26 16:16:57 2012 +0200 fdisk: fix menu Commit 79c8a145ddff98d9c5bc70e67c5a861f67c50484 changed the numerical values of fdisk_labeltype and broke the menu functionality, mixing main and expert menus. Revert this change along with the label comment regarding it matching labeltype. This is no longer valid since the original patch that lead to this modification assumed that __probe_labels() would use these indices when creating a default DOS/SUN disklabel, see http://www.spinics.net/lists/util-linux-ng/msg06509.html Reported-by: Petr Uzel Signed-off-by: Davidlohr Bueso fdisks/fdisk.h | 12 ++++++------ fdisks/utils.c | 2 -- 2 files changed, 6 insertions(+), 8 deletions(-) commit a1ec61372cde0c39357ea1760ca3025cfa79f5b4 Author: Bernhard Voelker Date: Thu Jul 26 16:10:23 2012 +0200 prlimit: improve error messages for bad --pid invocation Signed-off-by: Bernhard Voelker sys-utils/prlimit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 51ffaed7232e83872325ab10ee5642e1e2dcda7c Author: Petr Uzel Date: Thu Jul 26 16:04:28 2012 +0200 tests: update fdisk test (default output format changed) Signed-off-by: Petr Uzel tests/expected/fdisk/align-512-4K | 3 +-- tests/expected/fdisk/align-512-4K-63 | 3 +-- tests/expected/fdisk/align-512-4K-md | 6 ++---- tests/expected/fdisk/align-512-512 | 3 +-- tests/expected/fdisk/align-512-512-topology | 3 +-- tests/expected/fdisk/oddinput | 2 +- 6 files changed, 7 insertions(+), 13 deletions(-) commit a7a6f7d2e27344030317e91fb656fbd7f4091b7c Author: Petr Uzel Date: Thu Jul 26 16:04:27 2012 +0200 fdisk: don't print CHS geometry unless DOS compatible mode is set References: http://marc.info/?l=util-linux-ng&m=134329693623430&w=2 Signed-off-by: Petr Uzel fdisks/fdisk.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit f8527f4bd306ce4179d5f82027509770366e757b Author: Petr Uzel Date: Thu Jul 26 16:04:26 2012 +0200 fdisk: always print total number of sectors Print it no regardless on units_per_sector. Signed-off-by: Petr Uzel fdisks/fdisk.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 6a95c736dcb7fae9d4e50caf611cb7e1a7e50ab8 Author: Petr Uzel Date: Thu Jul 26 16:04:25 2012 +0200 fdisk: fix typo Signed-off-by: Petr Uzel fdisks/fdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b29ce87ba499bca5eea5ff2878aa112a0162f22b Author: Petr Uzel Date: Thu Jul 26 16:04:24 2012 +0200 fdisk: make grain global variable part of fdisk_context() There is no reason for this to be global variable - it belongs to the context. Signed-off-by: Petr Uzel Signed-off-by: Karel Zak fdisks/fdisk.c | 17 ++++++++--------- fdisks/fdisk.h | 3 ++- fdisks/fdiskdoslabel.c | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) commit 4e395c55f719824080bf7878bfa1ef57f6737119 Author: Milan Broz Date: Thu Jul 26 16:41:30 2012 +0200 partx: support -o + for adding attribute to output fields Signed-off-by: Milan Broz Signed-off-by: Karel Zak disk-utils/partx.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit 43bca8278647ad5a3ae233da56fe1e87c086afe2 Author: Milan Broz Date: Thu Jul 26 15:52:05 2012 +0200 lsblk: support -o + for adding attribute to output fields. Signed-off-by: Milan Broz misc-utils/lsblk.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit f5077b5180c58dec734d1c1a8d19c8632496a864 Author: Milan Broz Date: Thu Jul 26 15:52:04 2012 +0200 lib/strutils: add string_add_to_idarray() - parse and add to id list Signed-off-by: Milan Broz Signed-off-by: Karel Zak include/strutils.h | 4 ++++ lib/strutils.c | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 0 deletions(-) commit 6e9b06cc0552b2c2105243903009785906c3da2e Author: Karel Zak Date: Thu Jul 26 14:02:15 2012 +0200 dmesg: improve err handling code Signed-off-by: Karel Zak sys-utils/dmesg.c | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) commit 28fa2915d20424e6ddc53bf43e0d05dc749a6c7c Author: Sami Kerola Date: Wed Jul 25 21:15:45 2012 +0200 docs: tell about irc channel Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/3550 Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit c1b2cb70039208e37164ab5f32aa76dd18fb4f43 Author: Sami Kerola Date: Wed Jul 25 21:15:44 2012 +0200 dmesg: inform user when klogctl() or read_buffer() fails Fix to small regression which made 'dmesg --clear' not to error when running without root privileges. Same happen with '-D' and few other options as well. Signed-off-by: Sami Kerola sys-utils/dmesg.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) commit 7560aebe7ea5153b46e8f63a83014e5fcb3a1e8c Author: Sami Kerola Date: Wed Jul 25 21:15:43 2012 +0200 wdctl: fix conflicting types on old systems The program wants the userland version of declaration(s), not the kernel one. Problem occured with glibc-devel-2.5-34. /usr/include/stdint.h:41: error: conflicting types for 'int64_t' /usr/include/linux/types.h:98: error: previous declaration of 'int64_t' was here /usr/include/stdint.h:56: error: conflicting types for 'uint64_t' /usr/include/linux/types.h:96: error: previous declaration of 'uint64_t' was here In file included from /usr/include/stdlib.h:438, from ./include/c.h:13, from sys-utils/wdctl.c:30: Signed-off-by: Sami Kerola sys-utils/wdctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ba816e7d5b172205be75b54c5c6b22decd10443c Author: Sami Kerola Date: Wed Jul 25 21:15:42 2012 +0200 docs: clean up sulogin.8 manual Align with Documentation/howto-man-page.txt Signed-off-by: Sami Kerola login-utils/sulogin.8 | 70 ++++++++++++++++++++++++++++++------------------ 1 files changed, 44 insertions(+), 26 deletions(-) commit 2cd5bc5a40e5e70b870af24ffbc155b3cb50818f Author: Sami Kerola Date: Wed Jul 25 21:15:41 2012 +0200 ddate: russian manual missing from package This manpage causes more trouble than its worth. Signed-off-by: Sami Kerola Makefile.am | 2 +- misc-utils/Makemodule.am | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) commit 77cf6e70210c9be453f9340e3bb51ae408ec4728 Author: Sami Kerola Date: Wed Jul 25 21:15:40 2012 +0200 more: add noreturn function attribute Signed-off-by: Sami Kerola text-utils/more.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 5da054e0709321fa7870bd7e7576d149e7f7c717 Author: Sami Kerola Date: Wed Jul 25 21:15:39 2012 +0200 script: add noreturn function attributes Signed-off-by: Sami Kerola term-utils/script.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 506e6d261e9525a4dd39e7ffff65a313b9a68f24 Author: Sami Kerola Date: Wed Jul 25 21:15:38 2012 +0200 vipw: add noreturn function attribute Signed-off-by: Sami Kerola login-utils/vipw.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 61d97775ef93996f3e7608c908b52ad3e15ac3d1 Author: Sami Kerola Date: Wed Jul 25 21:15:37 2012 +0200 libmount: add noreturn function attribute Signed-off-by: Sami Kerola libmount/src/lock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5bd91510796b66275221aeaf3b321f7cc000ca5a Author: Sami Kerola Date: Wed Jul 25 21:15:36 2012 +0200 libblkid: add noreturn function attribute Signed-off-by: Sami Kerola libblkid/src/dev.c | 2 +- libblkid/src/tag.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 888a2e1cd0318c95c14e6525907b7a6f48eaeb27 Author: Sami Kerola Date: Wed Jul 25 21:15:35 2012 +0200 fdisk: add noreturn function attribute Signed-off-by: Sami Kerola fdisks/fdisk.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit d0aa8a446deaabfcc162a7af97ab24e6bd8440bc Author: Sami Kerola Date: Wed Jul 25 21:15:34 2012 +0200 include: define format to be constant in xasprintf() Add also format function attribute to add robustness. Signed-off-by: Sami Kerola include/xalloc.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 89a13b46bd1a0c8aa5c1dbbc6ed3d669c1448274 Author: Sami Kerola Date: Wed Jul 25 21:15:33 2012 +0200 hexdump: fix shadow declaration text-utils/hexdump.h:84:5: warning: shadowed declaration is here [-Wshadow] ./include/xalloc.h:23:28: warning: declaration of 'size' shadows a global declaration [-Wshadow] ./include/xalloc.h:33:40: warning: declaration of 'size' shadows a global declaration [-Wshadow] ./include/xalloc.h:43:49: warning: declaration of 'size' shadows a global declaration [-Wshadow] Signed-off-by: Sami Kerola text-utils/hexdump.c | 2 +- text-utils/hexdump.h | 2 +- text-utils/parse.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 728510441027c6a5d6dff866beedf1e260852d67 Author: Sami Kerola Date: Wed Jul 25 21:15:32 2012 +0200 ul: fix shadow declaration text-utils/ul.c:641:25: warning: declaration of 'col' shadows a global declaration [-Wshadow] text-utils/ul.c:126:5: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola text-utils/ul.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 9c35d79ad8943acdd594564f03a5c413da38e559 Author: Sami Kerola Date: Wed Jul 25 21:15:31 2012 +0200 more: fix shadow declaration text-utils/more.c:1123:13: warning: declaration of 'state' shadows a previous local [-Wshadow] text-utils/more.c:1095:18: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola text-utils/more.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 4d9e37bfedde94627dec0274851c344560551c3f Author: Sami Kerola Date: Wed Jul 25 21:15:30 2012 +0200 setterm: fix shadow declaration term-utils/setterm.c:221:55: warning: declaration of 'opt_term' shadows a global declaration [-Wshadow] term-utils/setterm.c:181:5: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/setterm.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 2d7bee2554a0fdfcdc58c4a71e9e9d54ad7312f4 Author: Sami Kerola Date: Wed Jul 25 21:15:29 2012 +0200 lscpu: fix shadow declaration sys-utils/lscpu.c:1084:8: warning: declaration of 'buf' shadows a previous local [-Wshadow] sys-utils/lscpu.c:1077:7: warning: shadowed declaration is here [-Wshadow] sys-utils/lscpu.c:1144:9: warning: declaration of 'buf' shadows a previous local [-Wshadow] sys-utils/lscpu.c:1077:7: warning: shadowed declaration is here [-Wshadow] sys-utils/lscpu.c:1196:8: warning: declaration of 'buf' shadows a previous local [-Wshadow] sys-utils/lscpu.c:1077:7: warning: shadowed declaration is here [-Wshadow] sys-utils/lscpu.c:1197:7: warning: declaration of 'i' shadows a previous local [-Wshadow] sys-utils/lscpu.c:1078:6: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola sys-utils/lscpu.c | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) commit 0c7fd6f8f9021a6935692f2df8e563d0256b0a98 Author: Sami Kerola Date: Wed Jul 25 21:15:28 2012 +0200 eject: fix shadow declaration sys-utils/eject.c:529:11: warning: declaration of 'str' shadows a previous local [-Wshadow] sys-utils/eject.c:506:9: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola sys-utils/eject.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit af842d142ee334bf4851329eda48ca69f8bfe0d9 Author: Karel Zak Date: Wed Jul 25 21:15:27 2012 +0200 whereis: fix shadow declaration misc-utils/whereis.c:191:7: warning: declaration of 'dirp' shadows a global declaration [-Wshadow] misc-utils/whereis.c:134:42: warning: shadowed declaration is here [-Wshadow] Reported-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/whereis.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit e35c4a12e1103b1849cc06bb747e87afa5baf094 Author: Sami Kerola Date: Wed Jul 25 21:15:26 2012 +0200 lslocks: fix shadow declaration misc-utils/lslocks.c:157:49: warning: declaration of 'pid' shadows a global declaration [-Wshadow] misc-utils/lslocks.c:80:14: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/lslocks.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 980358f1ef03be95821f499e3d001328cf5322f6 Author: Karel Zak Date: Thu Jul 26 11:44:59 2012 +0200 lsblk: add not about unstable default output Signed-off-by: Karel Zak misc-utils/lsblk.8 | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit f5ee44b17a38293c33f39884ceb43963c29ce7ad Author: Sami Kerola Date: Wed Jul 25 21:15:25 2012 +0200 blkid: fix shadow declaration misc-utils/blkid.c:402:15: warning: declaration of 'usage' shadows a global declaration [-Wshadow] misc-utils/blkid.c:63:13: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola misc-utils/blkid.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 9f94bdce6230454fa3d9e6dc67bf07fa666b6c1d Author: Sami Kerola Date: Wed Jul 25 21:15:24 2012 +0200 sulogin: fix shadow declaration login-utils/sulogin.c:337:8: warning: declaration of 'sushell' shadows a global declaration [-Wshadow] login-utils/sulogin.c:332:13: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola login-utils/sulogin.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) commit 8228372b0ec9b5f349ad428ad8fe2d3cbc6e7f65 Author: Sami Kerola Date: Wed Jul 25 21:15:23 2012 +0200 libmount: fix shadow declaration libmount/src/tab_update.c:203:8: warning: declaration of 'rc' shadows a previous local [-Wshadow] libmount/src/tab_update.c:159:6: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola libmount/src/tab_update.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d5ac5df3592dd84c7aa9537f5b9a3d1348af2a9c Author: Sami Kerola Date: Wed Jul 25 21:15:22 2012 +0200 mkswap: fix shadow declaration disk-utils/mkswap.c:366:57: warning: declaration of 'is_blkdev' shadows a global declaration [-Wshadow] ./include/blkdev.h:92:5: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola disk-utils/mkswap.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit cd1bca868e0f0576c3f5c9c683e38b33e62c9d5e Author: Sami Kerola Date: Wed Jul 25 21:15:20 2012 +0200 tests: look: add words file Archlinux words 2.0-4 package does not have 'apple-pie' in words file. Signed-off-by: Sami Kerola tests/ts/look/separator | 4 +--- tests/ts/look/words | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) commit fe74d3ca7def1dbfb84590a0f40fbae519e7c2c9 Author: Sami Kerola Date: Wed Jul 25 21:15:19 2012 +0200 tests: partx changed default output format Reference: commit 7cfd1b26437acd45f1e2e75c9648afabb8f5b2da Signed-off-by: Sami Kerola tests/expected/partx/partx-bsd | 5 +++-- tests/expected/partx/partx-dos+bsd | 9 +++++---- tests/expected/partx/partx-gpt | 11 ++++++----- tests/expected/partx/partx-sgi | 5 +++-- tests/expected/partx/partx-sun | 5 +++-- 5 files changed, 20 insertions(+), 15 deletions(-) commit 150db7a956557a022f6fdc797ac93b541c19360d Author: Milan Broz Date: Tue Jul 24 16:34:33 2012 +0200 lsblk: add read-ahead column. Signed-off-by: Milan Broz misc-utils/lsblk.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 4477d73f91522cf6a9dad766f24b0418f2b926ae Author: Davidlohr Bueso Date: Tue Jul 24 14:40:30 2012 +0200 fdisk: API: comment labels array Signed-off-by: Davidlohr Bueso fdisks/utils.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 4c5f643695772eb604f0ea4122a3f585163c2034 Author: Davidlohr Bueso Date: Tue Jul 24 14:40:03 2012 +0200 fdisk: API: fix fdisk_add_partition comment style Signed-off-by: Davidlohr Bueso fdisks/utils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9dc72d0bc2cdfd693005e47862c435bd328cf620 Author: Karel Zak Date: Thu Jul 26 10:13:08 2012 +0200 build-sys: add -Wall to warnings Signed-off-by: Karel Zak configure.ac | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 48f2fdbf8923080c13a6b2c18b702ff3e011f611 Author: Karel Zak Date: Thu Jul 26 09:46:49 2012 +0200 utmpdump: fix compiler warning [-Wunused-result] Signed-off-by: Karel Zak fdisks/utils.c | 2 +- login-utils/utmpdump.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 3d660e74fc2641523f5c9f92adf26286c831cae7 Author: Karel Zak Date: Thu Jul 26 09:44:37 2012 +0200 libmount: fix compiler warning [-Wsign-compare] Signed-off-by: Karel Zak libmount/src/cache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bd2d882209f816d07ed03e19e9e8dc13a9832071 Author: Karel Zak Date: Thu Jul 26 09:41:57 2012 +0200 libblkid: fix compiler warning [-Wsign-compare] Signed-off-by: Karel Zak libblkid/src/probe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f69b4c5b626519f02e7e648de5d3a7a2612d9175 Author: Karel Zak Date: Thu Jul 26 09:27:42 2012 +0200 include/optutils: remove unnecessary exclusive_option() Signed-off-by: Karel Zak include/optutils.h | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-) commit 1c608be18c4550dca06612298b45cdbe2f93cda9 Author: Karel Zak Date: Thu Jul 26 09:26:51 2012 +0200 wdctl: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/wdctl.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit 2dac37dd68ab17c73e4ed1a7cd2d065c1be20e39 Author: Karel Zak Date: Thu Jul 26 09:26:34 2012 +0200 prlimit: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/prlimit.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) commit 51a37c19069b56e2ac648da71e6e39d5b3ed16fe Author: Karel Zak Date: Thu Jul 26 09:26:21 2012 +0200 mount: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/mount.c | 47 ++++++++++++++--------------------------------- 1 files changed, 14 insertions(+), 33 deletions(-) commit 8e97eb4b9fbbc748f9a9dba22b0f7a94266f0a89 Author: Karel Zak Date: Thu Jul 26 09:26:10 2012 +0200 lscpu: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/lscpu.c | 28 ++++++++++------------------ 1 files changed, 10 insertions(+), 18 deletions(-) commit c1ac31445c00bac1c5ca38933ebd84bc7aca445d Author: Karel Zak Date: Thu Jul 26 09:25:59 2012 +0200 losetup: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/losetup.c | 28 +++++++++------------------- 1 files changed, 9 insertions(+), 19 deletions(-) commit dade002ab0baf7f8c6485c9b422cf8a5f4a1bdf3 Author: Karel Zak Date: Thu Jul 26 09:25:48 2012 +0200 hwclock: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/hwclock.c | 90 ++++++++++++++++++--------------------------------- 1 files changed, 32 insertions(+), 58 deletions(-) commit 43d2eeef5dd3a64c372dbf60e4a32aa9e97b4645 Author: Karel Zak Date: Thu Jul 26 09:25:35 2012 +0200 dmesg: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/dmesg.c | 30 ++++++++++-------------------- 1 files changed, 10 insertions(+), 20 deletions(-) commit 20da61dc8b160922ee4e3913aed2ae3f48591cfc Author: Karel Zak Date: Thu Jul 26 09:25:19 2012 +0200 chcpu: use err_exclusive_options() Signed-off-by: Karel Zak sys-utils/chcpu.c | 24 +++++++++--------------- 1 files changed, 9 insertions(+), 15 deletions(-) commit abb7b98ca3ced101627428a90f3c68e3cb3373ff Author: Karel Zak Date: Thu Jul 26 09:24:50 2012 +0200 wipefs: use err_exclusive_options() Signed-off-by: Karel Zak misc-utils/wipefs.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit 98f2dc7a2b91b2a9de6339a085321d8c8e841e85 Author: Karel Zak Date: Thu Jul 26 09:24:36 2012 +0200 lsblk: use err_exclusive_options() Signed-off-by: Karel Zak misc-utils/lsblk.c | 31 ++++++++++++------------------- 1 files changed, 12 insertions(+), 19 deletions(-) commit f1622b57050f02120b9bba83fc012c01709a6754 Author: Karel Zak Date: Thu Jul 26 09:24:21 2012 +0200 findmnt: use err_exclusive_options() Signed-off-by: Karel Zak misc-utils/findmnt.c | 45 +++++++++++++-------------------------------- 1 files changed, 13 insertions(+), 32 deletions(-) commit a8e458b9712d1efafca44614e38223eaf16a6380 Author: Karel Zak Date: Thu Jul 26 09:23:58 2012 +0200 blkid: use err_exclusive_options() Signed-off-by: Karel Zak misc-utils/blkid.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) commit a29627cb29e2a0cb93f83146747a77025e05558d Author: Karel Zak Date: Thu Jul 26 09:23:40 2012 +0200 partx: use err_exclusive_options() Signed-off-by: Karel Zak disk-utils/partx.c | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) commit 217d20a73c6ad502292af8a4e9e1158949b62346 Author: Karel Zak Date: Thu Jul 26 09:04:55 2012 +0200 include/optutils: add err_exclusive_options() This is improved implementation of exclusive_option(). The new implementation: - uses regular struct option to compose error messages - relationships between options are described in one const static array - the current status is stored in one int array Signed-off-by: Karel Zak include/optutils.h | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 75 insertions(+), 0 deletions(-) commit 9e9bceeb504d572e085f68349620dab09a6c23ed Author: Karel Zak Date: Wed Jul 25 18:04:10 2012 +0200 lsblk: fix dm_name usage Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9002d6504ad942e06fe2c769070613ca78a7a41e Author: Mantas Mikulėnas Date: Wed Jul 25 17:07:16 2012 +0300 agetty: remove unnecessary sleep(10) I'm quite sure this is not supposed to be here (apparently added as part of commit 783b08fc1c6e5c906e). Signed-off-by: Mantas Mikulėnas term-utils/agetty.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit de3d6c93790b1cb5016113f79f65b0439ade684c Author: Karel Zak Date: Tue Jul 24 14:15:08 2012 +0200 Revert "fdisk: de-duplicate disk label strings" ... because it's not expected that fdisk_label will be exported by API and accessible for applications (like fdisk.c). It's private libfdisk stuff. This reverts commit e7818642600d6cd573a8e1ed5363fce52def5821. fdisks/fdisk.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit e7818642600d6cd573a8e1ed5363fce52def5821 Author: Bernhard Voelker Date: Tue Jul 24 13:18:16 2012 +0200 fdisk: de-duplicate disk label strings Signed-off-by: Bernhard Voelker fdisks/fdisk.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 84edc8dde3ada052a6535e97a9f14bde3f0bc3a8 Author: Petr Uzel Date: Tue Jul 24 13:52:32 2012 +0200 fdisk: return success from sgi_create_disklabel Signed-off-by: Petr Uzel fdisks/fdisksgilabel.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 63906221b65bcafc26753406360b94570cceb361 Author: Petr Uzel Date: Tue Jul 24 13:52:31 2012 +0200 fdisk: fix compiler warning [-Werror=unused-variable] Signed-off-by: Petr Uzel fdisks/fdisk.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 9199f5cd0a1926e7a9e02bd47dd8046374cf8840 Author: Karel Zak Date: Tue Jul 24 14:06:25 2012 +0200 dmesg: add fileback for SEEK_DATA Reported-by: Bernhard Voelker Signed-off-by: Karel Zak include/c.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 594304d56d2238315ebc64347a963acab398b83d Author: Karel Zak Date: Mon Jul 23 23:09:41 2012 +0200 fdisk: don't ignore 1MiB granularity on 512-byte sector devices Note that +10MB is 100000 (10^N) and relative values (+ convention) should be be aligned to the default grain (= 1 MiB). Old version: Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB Partition 1 of type Linux and of size 9.5 MiB is set ... /dev/loop0p1 2048 21578 9765+ 83 Linux /dev/loop0p2 21579 43062 10742 83 Linux New version: Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB Partition 1 of type Linux and of size 10 MiB is set ... /dev/loop0p1 2048 22527 10240 83 Linux /dev/loop0p2 22528 43007 10240 83 Linux Addresses: http://thread.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5913/focus=5929 Reported-by: Milan Broz Signed-off-by: Karel Zak fdisks/fdisk.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) commit 685fe42e124e8f7beea6251585ed23bd45d53642 Author: Karel Zak Date: Tue Jul 24 10:52:09 2012 +0200 fdisk: remove unused variables Signed-off-by: Karel Zak fdisks/fdisk.h | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 441afd481db5fd4602370c9deaad464d2b2db9a0 Author: Karel Zak Date: Tue Jul 24 10:41:47 2012 +0200 fdisk: make label API more robust Signed-off-by: Karel Zak fdisks/utils.c | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 deletions(-) commit 639f1d56b968fd9b8770ef57210258d0126459b1 Author: Davidlohr Bueso Date: Tue Jul 24 10:31:32 2012 +0200 fdisk: API: add fdisk_label_change [kzak@redhat.com: - rename function - remove fdisk_create_default_disklabel()] Signed-off-by: Karel Zak Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 8 +++--- fdisks/fdisk.h | 4 ++- fdisks/fdiskaixlabel.c | 1 + fdisks/fdiskbsdlabel.c | 64 ++++++++++++++++++++++++------------------------ fdisks/fdiskdoslabel.c | 3 +- fdisks/fdiskdoslabel.h | 1 - fdisks/fdiskmaclabel.c | 1 + fdisks/fdisksgilabel.c | 4 +- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 3 +- fdisks/fdisksunlabel.h | 1 - fdisks/utils.c | 40 +++++++++++++++++++++--------- 12 files changed, 75 insertions(+), 56 deletions(-) commit 2ca61a61e13cc61bc8782f8dde0f8fece6a4eca6 Author: Davidlohr Bueso Date: Tue Jul 24 09:54:52 2012 +0200 fdisk: API: add verify to label operations [kzak@redhat.com: - rename some functions] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak fdisks/fdisk.c | 86 +++++------------------------------------------ fdisks/fdisk.h | 8 ++++ fdisks/fdiskaixlabel.c | 1 + fdisks/fdiskbsdlabel.c | 3 +- fdisks/fdiskdoslabel.c | 65 ++++++++++++++++++++++++++++++++++++ fdisks/fdiskmaclabel.c | 1 + fdisks/fdisksgilabel.c | 29 ++++++++-------- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 7 +++- fdisks/fdisksunlabel.h | 1 - fdisks/utils.c | 16 +++++++++ 11 files changed, 122 insertions(+), 96 deletions(-) commit 0f639e54dfca37879545fc2e0efa8a509ca87b72 Author: Davidlohr Bueso Date: Tue Jul 24 09:34:22 2012 +0200 fdisk: API: add new partition to label operations Signed-off-by: Karel Zak Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 38 +++++----------------- fdisks/fdisk.h | 3 ++ fdisks/fdiskaixlabel.c | 10 ++++++ fdisks/fdiskbsdlabel.c | 81 +++++++++++++++++++++++------------------------ fdisks/fdiskdoslabel.c | 20 ++++++++---- fdisks/fdiskdoslabel.h | 2 - fdisks/fdiskmaclabel.c | 10 ++++++ fdisks/fdisksgilabel.c | 4 +- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 3 +- fdisks/fdisksunlabel.h | 1 - fdisks/utils.c | 19 +++++++++++ 12 files changed, 108 insertions(+), 84 deletions(-) commit fae7b1bcb5eab5c470b15fd8c491f42244210837 Author: Davidlohr Bueso Date: Mon Jul 23 18:47:42 2012 +0200 fdisk: API: add write to label operations [kzak@redhat.com: - rename functions - use errno] Signed-off-by: Karel Zak Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 23 +++++---------------- fdisks/fdisk.h | 10 ++------ fdisks/fdiskaixlabel.c | 1 + fdisks/fdiskbsdlabel.c | 30 +++++++++++++++------------- fdisks/fdiskdoslabel.c | 25 ++++++++++++++++++++--- fdisks/fdiskdoslabel.h | 1 - fdisks/fdiskmaclabel.c | 1 + fdisks/fdisksgilabel.c | 50 ++++++++++++++++++++++++++++++++--------------- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 9 +++++-- fdisks/fdisksunlabel.h | 1 - fdisks/utils.c | 16 +++++++++++++++ 12 files changed, 104 insertions(+), 64 deletions(-) commit 61c4cb85309a62f343a74175b06984e0111f3fd8 Author: Davidlohr Bueso Date: Mon Jul 23 18:15:57 2012 +0200 fdisk: API: add delete partition to label operations Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak fdisks/fdisk.c | 21 ++------- fdisks/fdisk.h | 3 + fdisks/fdiskaixlabel.c | 1 + fdisks/fdiskbsdlabel.c | 25 +++++------ fdisks/fdiskdoslabel.c | 113 ++++++++++++++++++++++++------------------------ fdisks/fdiskdoslabel.h | 1 - fdisks/fdiskmaclabel.c | 1 + fdisks/fdisksgilabel.c | 6 +- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 9 ++-- fdisks/fdisksunlabel.h | 1 - fdisks/utils.c | 22 +++++++++- 12 files changed, 107 insertions(+), 97 deletions(-) commit ed21ffd347ae67ea041747914229a8edcae6b46d Author: Karel Zak Date: Mon Jul 23 17:58:53 2012 +0200 fdisk: set label pointer in fdisk_create_default_disklabel() Signed-off-by: Karel Zak fdisks/utils.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 79c8a145ddff98d9c5bc70e67c5a861f67c50484 Author: Davidlohr Bueso Date: Sun Jul 22 19:05:01 2012 +0200 fdisk: API: add to label operations to context The context structure is the fdisk API's main data type as it keeps all data together. Add the label structure to it, so that the pt-specific operations can be called from the context. [kzak@redhat.com: - merge with latest changes - don't allocate the label, use const pointer] Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 4 ++-- fdisks/fdisk.h | 24 ++++++++++++++++-------- fdisks/utils.c | 22 +++++++++++----------- 3 files changed, 29 insertions(+), 21 deletions(-) commit 67987b47346932625c077ca575fce5de568a21dd Author: Karel Zak Date: Mon Jul 23 14:24:25 2012 +0200 fdisk: rename cxt->mbr buffer to cxt->firstsector MBR is regular name for DOS partition table, let use less confusing name for the buffer. Signed-off-by: Karel Zak fdisks/fdisk.c | 2 +- fdisks/fdisk.h | 4 ++-- fdisks/fdiskaixlabel.c | 4 ++-- fdisks/fdiskdoslabel.c | 24 ++++++++++++------------ fdisks/fdiskmaclabel.c | 2 +- fdisks/fdiskmaclabel.h | 2 +- fdisks/fdisksgilabel.c | 4 ++-- fdisks/fdisksgilabel.h | 2 +- fdisks/fdisksunlabel.c | 2 +- fdisks/fdisksunlabel.h | 2 +- fdisks/utils.c | 24 ++++++++++++------------ 11 files changed, 36 insertions(+), 36 deletions(-) commit 6718834075f299098cc170fd2a2e420725f022d0 Author: Karel Zak Date: Mon Jul 23 14:07:35 2012 +0200 fdisk: move label specific stuff to fdiskdoslabel.c Signed-off-by: Karel Zak fdisks/fdisk.c | 5 ----- fdisks/fdisk.h | 1 - fdisks/fdiskdoslabel.c | 9 +++++++-- fdisks/fdiskdoslabel.h | 2 ++ fdisks/fdisksgilabel.c | 7 ++++++- 5 files changed, 15 insertions(+), 9 deletions(-) commit 9a5e29e94b60b4733a1e4432b00b1a139fafb255 Author: Karel Zak Date: Mon Jul 23 13:57:58 2012 +0200 fdisk: move DOS geometry code from generic part to label specific get_partition_table_geometry() should be called from DOS code Signed-off-by: Karel Zak fdisks/fdisk.c | 40 +++++----------------------------------- fdisks/fdisk.h | 2 -- fdisks/fdiskdoslabel.c | 38 ++++++++++++++++++++++++++++++++++++++ fdisks/utils.c | 42 ++++++++++++++++++++++-------------------- 4 files changed, 65 insertions(+), 57 deletions(-) commit 6123d1dd135d045799ea1e48af7c2eee8b86b438 Author: Karel Zak Date: Mon Jul 23 11:46:27 2012 +0200 tests: update oddinput test Signed-off-by: Karel Zak tests/expected/fdisk/oddinput | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit ed3e0e373845fd7fb991a34386e49ffc48ca01d6 Author: Karel Zak Date: Mon Jul 23 11:40:46 2012 +0200 fdisk: fix error message for too small devices # touch ~/a # fdisk -l ~/a # fdisk: cannot open /root/a: Success should be (at least): fdisk: cannot open /root/a: Invalid argument Signed-off-by: Karel Zak fdisks/utils.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 87a97832e11c20e4b4b3ec72f4cdec7ac7bd38d7 Author: Karel Zak Date: Mon Jul 23 11:17:35 2012 +0200 fdisk: (dos) cleanup function names - use 'write' in name for functions that really touch devices - use 'set' in name for functions that modify in-memory stuff ... otherwise it's unreadable mess Signed-off-by: Karel Zak fdisks/fdiskdoslabel.c | 24 +++++++++++++++--------- fdisks/fdiskdoslabel.h | 6 ------ 2 files changed, 15 insertions(+), 15 deletions(-) commit 84e18f7659ed8d311a5549936afba7f6d2101a79 Author: Karel Zak Date: Mon Jul 23 11:08:26 2012 +0200 fdisk: get_boot() has to die (step II.) Signed-off-by: Karel Zak fdisks/fdisk.c | 24 +++++++----------------- 1 files changed, 7 insertions(+), 17 deletions(-) commit a71601af2769cc256341b85414065e13377671d7 Author: Karel Zak Date: Mon Jul 23 10:56:06 2012 +0200 fdisk: get_boot() has to die (step I.) - move generic stuff around "create disklabel" operation to API Signed-off-by: Karel Zak fdisks/fdisk.c | 15 ++++++--------- fdisks/fdisk.h | 2 ++ fdisks/fdiskdoslabel.c | 3 ++- fdisks/fdiskdoslabel.h | 2 +- fdisks/fdisksunlabel.c | 4 +++- fdisks/fdisksunlabel.h | 2 +- fdisks/utils.c | 35 +++++++++++++++++++++++++++++++++++ 7 files changed, 50 insertions(+), 13 deletions(-) commit 759d093fae0a1a7bcc87897b53690e20c3ddb0a3 Author: Karel Zak Date: Mon Jul 23 10:11:08 2012 +0200 fdisk: move user geometry setting from fdisk.c to API - to avoid duplicate code - to remove fdisk_geom_set_cyls() from API Signed-off-by: Karel Zak fdisks/fdisk.c | 38 +++++++++++------------------------- fdisks/fdisk.h | 5 +++- fdisks/utils.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 69 insertions(+), 32 deletions(-) commit 81ddbc71403141b0d19e1502bbde874cc2a9e757 Author: Karel Zak Date: Fri Jul 20 20:06:10 2012 +0200 dmesg: fix usage() Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 60464b1f1a1828ecf94ac85e40856693f61ab552 Author: Karel Zak Date: Fri Jul 20 19:45:36 2012 +0200 dmesg: add --reltime to print human readable deltas [Jul20 09:50] device vnet0 entered promiscuous mode [ +0.002248] virbr0: topology change detected, propagating [ +0.000017] virbr0: port 2(vnet0) entered forwarding state [ +0.000036] virbr0: port 2(vnet0) entered forwarding state [ +0.001663] ADDRCONF(NETDEV_CHANGE): virbr0: link becomes ready [ +10.480914] vnet0: no IPv6 routers present [Jul20 14:35] xhci_hcd 0000:0e:00.0: WARN Event TRB for slot 3 ep 5 with no TDs queued? [Jul20 19:23] EXT4-fs (sda2): re-mounted. Opts: (null) [ +6.052980] EXT4-fs (sda2): re-mounted. Opts: (null) Suggested by Linus: http://thread.gmane.org/gmane.linux.kernel/1290886/focus=1296138 Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 + sys-utils/dmesg.c | 91 ++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 75 insertions(+), 18 deletions(-) commit 0d1b330071605485b934785cd0a07eb62532ce3a Author: Karel Zak Date: Fri Jul 20 17:43:50 2012 +0200 dmesg; cleanup time printing stuff Signed-off-by: Karel Zak sys-utils/dmesg.c | 49 +++++++++++++++++++++++++++++++++++-------------- 1 files changed, 35 insertions(+), 14 deletions(-) commit 37b04d6cce552116f31272a56d699f7c6cc91cdf Author: Karel Zak Date: Fri Jul 20 14:41:25 2012 +0200 dmesg: implement backwardly compatible --raw for /dev/kmsg .. and if you really want raw data from /dev/kmsg then use dd(1) ;-) Signed-off-by: Karel Zak sys-utils/dmesg.1 | 15 +++++++++++++-- sys-utils/dmesg.c | 12 ++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) commit 30e0661830ad022134a98e7f3441011c669b8caf Author: Karel Zak Date: Fri Jul 20 14:11:20 2012 +0200 dmesg: cleanup exclusive_option() usage Signed-off-by: Karel Zak sys-utils/dmesg.c | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) commit 0fd12a9697c2e01e3c2e1e558ff027cd2947ee94 Author: Karel Zak Date: Fri Jul 20 14:04:48 2012 +0200 dmesg: add --follow feature Signed-off-by: Karel Zak sys-utils/dmesg.1 | 3 +++ sys-utils/dmesg.c | 25 ++++++++++++++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) commit c677ffba974b29f6bd61aba161c219b3757bcfc1 Author: Karel Zak Date: Fri Jul 20 13:24:42 2012 +0200 dmesg: support --clear for kmsg Signed-off-by: Karel Zak sys-utils/dmesg.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) commit ddca870aa90bc25154b24f0070b54cad34f80cda Author: Karel Zak Date: Fri Jul 20 12:09:09 2012 +0200 dmesg: read /dev/kmsg (since kernel 3.5.0) kmsg advantages: - extendible format - tags for messages - one read() returns one complete record See kernel Documentation/ABI/testing/dev-kmsg. Signed-off-by: Karel Zak sys-utils/dmesg.c | 230 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 202 insertions(+), 28 deletions(-) commit ed61acc2542ebb0d9b8f5600c38fbe0d77933345 Author: Karel Zak Date: Thu Jul 19 18:35:20 2012 +0200 dmesg: add --syslog to force to old syslog(2) interface ... just for debugging or for people who somehow depends on syslog(2) behavior. Signed-off-by: Karel Zak sys-utils/dmesg.1 | 7 +++++++ sys-utils/dmesg.c | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) commit 7af230601abc41938b3ac76c44545c886583a1eb Author: Karel Zak Date: Thu Jul 19 18:33:20 2012 +0200 dmesg: refactoring for kmsg support Signed-off-by: Karel Zak sys-utils/dmesg.c | 119 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 71 insertions(+), 48 deletions(-) commit 7ff1f63f15474195b1b6ac255bee6ce984fbb6fa Author: Karel Zak Date: Thu Jul 19 17:12:54 2012 +0200 dmesg: unify internal APIs Signed-off-by: Karel Zak sys-utils/dmesg.c | 38 ++++++++++++++++++++------------------ 1 files changed, 20 insertions(+), 18 deletions(-) commit e6471b9fc509f1210fcbbca212d2c097a5c2d87e Author: Karel Zak Date: Thu Jul 19 17:01:05 2012 +0200 dmesg: cleanup, move more stuff to control struct Signed-off-by: Karel Zak sys-utils/dmesg.c | 87 +++++++++++++++++++++++++++++++++-------------------- 1 files changed, 54 insertions(+), 33 deletions(-) commit 9b3a698427948f45396d076617191df16b88b86a Author: Karel Zak Date: Thu Jul 19 16:33:08 2012 +0200 dmesg: move filename to control struct Signed-off-by: Karel Zak sys-utils/dmesg.c | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) commit 994871c59faece5d9ac772e91e6d911ce2441cd6 Author: Karel Zak Date: Wed Jul 18 22:09:24 2012 +0200 libmount: check VFS mount options in mnt_diff_tables() after "-o remount,ro" in unshared namespace is the original VFS entry still read-write: original: 42 21 8:2 / /boot rw,relatime - ext4 /dev/sda2 ro,user_xattr,acl,barrier=1,data=ordered unshared + ro remount: 78 51 8:2 / /boot ro,relatime - ext4 /dev/sda2 ro,user_xattr,acl,barrier=1,data=ordered Signed-off-by: Karel Zak libmount/src/tab_diff.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit 955eac11a7e4cf0003850c8a40ca5868f26e0810 Author: Karel Zak Date: Tue Jul 17 22:08:27 2012 +0200 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) commit aedeaa40d1cf5eb687a575b322a09a9a48ced623 Author: Karel Zak Date: Tue Jul 17 22:02:35 2012 +0200 mount: (new) add --source and --target In some cases (for example if only one mount argument is given) may be mount request ambivalent: # mount /foo and fstab: /dev/sda5 /foo rw 0 0 /foo /bar bind 0 0 the new options allows to be more explicit # mount --target /foo (mounts /dev/sda5) # mount --source /foo (binds /foo to /bar) It's possible to use the options together # mount --source /dev/sda2 --target /home Signed-off-by: Karel Zak sys-utils/mount.8 | 22 +++++++++++- sys-utils/mount.c | 98 +++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 94 insertions(+), 26 deletions(-) commit e39cbb76033e689093da42453839afa9c8d4c8e5 Author: Karel Zak Date: Tue Jul 17 21:57:22 2012 +0200 libmount: allow to disable swap between source and target In some cases (for example if only one mount argument is given) may be mount request ambivalent: # mount /foo and fstab: /dev/sda5 /foo rw 0 0 /foo /bar bind 0 0 The libmount allows to swap between source and target (if source is not LABEL or UUID) by default. The new function mnt_context_disable_swapmatch() allows to disable this feature. Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 4 +++- libmount/src/context.c | 30 ++++++++++++++++++++++++++++-- libmount/src/context_umount.c | 2 +- libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 2 ++ libmount/src/mountP.h | 1 + 6 files changed, 37 insertions(+), 4 deletions(-) commit 4633cc95a4697e55fdf4a2b6c65d7b89652bf83f Author: Karel Zak Date: Tue Jul 17 15:22:51 2012 +0200 docs: update TODO file Signed-off-by: Karel Zak Documentation/TODO | 18 +++--------------- 1 files changed, 3 insertions(+), 15 deletions(-) commit cc924cc086cf0363f49edd6ce14947acae2dad77 Author: Karel Zak Date: Mon Jul 16 18:57:30 2012 +0200 mkfs.cramfs: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak disk-utils/cramfs_common.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e5d262eec5e832bed33537c71c57c740d45dcfdc Author: Karel Zak Date: Mon Jul 16 18:55:39 2012 +0200 eject: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak sys-utils/eject.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d63eb75eee31312304f450d3aa417db35af1a042 Author: Karel Zak Date: Mon Jul 16 18:55:01 2012 +0200 fsck.cramfs: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d91757a0f96745a781acd42535bec487718bebaa Author: Karel Zak Date: Mon Jul 16 18:53:11 2012 +0200 ldattach: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak sys-utils/ldattach.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 583f14ccbde9af969a60527a004203c4a488e659 Author: Karel Zak Date: Mon Jul 16 18:52:30 2012 +0200 lscpu: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak sys-utils/lscpu.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 5b90f817d83ca45fcbe32bc49ac6d08c0ef858b3 Author: Karel Zak Date: Mon Jul 16 18:51:27 2012 +0200 setarch: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak sys-utils/setarch.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9f38129eff049aef10320d29c36f8ccacc16e99f Author: Karel Zak Date: Mon Jul 16 18:50:39 2012 +0200 cytune: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak sys-utils/cytune.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d918c13c4c8ff8b83487cbec90bd96c904fa75bc Author: Karel Zak Date: Mon Jul 16 18:49:36 2012 +0200 ipcmk: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak sys-utils/ipcmk.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 5769a938b498e8a2a4c5457fbaeac93ff741b10f Author: Karel Zak Date: Mon Jul 16 18:48:27 2012 +0200 scriptreplay: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak term-utils/scriptreplay.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 81481b5a91348281154ea7b0e6db125c2078673f Author: Karel Zak Date: Mon Jul 16 18:47:29 2012 +0200 tailf: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak text-utils/tailf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a4b8ce8223f4587a7b498117af57c9cb6f96f0d4 Author: Karel Zak Date: Mon Jul 16 18:46:44 2012 +0200 colrm: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak text-utils/colrm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 16bade897c7baa28d9daeaa306797c94042df912 Author: Karel Zak Date: Mon Jul 16 18:45:52 2012 +0200 raw: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak disk-utils/raw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 93f90e13326d86e4600c7f885e7e83fb8a7719af Author: Karel Zak Date: Mon Jul 16 18:43:53 2012 +0200 hwclock: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak sys-utils/hwclock-cmos.c | 4 ++-- sys-utils/hwclock-kd.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) commit c5e8db5f46024bc88f1c0c5ed051d73ee56fb276 Author: Karel Zak Date: Mon Jul 16 18:38:14 2012 +0200 test_sysinfo: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak tests/helpers/test_sysinfo.c | 29 ++++++++++------------------- 1 files changed, 10 insertions(+), 19 deletions(-) commit eabfd72f30735c49a07c6f72d342bbbdefec7035 Author: Karel Zak Date: Mon Jul 16 18:36:27 2012 +0200 kill: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak misc-utils/kill.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) commit 1775fce8418d53e1bdfca4a1e53d18698ee2ad63 Author: Karel Zak Date: Mon Jul 16 18:31:45 2012 +0200 su: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak login-utils/su.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 1369e06cdba4b16fe5e188d32d06bfdb799f861f Author: Karel Zak Date: Mon Jul 16 18:29:22 2012 +0200 lib/match: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak lib/match.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit c642a6aaae75621ae0be5cd217cae4d10d9a52a7 Merge: da4ea9f 289dcc9 Author: Karel Zak Date: Mon Jul 16 18:19:08 2012 +0200 Merge branch '2012wk28' * 2012wk28: translation: unify file open error messages translation: unify stat error messages utmpdump: use help and version output macros su: align with howto-usage-function fdisk: make if clause easier to read look: remove extra semicolon utmpdump: remove unused variable swapon: remove unused variables lib/loopdev: minor bug fix: add missing semicolon lib/pager: minor compiler warning fixes libblkid: remove duplicate entries in symbols commit 289dcc90234680063a336925a99d1ef04e97cbda Author: Sami Kerola Date: Sun Jul 15 10:39:57 2012 +0200 translation: unify file open error messages Signed-off-by: Sami Kerola disk-utils/addpart.c | 2 +- disk-utils/delpart.c | 2 +- disk-utils/fdformat.c | 4 ++-- disk-utils/fsck.c | 2 +- disk-utils/fsck.cramfs.c | 4 ++-- disk-utils/fsck.minix.c | 2 +- disk-utils/isosize.c | 2 +- disk-utils/mkfs.cramfs.c | 2 +- disk-utils/mkfs.minix.c | 2 +- disk-utils/partx.c | 2 +- disk-utils/swaplabel.c | 2 +- fdisks/cfdisk.c | 6 +++--- fdisks/fdisk.c | 6 +++--- lib/at.c | 2 +- lib/path.c | 4 ++-- login-utils/islocal.c | 3 +-- login-utils/last.c | 2 +- login-utils/sulogin.c | 8 ++++---- login-utils/utmpdump.c | 4 ++-- login-utils/vipw.c | 2 +- misc-utils/findmnt.c | 2 +- misc-utils/mcookie.c | 4 ++-- sys-utils/dmesg.c | 2 +- sys-utils/eject.c | 4 ++-- sys-utils/fallocate.c | 2 +- sys-utils/fsfreeze.c | 2 +- sys-utils/fstrim.c | 2 +- sys-utils/hwclock-cmos.c | 2 +- sys-utils/hwclock-rtc.c | 10 +++++----- sys-utils/hwclock.c | 2 +- sys-utils/losetup.c | 2 +- sys-utils/rtcwake.c | 6 +++--- sys-utils/swapon.c | 4 ++-- sys-utils/wdctl.c | 2 +- term-utils/script.c | 6 +++--- term-utils/scriptreplay.c | 4 ++-- term-utils/wall.c | 2 +- text-utils/pg.c | 2 +- text-utils/rev.c | 2 +- text-utils/tailf.c | 4 ++-- text-utils/ul.c | 2 +- 41 files changed, 65 insertions(+), 66 deletions(-) commit add1b8afd0d836039d9adcc29f53ba6136a66b09 Author: Sami Kerola Date: Sun Jul 15 10:17:53 2012 +0200 translation: unify stat error messages Signed-off-by: Sami Kerola disk-utils/fdformat.c | 2 +- disk-utils/fsck.cramfs.c | 2 +- disk-utils/mkfs.bfs.c | 2 +- disk-utils/mkfs.cramfs.c | 4 ++-- disk-utils/mkfs.minix.c | 2 +- disk-utils/partx.c | 2 +- misc-utils/namei.c | 2 +- sys-utils/dmesg.c | 2 +- sys-utils/fsfreeze.c | 2 +- sys-utils/fstrim.c | 2 +- sys-utils/swapon.c | 2 +- sys-utils/switch_root.c | 6 +++--- term-utils/mesg.c | 2 +- term-utils/wall.c | 2 +- text-utils/tailf.c | 4 ++-- 15 files changed, 19 insertions(+), 19 deletions(-) commit 400bc941fc43159d441934951074c575b769a372 Author: Sami Kerola Date: Sun Jul 15 09:57:31 2012 +0200 utmpdump: use help and version output macros Done to reduce translation project work. Signed-off-by: Sami Kerola login-utils/utmpdump.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 9d13b6d54a3b714c78904e28a350ea36dc4795d1 Author: Sami Kerola Date: Sun Jul 15 09:46:45 2012 +0200 su: align with howto-usage-function Signed-off-by: Sami Kerola login-utils/su.c | 51 +++++++++++++++++++++++++-------------------------- 1 files changed, 25 insertions(+), 26 deletions(-) commit 7d2ba34044662eb559f5eb158ec01e918fdec749 Author: Sami Kerola Date: Sun Jul 15 08:58:51 2012 +0200 fdisk: make if clause easier to read Signed-off-by: Sami Kerola fdisks/fdisk.c | 37 ++++++++++++++++++------------------- 1 files changed, 18 insertions(+), 19 deletions(-) commit fad05c68e6f00e699be94794acd100c1916a6716 Author: Sami Kerola Date: Sat Jul 14 23:50:15 2012 +0200 look: remove extra semicolon The both macro SKIP_PAST_NEWLINE and location where macro is used will not need semicolon at the end of line. Signed-off-by: Sami Kerola misc-utils/look.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4e7e68ca6fdf58d2c65664e00fddc29075fa8e5d Author: Sami Kerola Date: Sat Jul 14 23:47:07 2012 +0200 utmpdump: remove unused variable Signed-off-by: Sami Kerola login-utils/utmpdump.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit b9136477e639bbf0cbd544570addd5af74e10681 Author: Sami Kerola Date: Sat Jul 14 23:44:56 2012 +0200 swapon: remove unused variables Signed-off-by: Sami Kerola sys-utils/swapon.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 510a1a3450e5691ef71f722ddeb4b8c857f2c912 Author: Sami Kerola Date: Sat Jul 14 23:35:41 2012 +0200 lib/loopdev: minor bug fix: add missing semicolon Missing semicolon made test_loop_info() to return function loopcxt_enable_debug() return value, which happen to be void. I suspect the loopcxt_enable_debug() was usually not executed, while it should be. Signed-off-by: Sami Kerola lib/loopdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3b1d28792d84649a204940936a7bef8a4d7b9ddc Author: Sami Kerola Date: Sat Jul 14 23:16:28 2012 +0200 lib/pager: minor compiler warning fixes Add missing function prototype, and declare structure before use of it. lib/pager.c:162:6: warning: no previous prototype for function 'setup_pager' [-Wmissing-prototypes] lib/pager.c:20:29: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct child_process' [-Wtentative-definition-incomplete-type] Signed-off-by: Sami Kerola lib/pager.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 18377246af628a3b7cfcd50cabcbfbe515cd3e1b Author: Sami Kerola Date: Sat Jul 14 22:25:25 2012 +0200 libblkid: remove duplicate entries in symbols The commit a0487b1cb5beffb8f6783476664b01e8833e0ea8 added symbol dublicates. The symbols should only be listed in BLKID_1.0 segment. /usr/bin/ld.gold: warning: using 'BLKID_1.0' as version for 'blkid_probe_all' which is also named in version 'BLKID_2.15' in script /usr/bin/ld.gold: warning: using 'BLKID_1.0' as version for 'blkid_probe_all_new' which is also named in version 'BLKID_2.15' in script copying selected object files to avoid basename conflicts... Signed-off-by: Sami Kerola libblkid/src/blkid.sym | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit da4ea9f54bc10507475db6ea1d3486de4bef4f7f Author: Petr Uzel Date: Thu Jul 12 11:47:19 2012 +0200 fdisk: rename label probing functions Rename check_$foo_label() to $foo_probe_label(): 1/ 'probe' is more appropriate verb than 'check' for these functions 2/ making label name first part of the funciton name is IMO more friendly for tags completion (e.g. vim + cscope/ctags). Signed-off-by: Petr Uzel fdisks/fdiskaixlabel.c | 4 ++-- fdisks/fdiskbsdlabel.c | 4 ++-- fdisks/fdiskdoslabel.c | 4 ++-- fdisks/fdiskmaclabel.c | 4 ++-- fdisks/fdisksgilabel.c | 4 ++-- fdisks/fdisksunlabel.c | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) commit 6aaeca3fe0c46e79f9949d443061c7103ccf1652 Author: Petr Uzel Date: Thu Jul 12 11:47:18 2012 +0200 fdisk: don't call update_units() in label probes if not necessary update_units() is called in _probe_labels before the label probes are started, so we don't need to call it again in probers, unless it messes around with geometry, which currently only check_sun_label() does (so keep the call to update_units() in this one). Signed-off-by: Petr Uzel fdisks/fdiskaixlabel.c | 1 - fdisks/fdiskmaclabel.c | 1 - fdisks/fdisksgilabel.c | 1 - 3 files changed, 0 insertions(+), 3 deletions(-) commit b6ab57b1abe585abe66e7de474a17c8afc503944 Author: Petr Uzel Date: Thu Jul 12 11:18:46 2012 +0200 utmpdump: kill unused variable in follow_by_inotify() Signed-off-by: Petr Uzel login-utils/utmpdump.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 44064b3c1f080886a79f4fcde52246e0e7b7dfd6 Author: Petr Uzel Date: Thu Jul 12 10:09:59 2012 +0200 libblkid: cast blkid_loff_t to unsigned long long Get rid of gcc warning and fix build with -Werror Signed-off-by: Petr Uzel libblkid/src/probe.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 4c46af85e7320ddd0cefc95e9ee6a787552cfdb0 Author: Petr Uzel Date: Thu Jul 12 10:09:58 2012 +0200 swapon: kill unused variables in show_table() Signed-off-by: Petr Uzel sys-utils/swapon.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit ddfc5ed6f2eecab98d0d7522e31940ee5567701e Author: Ville Skyttä Date: Wed Jul 11 23:16:15 2012 +0300 docs: man page syntax fixes Signed-off-by: Ville Skyttä login-utils/login.1 | 2 +- misc-utils/whereis.1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6934547d7644c6637e18634d282a31ba78dd505e Author: Eryu Guan Date: Wed Jul 11 20:49:54 2012 +0800 mount: ext4 option inode_readahead should be inode_readahead_blks in mount.8 Mount option inode_readahead should be inode_readahead_blks. Also the value should be a power of 2. Signed-off-by: Eryu Guan sys-utils/mount.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b8855c868fce518d5f7c0aafb63accf99506643c Author: Davidlohr Bueso Date: Sun Jul 8 23:40:27 2012 +0200 fdisk: API: add label probing functionality This patch sets the initial layout for label specific operations. A new fdisk_label structure is created that will hold all these ops, like new, delete, write and probe, among others. For now only probing is implemented. Once this design is established, a copy of the probed label will be copied to the main context structure, where calling the specific functions will save 'disklabel' checks. Debugging support is added as well. This patch passes regression tests and manually passes bsd, sun, dos and sgi labels probes. Reviewed-by: Petr Uzel Signed-off-by: Davidlohr Bueso fdisks/fdisk.c | 21 --------------------- fdisks/fdisk.h | 19 +++++++++++++++++++ fdisks/fdiskaixlabel.c | 8 +++++++- fdisks/fdiskaixlabel.h | 2 -- fdisks/fdiskbsdlabel.c | 8 +++++++- fdisks/fdiskbsdlabel.h | 1 - fdisks/fdiskdoslabel.c | 8 +++++++- fdisks/fdiskdoslabel.h | 1 - fdisks/fdiskmaclabel.c | 8 +++++++- fdisks/fdiskmaclabel.h | 1 - fdisks/fdisksgilabel.c | 8 +++++++- fdisks/fdisksgilabel.h | 1 - fdisks/fdisksunlabel.c | 8 +++++++- fdisks/fdisksunlabel.h | 1 - fdisks/utils.c | 35 +++++++++++++++++++++++++++++++++++ 15 files changed, 96 insertions(+), 34 deletions(-) commit 4e806975527240e159f727624de73d3e56778647 Author: Karel Zak Date: Mon Jul 16 17:42:09 2012 +0200 build-sys: add -Werror to UL_WARN_ADD test ... so revert previous patches with extra options for clang. Sometimes is simple solution so obvious that it's invisible :-) Signed-off-by: Karel Zak configure.ac | 8 ++---- m4/compiler.m4 | 59 +++---------------------------------------------------- 2 files changed, 7 insertions(+), 60 deletions(-) commit bec5c9db87340ade74df4bd2b0b837de860bf3ca Author: Karel Zak Date: Mon Jul 16 17:16:15 2012 +0200 build-sys: exclude some CC warnings for clang Reported-by: Sami Kerola Signed-off-by: Karel Zak configure.ac | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit 55eec264cc21771b85159a24cfd0c85c2e15ccc0 Author: Karel Zak Date: Mon Jul 16 17:14:04 2012 +0200 build-sys: add exclude list to UL_ADD_WARN Signed-off-by: Karel Zak m4/compiler.m4 | 61 +++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 41 insertions(+), 20 deletions(-) commit bdf5f542e2af3d42973170fd18b917c69a9eccc1 Author: Karel Zak Date: Mon Jul 16 15:48:43 2012 +0200 build-sys: add UL_PROG_CLANG function, rename warnings.m4 -> compiler.m4 Signed-off-by: Karel Zak .gitignore | 2 +- configure.ac | 3 ++ m4/compiler.m4 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ m4/warnings.m4 | 38 ---------------------------------- 4 files changed, 66 insertions(+), 39 deletions(-) commit b11c9b7ee3a2f2b1dbe2f1ab0d0f5dde00ac2d40 Author: Karel Zak Date: Thu Jul 12 17:43:34 2012 +0200 libmount: rename mnt_context_fstab_applied to mnt_context_tab_applied The function is also usable in umount to detect is mtab has been applied. Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 2 +- libmount/src/context.c | 6 +++--- libmount/src/libmount.h.in | 2 +- libmount/src/libmount.sym | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) commit 2e7035646eb85851171cc2e989bfa858a4f00cd4 Author: Karel Zak Date: Thu Jul 12 16:33:52 2012 +0200 login: close tty before vhangup() Let's close all tty file descriptors before vhangup() call. References: https://lkml.org/lkml/2012/6/5/145 Signed-off-by: Karel Zak login-utils/login.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 783b08fc1c6e5c906e26b1b4856d5df3a7b5a554 Author: Karel Zak Date: Thu Jul 12 16:31:22 2012 +0200 agetty: close tty before vhangup() Let's close all tty file descriptors if called with --hangup option. References: https://lkml.org/lkml/2012/6/5/145 Signed-off-by: Karel Zak term-utils/agetty.c | 44 +++++++++++++++++++++++++++----------------- 1 files changed, 27 insertions(+), 17 deletions(-) commit 4459448fbd9d3e457bb2c0a104b1b963067e1de9 Author: Karel Zak Date: Wed Jul 11 18:15:21 2012 +0200 agetty: make tcsetpgrp() optional The session setup TIOCSCTTY is optional, so tcsetpgrp() that depends on controlling terminal should be optional too. Reported-by: Hilko Bengen Signed-off-by: Karel Zak term-utils/agetty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 815427c72e5c4a18097e31d056459cc77e512e27 Author: Karel Zak Date: Wed Jul 11 18:00:09 2012 +0200 build-sys: add missing files Reported-by: Bernhard Voelker Signed-off-by: Karel Zak misc-utils/uuidd.8.in | 94 ++++++++++++++++++++++++++++++++++++++++++++ misc-utils/uuidd.rc.in | 71 +++++++++++++++++++++++++++++++++ misc-utils/uuidd.socket.in | 8 ++++ 3 files changed, 173 insertions(+), 0 deletions(-) commit 0aec470c2f802651cddb7952a174f2d389acc129 Author: Sami Kerola Date: Wed Jun 27 23:24:56 2012 +0200 swapon: fix --summary output regression Commit 64b588814e5f081a7ab37f820984aa7a2de9eee9 changed --summary header alignment, and usage of spaces vs tabs in output. Signed-off-by: Sami Kerola sys-utils/swapon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7ae8b469adda598fda28e4ea647d47905b43e172 Author: Sami Kerola Date: Wed Jun 27 22:51:34 2012 +0200 swapon: make --show size to be human readable by default Cc: Bernhard Voelker Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/swapon.8 | 4 ++++ sys-utils/swapon.c | 32 +++++++++++++++++++++++++------- 2 files changed, 29 insertions(+), 7 deletions(-) commit e076b5526f52e59a8b9f35186e3753a206899694 Author: Sami Kerola Date: Sun Jun 24 22:43:48 2012 +0200 swapon: add --show option The --show uses lib/tt.c, which allows user to specify columns he is interested of, and avoids using hard coded field sizes which may be problematic when system has large enough swap. [kzak@redhat.com: - improve usage(), remove unused code] Cc: Bernhard Voelker Signed-off-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/swapon.8 | 17 +++++ sys-utils/swapon.c | 187 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 203 insertions(+), 1 deletions(-) commit 11935cd3fc6c729d82bff5a8174566ce3730e1c4 Author: Sami Kerola Date: Sat Jun 23 09:17:00 2012 +0200 uuidd: use configured run state directory in manual etc [kzak@redhat.com: - minor clean up in configure.in] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak configure.ac | 5 ++ misc-utils/.gitignore | 3 + misc-utils/Makemodule.am | 10 +++- misc-utils/uuidd.8 | 94 ---------------------------------------------- misc-utils/uuidd.rc | 71 ---------------------------------- misc-utils/uuidd.socket | 8 ---- 6 files changed, 15 insertions(+), 176 deletions(-) commit 01c5b787947aeaffc7e56000827e3edefa357c59 Author: Sami Kerola Date: Sat Jun 23 09:02:36 2012 +0200 agetty: use configured run state directory Signed-off-by: Sami Kerola include/pathnames.h | 1 + term-utils/agetty.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) commit 80c51185d50f00a2701f9379f10fc48a0f885dfc Author: Sami Kerola Date: Sat Jun 23 08:56:13 2012 +0200 uuidd: use run configured state directory Signed-off-by: Sami Kerola Signed-off-by: Karel Zak libuuid/src/uuidd.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 07a16b9d1e5a48550a0d19abb9a900853433ffa2 Author: Sami Kerola Date: Sat Jun 23 07:05:14 2012 +0200 build-sys: change --localstatedir to /run Enable user to define where run state files are wrote. Default for these files is /run. See reference for rationale why /var/run is no longer the default. Reference: http://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html CC: Mike Frysinger Signed-off-by: Sami Kerola Makefile.am | 4 ++-- configure.ac | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) commit faebdd91ba607a18ba303de366ba6fd0b5ac4cf9 Author: Karel Zak Date: Tue Jul 10 11:23:35 2012 +0200 utmpdump: cleanup file descriptor usage - don't support --follow for stdin at all - inotify based implementation closes the file, so don't close it in main() again Signed-off-by: Karel Zak login-utils/utmpdump.c | 32 ++++++++++++++++++-------------- 1 files changed, 18 insertions(+), 14 deletions(-) commit 5ec1ad13481bb0cd60ba1985a49936646730ae07 Author: Sami Kerola Date: Sun Jul 8 23:20:04 2012 +0200 utmpdump: encourage users not to follow stdin Signed-off-by: Sami Kerola login-utils/utmpdump.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 7346f2b61cacb00588e7c828656744193a91716c Author: Sami Kerola Date: Tue Jul 10 10:59:58 2012 +0200 utmpdump: use inotify to when following file Co-Author: Karel Zak Signed-off-by: Karel Zak Signed-off-by: Sami Kerola login-utils/utmpdump.c | 114 +++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 107 insertions(+), 7 deletions(-) commit e31926b4434a4df877745039809705361d1c79e8 Author: Sami Kerola Date: Sun Jul 8 21:03:14 2012 +0200 utmpdump: fixes based on static analysis [cppcheck] [utmpdump.c:82]: (style) The function 'unspace' is never used [utmpdump.c:131]: (style) The scope of the variable 't' can be reduced [utmpdump.c:167]: (warning) scanf without field width limits can crash with huge input data [kzak@redhat.com: - don't use scanf field width limits for integers] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak login-utils/utmpdump.c | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) commit 657d9adb71ed50275b1ed2a0d4e966032db5ba97 Author: Karel Zak Date: Mon Jul 9 22:26:27 2012 +0200 fix buffer overrun in some calls to sscanf Reported-by: Sergei Antonov Signed-off-by: Karel Zak disk-utils/blockdev.c | 2 +- fdisks/fdisk.c | 2 +- fdisks/sfdisk.c | 2 +- lib/loopdev.c | 2 +- lib/sysfs.c | 2 +- libblkid/src/devname.c | 2 +- libblkid/src/devno.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) commit cd903a0eba193e5a529ccafdccf5a9b3cb1cf504 Author: Sami Kerola Date: Wed Jul 4 22:33:15 2012 +0200 utmpdump: white space fix Signed-off-by: Sami Kerola login-utils/utmpdump.c | 39 +++++++++++++++++++-------------------- 1 files changed, 19 insertions(+), 20 deletions(-) commit ea4ca239a5fb2a47a422d7fd5072814132ff7bd4 Author: Sami Kerola Date: Tue Jul 3 21:35:09 2012 +0200 docs: clean up utmpdump.1 manual Align with Documentation/howto-man-page.txt Signed-off-by: Sami Kerola Conflicts: login-utils/utmpdump.1 login-utils/utmpdump.1 | 57 ++++++++++++++++++++++++++--------------------- 1 files changed, 31 insertions(+), 26 deletions(-) commit 641e3e2061b7dcfe6fb556cddbb5ab13ad9b766e Author: Karel Zak Date: Mon Jul 9 17:26:15 2012 +0200 libblkid: cleanup _attribute__ usage libblkid/src/blkidP.h | 4 ++-- libblkid/src/superblocks/superblocks.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 0b781a1aa4643299d43cc9a339ab0a022afb94ed Merge: ea39af9 ffab21e Author: Karel Zak Date: Mon Jul 9 17:17:59 2012 +0200 Merge branch 'master' of https://github.com/dankamongmen/util-linux commit ea39af9a542a536050767187c6048657946755cd Author: Björn Jacke Date: Wed Jul 4 22:00:08 2012 +0200 docs: mention the required mount options for journaled version 2 quota sys-utils/mount.8 | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit 7860d8f5da7b25a05604361311fdd4f16a048adb Author: Björn Jacke Date: Wed Jul 4 14:49:43 2012 +0200 docs: add quota mount option support description for ext2 sys-utils/mount.8 | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 4810de912a9d4fa76dba3c7be16a8da86225aa9f Author: Bernhard Voelker Date: Tue Jul 3 09:42:55 2012 +0200 utmpdump: document optional filename argument Signed-off-by: Bernhard Voelker login-utils/utmpdump.1 | 5 ++++- login-utils/utmpdump.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) commit c370688f6253c842ca0509d59133ae0272124ebc Author: Bernhard Voelker Date: Thu Jun 28 16:24:56 2012 +0200 findmnt: fix typo in manpage Signed-off-by: Bernhard Voelker misc-utils/findmnt.8 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit fbd2620d4ed04884116603d250d000c33fc9ea39 Author: Dave Reisner Date: Sat Jun 30 12:01:18 2012 -0400 build-sys: ensure BUILD_CFDISK is always defined This avoids an error when configuring without ncurses: configure: error: conditional "BUILD_CFDISK" was never defined. Usually this means the macro was only invoked conditionally. Signed-off-by: Dave Reisner configure.ac | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 109c362f233435628eb023294c9abf4f067e2c28 Author: Karel Zak Date: Mon Jul 9 17:03:19 2012 +0200 docs: remove unused config/texinfo.tex Signed-off-by: Karel Zak config/texinfo.tex | 7210 ---------------------------------------------------- 1 files changed, 0 insertions(+), 7210 deletions(-) commit 7007991f6f49ede6a2b622e0c6cbad0579df5ea2 Author: Bernhard Voelker Date: Wed Jun 27 15:23:05 2012 +0200 docs: fix typos found by misspellings The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * Documentation/releases/v2.18-ReleaseNotes: Fix typo in news entry. * NEWS: Likewise. * config/texinfo.tex: Fix typo in comments. * libmount/src/context.c: Fix typo in comment. * libmount/src/fs.c: Likewise. * login-utils/login.c: Likewise. * login-utils.su.1: Fix typo in man page. * sys-utils/chcpu.c: Fix typo in error message. Signed-off-by: Bernhard Voelker Documentation/releases/v2.18-ReleaseNotes | 2 +- NEWS | 2 +- config/texinfo.tex | 6 +++--- libmount/src/context.c | 2 +- libmount/src/fs.c | 2 +- login-utils/login.c | 4 ++-- login-utils/su.1 | 2 +- sys-utils/chcpu.c | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) commit ac11086af277f11d502b94131f2e7ac6c843659e Author: Karel Zak Date: Mon Jul 9 16:53:13 2012 +0200 build-sys: add -Wredundant-decls Signed-off-by: Karel Zak configure.ac | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 7bce71a3f9e4dc0a2cae527f383f23367eca5c1a Author: Karel Zak Date: Mon Jul 9 16:44:25 2012 +0200 build-sys: support separate libintl Addresses: https://github.com/karelzak/util-linux/pull/13 Reported-by: Ben Walton Signed-off-by: Karel Zak Makefile.am | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit dcdb349be73f7223962f55e4f2e74583f5b78687 Author: Karel Zak Date: Mon Jul 9 16:23:51 2012 +0200 build-sys: always use default $(LDADD) The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak disk-utils/Makemodule.am | 28 +++++++++++++------------- fdisks/Makemodule.am | 6 ++-- login-utils/Makemodule.am | 14 ++++++------ misc-utils/Makemodule.am | 20 +++++++++--------- mount-deprecated/Makemodule.am | 8 +++--- schedutils/Makemodule.am | 6 ++-- sys-utils/Makemodule.am | 42 ++++++++++++++++++++-------------------- term-utils/Makemodule.am | 10 ++++---- text-utils/Makemodule.am | 24 +++++++++++----------- 9 files changed, 79 insertions(+), 79 deletions(-) commit ffab21e12846dd9b9403c881721e415493805bd1 Author: nick black Date: Sat Jul 7 11:42:35 2012 -0400 use proper printf format spec %lu libblkid/src/topology/topology.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 330ff7edc480b4e897f946c30a2afa38c916b9d0 Author: nick black Date: Sat Jul 7 11:42:17 2012 -0400 use memcpy() to cope with possible misalignment libblkid/src/topology/topology.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit d8a5b55012c2e01bff78a9c1237f4f2a93bd9c3a Author: nick black Date: Sat Jul 7 11:41:15 2012 -0400 properly check for ansi c99 vsnprint truncation libblkid/src/probe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 28a47f13d9c33c97279742d83687bff4d79922f4 Author: nick black Date: Sat Jul 7 11:40:45 2012 -0400 use GCC format __attribute__ on sprinf libblkid/src/blkidP.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 839be2ba6b44fa9dc927f081d547ebadec9de19c Author: Karel Zak Date: Wed Jul 4 13:40:01 2012 +0200 hwclock: don't set time for --systz Not sure why, but the current --systz uses non-NULL timeval for settimeofday(). It means that build-in kernel warp clock mechanism is not used and the system time is always modified. The built-in kernel implementation allows to move the clock by timezone only for very first settimeofday() call. Signed-off-by: Karel Zak sys-utils/hwclock.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit 34f4d961633082f62f64ce172e4389715cd75989 Author: Karel Zak Date: Fri Jun 29 17:34:12 2012 +0200 utmpdump: use xalloc.h, minor coding style changes Signed-off-by: Karel Zak login-utils/utmpdump.c | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) commit c8a6af07e79729175be1aec65d71dfd369c369a0 Author: Karel Zak Date: Fri Jun 29 17:27:40 2012 +0200 utmpdump: cleanup usage() Signed-off-by: Karel Zak login-utils/utmpdump.c | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) commit 9e15c93d76868b0929dd965a66c3c5ba5fa181ad Author: Karel Zak Date: Fri Jun 29 17:22:42 2012 +0200 utmpdump: add long options Signed-off-by: Karel Zak login-utils/utmpdump.1 | 20 +++++++++++--------- login-utils/utmpdump.c | 17 ++++++++++++++--- 2 files changed, 25 insertions(+), 12 deletions(-) commit 704bd903ecc650751258f9e1b3aa0e52697d235e Author: Karel Zak Date: Fri Jun 29 17:09:51 2012 +0200 utmpdump: use err.h stuff Signed-off-by: Karel Zak login-utils/utmpdump.c | 51 ++++++++++++++++++++++++----------------------- 1 files changed, 26 insertions(+), 25 deletions(-) commit 23031b9904cd9c4056c9a7580a1bbf72ab95aa4e Author: Karel Zak Date: Fri Jun 29 16:59:32 2012 +0200 utmpdump: add NLS and closestream support Signed-off-by: Karel Zak login-utils/utmpdump.c | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) commit a9eee8709056f29cd2a0979a688f83a590bce0b1 Author: Karel Zak Date: Fri Jun 29 16:56:04 2012 +0200 utmpdump: remove dead code Signed-off-by: Karel Zak login-utils/utmpdump.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b89fc9151f8254cf9665325317099c87ef304d73 Author: Karel Zak Date: Fri Jun 29 16:52:30 2012 +0200 utmpdump: remove libc5 support Signed-off-by: Karel Zak login-utils/utmpdump.1 | 4 +-- login-utils/utmpdump.c | 83 ++++++------------------------------------------ 2 files changed, 11 insertions(+), 76 deletions(-) commit fa9baa80e8c6f5826bb7ae40c3d4cfa5012d16a4 Author: Karel Zak Date: Fri Jun 29 16:43:37 2012 +0200 utmpdump: cleanup comments, funcs definition lines Signed-off-by: Karel Zak login-utils/utmpdump.c | 74 +++++++++++++++++++----------------------------- 1 files changed, 29 insertions(+), 45 deletions(-) commit 78d5ceacb1f5a093c90399159314b7652922fcdc Author: Karel Zak Date: Fri Jun 29 16:34:46 2012 +0200 utmpdump: new command, merge from sysvinit Signed-off-by: Karel Zak .gitignore | 1 + configure.ac | 8 + login-utils/Makemodule.am | 7 + login-utils/utmpdump.1 | 66 ++++++++++ login-utils/utmpdump.c | 316 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 398 insertions(+), 0 deletions(-) commit 7d8f4e0c4ba9b1feed4e0eadd17dd709ad45c838 Author: Karel Zak Date: Thu Jun 28 15:42:06 2012 +0200 findmnt: add TID column just in case we read from more mountinfo files. For example get mountpoint from the current namespace which is invisible for initd (PID=1): # unsahre -m bash # mount /dev/sdb /mnt/test # echo $$ 30070 # findmnt -n -o TARGET,TID,SOURCE --task 1 --task $$ | \ sort -u --key=1,1 | awk ' ($2 != 1) { print $0 }' /mnt/test 30070 /dev/sdb Signed-off-by: Karel Zak misc-utils/findmnt.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit f7f29b564073831c9d1a8cdf9deaf039c0bcb1b6 Author: Karel Zak Date: Thu Jun 28 15:40:16 2012 +0200 libmount: save task ID for mountinfo tiles Add new function mnt_fs_get_tid() to get task ID for the given filesystem. Signed-off-by: Karel Zak libmount/src/fs.c | 18 +++++++++++++++++- libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 5 +++-- libmount/src/mountP.h | 1 + libmount/src/tab_parse.c | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 57 insertions(+), 3 deletions(-) commit c7fcc8307d46c37f8cd67b2ef903d305e8b257c0 Author: Karel Zak Date: Thu Jun 28 13:51:34 2012 +0200 findmnt: add --task option Signed-off-by: Karel Zak misc-utils/findmnt.8 | 6 ++++++ misc-utils/findmnt.c | 23 ++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletions(-) commit aca72ac2f926174d4a690b4ddea5d54a05bbc720 Author: Karel Zak Date: Thu Jun 28 13:20:31 2012 +0200 findmnt: don't use tree-like output if more -F options specified Signed-off-by: Karel Zak misc-utils/findmnt.8 | 8 +++++--- misc-utils/findmnt.c | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) commit 8b8cd87b2175b0744936a3f48835d0de98844c58 Author: Dave Reisner Date: Wed Jun 27 09:47:20 2012 -0400 findmnt: add FSROOT column Provide this separately in an unambiguous format, mainly to avoid the need for scripts to parse the source of a btrfs subvol or bind mount. Signed-off-by: Dave Reisner misc-utils/findmnt.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 59114ba325e02995414e8ec6f38e45a3634af953 Author: Karel Zak Date: Wed Jun 27 14:04:03 2012 +0200 swapon: fix typo Reported-by: Manan Tuli Signed-off-by: Karel Zak sys-utils/swapon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cdecbd2e730f5467aaaad5e11eba49a19f1d182c Author: Karel Zak Date: Wed Jun 27 11:27:36 2012 +0200 docs: add note about non-recursive build-sys Signed-off-by: Karel Zak Documentation/howto-build-sys.txt | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) commit 44e0b7d9ee0bddf82581c2eac8dcd3f15db5b464 Author: Karel Zak Date: Tue Jun 26 23:03:22 2012 +0200 build-sys: add sd-daemon.h to Makemodule.am Signed-off-by: Karel Zak misc-utils/Makemodule.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8d398470c09928c46467abf8515f8147d7df8285 Author: Karel Zak Date: Tue Jun 26 20:57:45 2012 +0200 build-sys: add pager.h to Makemodule.am Signed-off-by: Karel Zak include/Makemodule.am | 1 + po/ca.po |12834 ++++++++++++++++++++++++--------------------- po/cs.po |13664 ++++++++++++++++++++++++++---------------------- po/da.po |13283 +++++++++++++++++++++++++--------------------- po/de.po |13128 +++++++++++++++++++++++++--------------------- po/es.po |12895 +++++++++++++++++++++++++--------------------- po/et.po |12217 +++++++++++++++++++++++-------------------- po/eu.po |12232 +++++++++++++++++++++++-------------------- po/fi.po |12835 +++++++++++++++++++++++++--------------------- po/fr.po |13946 +++++++++++++++++++++++++++---------------------- po/gl.po |11123 +++++++++++++++++++++------------------ po/hu.po |12937 +++++++++++++++++++++++++--------------------- po/id.po |13080 +++++++++++++++++++++++++--------------------- po/it.po |12799 ++++++++++++++++++++++++--------------------- po/ja.po |13018 +++++++++++++++++++++++++--------------------- po/nl.po |13436 ++++++++++++++++++++++++++---------------------- po/pl.po |13473 ++++++++++++++++++++++++++---------------------- po/pt_BR.po |12782 ++++++++++++++++++++++++--------------------- po/ru.po |12812 ++++++++++++++++++++++++--------------------- po/sl.po |12768 ++++++++++++++++++++++++--------------------- po/sv.po |12907 +++++++++++++++++++++++++--------------------- po/tr.po |12805 ++++++++++++++++++++++++--------------------- po/uk.po |12806 ++++++++++++++++++++++++--------------------- po/util-linux.pot |10227 ++++++++++++++++++++----------------- po/vi.po |13259 +++++++++++++++++++++++++--------------------- po/zh_CN.po |11046 +++++++++++++++++++++------------------ po/zh_TW.po |13178 +++++++++++++++++++++++++--------------------- 27 files changed, 180292 insertions(+), 151199 deletions(-) commit 3274ee60ce3e9d40cb096b1add6cfd42ca04a4f5 Author: Karel Zak Date: Tue Jun 12 13:14:06 2012 +0200 build-sys: fix swaplabel Reported-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/Makemodule.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b36a2f2d4738fc271d8cf328a48bcd2d3b0b2b07 Author: Karel Zak Date: Wed Jun 6 21:31:59 2012 +0200 build-sys: create static uuid_generate_*.3 files It seems more simple to create small three files with man page links than generate the files on the fly. Note that the libuuid/man directory is not in builddir by default so you have to create proper directory and then create the man pages... too complex task for this three tiny files. Signed-off-by: Karel Zak libuuid/man/Makemodule.am | 10 +--------- libuuid/man/uuid_generate_random.3 | 1 + libuuid/man/uuid_generate_time.3 | 1 + libuuid/man/uuid_generate_time_safe.3 | 1 + 4 files changed, 4 insertions(+), 9 deletions(-) commit 31a938ac38d9a6f39c64474ee73f209905b34953 Author: Karel Zak Date: Tue Jun 26 18:42:49 2012 +0200 build-sys: enable libmount and libblkid docs Signed-off-by: Karel Zak config/gtk-doc.make | 1 - configure.ac | 2 ++ libblkid/Makemodule.am | 5 ++++- libblkid/docs/Makefile.am | 11 ++--------- libmount/Makemodule.am | 5 ++++- libmount/docs/Makefile.am | 12 ++---------- 6 files changed, 14 insertions(+), 22 deletions(-) commit f38e5ff355242208fa7e1725879a3e430ffedf0c Author: Karel Zak Date: Wed Jun 6 13:28:06 2012 +0200 build-sys: cleanup .gitignore files - move all binaries to top-level .gitignore - remove unnecessary */.gitignore files Signed-off-by: Karel Zak .gitignore | 115 +++++++++++++++++++++++++++++++++++++++++++ disk-utils/.gitignore | 14 ----- fdisks/.gitignore | 3 - lib/.gitignore | 1 - libblkid/.gitignore | 5 -- libblkid/src/.gitignore | 1 + libmount/.gitignore | 2 - libmount/src/.gitignore | 1 + libuuid/.gitignore | 1 - login-utils/.gitignore | 10 ---- misc-utils/.gitignore | 20 -------- mount-deprecated/.gitignore | 3 - schedutils/.gitignore | 3 - sys-utils/.gitignore | 32 ------------ term-utils/.gitignore | 7 --- tests/helpers/.gitignore | 4 -- text-utils/.gitignore | 11 ---- 17 files changed, 117 insertions(+), 116 deletions(-) commit d77ab74af75cbb5d10875ee156af3078c5d40700 Author: Karel Zak Date: Mon Jun 4 10:36:37 2012 +0200 build-sys: convert lib/ to libcommon.la Signed-off-by: Karel Zak disk-utils/Makemodule.am | 78 +++++++++------------------ fdisks/Makemodule.am | 25 +++------ lib/Makemodule.am | 55 +++++++++++++++----- libblkid/src/Makemodule.am | 12 +---- libmount/src/Makemodule.am | 11 +---- login-utils/Makemodule.am | 23 +++----- misc-utils/Makemodule.am | 42 ++++----------- mount-deprecated/Makemodule.am | 64 +++++++++------------- schedutils/Makemodule.am | 23 ++------ sys-utils/Makemodule.am | 114 ++++++++++++++-------------------------- term-utils/Makemodule.am | 11 +--- text-utils/Makemodule.am | 25 ++++----- 12 files changed, 183 insertions(+), 300 deletions(-) commit fb55280aa6fde7649e5f28babec926d617b210fc Author: Karel Zak Date: Tue Jun 26 18:31:53 2012 +0200 build-sys: remove include-Makefile.am Signed-off-by: Karel Zak Makefile.am | 35 ++++++++++++++++++++++++++++------- config/include-Makefile.am | 38 -------------------------------------- configure.ac | 3 --- man/ru/Makefile.am | 6 ------ 4 files changed, 28 insertions(+), 54 deletions(-) commit 50ea67950994d05151fb1c3da57aeebc1554f289 Author: Karel Zak Date: Fri Jun 1 16:15:29 2012 +0200 build-sys: rename fdisk -> fdisks/, convert to module Signed-off-by: Karel Zak Makefile.am | 2 +- configure.ac | 24 +- fdisk/.gitignore | 3 - fdisk/Makefile.am | 94 -- fdisk/cfdisk.8 | 452 ------- fdisk/cfdisk.c | 2854 ----------------------------------------- fdisk/common.h | 15 - fdisk/fdisk.8 | 283 ----- fdisk/fdisk.c | 2116 ------------------------------- fdisk/fdisk.h | 253 ---- fdisk/fdiskaixlabel.c | 67 - fdisk/fdiskaixlabel.h | 27 - fdisk/fdiskbsdlabel.c | 847 ------------- fdisk/fdiskbsdlabel.h | 246 ---- fdisk/fdiskdoslabel.c | 682 ---------- fdisk/fdiskdoslabel.h | 57 - fdisk/fdiskmaclabel.c | 83 -- fdisk/fdiskmaclabel.h | 39 - fdisk/fdisksgilabel.c | 879 ------------- fdisk/fdisksgilabel.h | 137 -- fdisk/fdisksunlabel.c | 643 ---------- fdisk/fdisksunlabel.h | 97 -- fdisk/gpt.c | 216 ---- fdisk/gpt.h | 8 - fdisk/i386_sys_types.c | 110 -- fdisk/partname.c | 49 - fdisk/sfdisk.8 | 603 --------- fdisk/sfdisk.c | 3242 ----------------------------------------------- fdisk/utils.c | 290 ----- fdisks/.gitignore | 3 + fdisks/Makemodule.am | 94 ++ fdisks/cfdisk.8 | 452 +++++++ fdisks/cfdisk.c | 2854 +++++++++++++++++++++++++++++++++++++++++ fdisks/common.h | 15 + fdisks/fdisk.8 | 283 +++++ fdisks/fdisk.c | 2116 +++++++++++++++++++++++++++++++ fdisks/fdisk.h | 253 ++++ fdisks/fdiskaixlabel.c | 67 + fdisks/fdiskaixlabel.h | 27 + fdisks/fdiskbsdlabel.c | 847 +++++++++++++ fdisks/fdiskbsdlabel.h | 246 ++++ fdisks/fdiskdoslabel.c | 682 ++++++++++ fdisks/fdiskdoslabel.h | 57 + fdisks/fdiskmaclabel.c | 82 ++ fdisks/fdiskmaclabel.h | 38 + fdisks/fdisksgilabel.c | 879 +++++++++++++ fdisks/fdisksgilabel.h | 137 ++ fdisks/fdisksunlabel.c | 644 ++++++++++ fdisks/fdisksunlabel.h | 97 ++ fdisks/gpt.c | 216 ++++ fdisks/gpt.h | 7 + fdisks/i386_sys_types.c | 110 ++ fdisks/partname.c | 48 + fdisks/sfdisk.8 | 603 +++++++++ fdisks/sfdisk.c | 3242 +++++++++++++++++++++++++++++++++++++++++++++++ fdisks/utils.c | 290 +++++ 56 files changed, 14404 insertions(+), 14403 deletions(-) commit ac73480a348b659e011054248de00a637dad3421 Author: Karel Zak Date: Fri Jun 1 15:30:56 2012 +0200 build-sys: convert tests/ to module Signed-off-by: Karel Zak Makefile.am | 8 ++- configure.ac | 2 - tests/Makefile.am | 12 ----- tests/Makemodule.am | 13 +++++ tests/commands.sh.in | 108 +++++++++++++++++++--------------------- tests/expected/mount/mtablock | 1 - tests/helpers/Makefile.am | 9 --- tests/helpers/Makemodule.am | 12 +++++ tests/ts/mount/mtablock | 54 -------------------- 9 files changed, 82 insertions(+), 137 deletions(-) commit 957bab4e914ee56721069ee38a38517b658b1ab3 Author: Karel Zak Date: Tue Jun 26 18:24:16 2012 +0200 build-sys: move partx to disk-utils/ Signed-off-by: Karel Zak Makefile.am | 4 - configure.ac | 1 - disk-utils/Makemodule.am | 37 ++ disk-utils/addpart.8 | 40 ++ disk-utils/addpart.c | 61 ++++ disk-utils/delpart.8 | 34 ++ disk-utils/delpart.c | 60 ++++ disk-utils/partx.8 | 173 +++++++++ disk-utils/partx.c | 881 +++++++++++++++++++++++++++++++++++++++++++++ disk-utils/partx.h | 44 +++ partx/.gitignore | 3 - partx/Makefile.am | 24 -- partx/addpart.8 | 40 -- partx/addpart.c | 61 ---- partx/delpart.8 | 34 -- partx/delpart.c | 60 ---- partx/partx.8 | 173 --------- partx/partx.c | 882 ---------------------------------------------- partx/partx.h | 44 --- 19 files changed, 1330 insertions(+), 1326 deletions(-) commit 54dbc8cf69dff20e641f6c81e4471c7fc9e31aff Author: Karel Zak Date: Tue Jun 26 18:20:00 2012 +0200 build-sys: convert disk-utils/ to module Signed-off-by: Karel Zak Makefile.am | 2 +- configure.ac | 6 ++- disk-utils/Makefile.am | 114 ----------------------------------------- disk-utils/Makemodule.am | 128 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 134 insertions(+), 116 deletions(-) commit f9a20f0b58a1dfb3571b53ad9fee3115d788460f Author: Karel Zak Date: Tue Jun 26 18:17:22 2012 +0200 build-sys: move getopt to misc-utils/ Signed-off-by: Karel Zak Makefile.am | 1 - configure.ac | 1 - getopt/.gitignore | 1 - getopt/COPYING | 5 - getopt/Makefile.am | 7 - getopt/getopt-parse.bash | 47 ----- getopt/getopt-parse.tcsh | 77 ------- getopt/getopt.1 | 448 ----------------------------------------- getopt/getopt.c | 458 ------------------------------------------ misc-utils/Makemodule.am | 8 + misc-utils/getopt-parse.bash | 47 +++++ misc-utils/getopt-parse.tcsh | 77 +++++++ misc-utils/getopt.1 | 448 +++++++++++++++++++++++++++++++++++++++++ misc-utils/getopt.c | 458 ++++++++++++++++++++++++++++++++++++++++++ 14 files changed, 1038 insertions(+), 1045 deletions(-) commit 37b88bfcd797977bc5f62ac1a2b07b1361c70d90 Author: Karel Zak Date: Tue Jun 26 18:14:36 2012 +0200 build-sys: convert misc-utils/ to module Signed-off-by: Karel Zak Makefile.am | 3 +- configure.ac | 3 +- misc-utils/Makefile.am | 180 ------------------------------------------- misc-utils/Makemodule.am | 191 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 194 insertions(+), 183 deletions(-) commit c7f753901f45bffdf39506e4f19bba4c37659ccc Author: Karel Zak Date: Thu May 31 11:15:07 2012 +0200 build-sys: move hwclock to sys-utils/ Signed-off-by: Karel Zak Makefile.am | 7 - configure.ac | 1 - hwclock/.gitignore | 1 - hwclock/Makefile.am | 21 - hwclock/clock.h | 47 -- hwclock/cmos.c | 677 ----------------- hwclock/hwclock.8 | 661 ---------------- hwclock/hwclock.c | 1894 --------------------------------------------- hwclock/kd.c | 182 ----- hwclock/rtc.c | 508 ------------- sys-utils/Makemodule.am | 20 + sys-utils/hwclock-cmos.c | 677 +++++++++++++++++ sys-utils/hwclock-kd.c | 183 +++++ sys-utils/hwclock-rtc.c | 509 +++++++++++++ sys-utils/hwclock.8 | 661 ++++++++++++++++ sys-utils/hwclock.c | 1895 ++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/hwclock.h | 47 ++ 17 files changed, 3992 insertions(+), 3999 deletions(-) commit 8772f8d7eeeb922bccee3376552c59d7148df7b4 Author: Karel Zak Date: Tue Jun 26 18:06:21 2012 +0200 build-sys: convert sys-utils/ to module Signed-off-by: Karel Zak Makefile.am | 3 +- configure.ac | 1 - sys-utils/Makefile.am | 285 ------------------------------------------ sys-utils/Makemodule.am | 316 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 317 insertions(+), 288 deletions(-) commit 68f6645a7ebc065bae0376fd0d0d5c9b38d1059f Author: Karel Zak Date: Thu May 31 10:55:14 2012 +0200 tools: cleanup config-gen.d Signed-off-by: Karel Zak tools/config-gen.d/audit.conf | 1 - tools/config-gen.d/devel-new-mount.conf | 8 -------- tools/config-gen.d/devel.conf | 1 - tools/config-gen.d/old-mount.conf | 3 +++ tools/config-gen.d/selinux.conf | 1 - 5 files changed, 3 insertions(+), 11 deletions(-) commit bafe1a75a326646083d2b653578f218531bdc0b8 Author: Karel Zak Date: Thu May 31 10:03:35 2012 +0200 build-sys: cleanup mount stuff in configure.am Signed-off-by: Karel Zak configure.ac | 22 ++++++++++------------ 1 files changed, 10 insertions(+), 12 deletions(-) commit a9e48470be8a52175149bf79627d79f51858dec9 Author: Karel Zak Date: Thu May 31 10:02:52 2012 +0200 build-sys: add UL_CONFLICTS_BUILD m4 macro Signed-off-by: Karel Zak m4/ul.m4 | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) commit 14a0cafb928e4292a750e9dc69b10072c79d84c1 Author: Karel Zak Date: Wed May 30 17:36:44 2012 +0200 mount: (old) remove hybrid libmount code The hybrid version with old mount and new mtab management from libmount is not more supported. Only two versions are supported: 1/ old mount in mount-deprecated/, --enable-deprecated-mount 2/ new sys-utils/mount.c, enabled by default Signed-off-by: Karel Zak configure.ac | 13 ---- mount-deprecated/Makemodule.am | 17 ----- mount-deprecated/fstab.c | 47 ------------ mount-deprecated/fstab.h | 5 -- mount-deprecated/mount.c | 151 +--------------------------------------- mount-deprecated/umount.c | 11 --- 6 files changed, 2 insertions(+), 242 deletions(-) commit 434b07a09062f5c06b1e1ab01a6751ab69947bbb Author: Karel Zak Date: Wed May 30 17:29:01 2012 +0200 build-sys: default to new sys-utils/mount.c, add --enable-deprecated-mount Signed-off-by: Karel Zak configure.ac | 30 +++++++++++++++--------------- mount-deprecated/Makemodule.am | 4 ++-- sys-utils/Makefile.am | 10 +++++----- 3 files changed, 22 insertions(+), 22 deletions(-) commit 964339a986997a11fe6a0baab633ecef901b4398 Author: Karel Zak Date: Wed May 30 17:17:49 2012 +0200 mount: (old) remove mtab lock test Signed-off-by: Karel Zak mount-deprecated/fstab.c | 135 ---------------------------------------------- 1 files changed, 0 insertions(+), 135 deletions(-) commit d2feb47fb1ddc0d8ac946328e77ed86ea6937bef Author: Karel Zak Date: Wed May 30 17:16:11 2012 +0200 build-sys: convert mount/ to module, rename to mount-deprecated/ Signed-off-by: Karel Zak Makefile.am | 6 +- autogen.sh | 2 +- configure.ac | 3 +- mount-deprecated/.gitignore | 3 + mount-deprecated/Makemodule.am | 99 ++ mount-deprecated/devname.c | 14 + mount-deprecated/devname.h | 6 + mount-deprecated/fsprobe.c | 141 ++ mount-deprecated/fsprobe.h | 27 + mount-deprecated/fstab.c | 1170 +++++++++++++++ mount-deprecated/fstab.h | 44 + mount-deprecated/getusername.c | 14 + mount-deprecated/getusername.h | 1 + mount-deprecated/mount.8 | 2857 +++++++++++++++++++++++++++++++++++ mount-deprecated/mount.c | 2799 +++++++++++++++++++++++++++++++++++ mount-deprecated/mount_constants.h | 73 + mount-deprecated/mount_mntent.c | 165 +++ mount-deprecated/mount_mntent.h | 28 + mount-deprecated/sundries.c | 300 ++++ mount-deprecated/sundries.h | 55 + mount-deprecated/umount.8 | 179 +++ mount-deprecated/umount.c | 878 +++++++++++ mount/.gitignore | 3 - mount/Makefile.am | 108 -- mount/devname.c | 15 - mount/devname.h | 6 - mount/fsprobe.c | 142 -- mount/fsprobe.h | 27 - mount/fstab.c | 1171 --------------- mount/fstab.h | 44 - mount/getusername.c | 14 - mount/getusername.h | 1 - mount/mount.8 | 2858 ------------------------------------ mount/mount.c | 2799 ----------------------------------- mount/mount_constants.h | 73 - mount/mount_mntent.c | 165 --- mount/mount_mntent.h | 28 - mount/sundries.c | 301 ---- mount/sundries.h | 56 - mount/umount.8 | 179 --- mount/umount.c | 878 ----------- tools/config-gen | 2 +- 42 files changed, 8857 insertions(+), 8877 deletions(-) commit ffeb280566d90fce742af31467f6ee29912bf935 Author: Karel Zak Date: Wed May 30 16:10:11 2012 +0200 build-sys: convert login-utils/ to module Signed-off-by: Karel Zak Makefile.am | 3 +- configure.ac | 1 - login-utils/Makefile.am | 133 ----------------------------------------- login-utils/Makemodule.am | 146 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 148 insertions(+), 135 deletions(-) commit 22d2322eb1202f6961041b8fcacbe6e6856fb6b0 Author: Karel Zak Date: Tue Jun 26 17:53:09 2012 +0200 build-sys: convert term-utils/ to module Signed-off-by: Karel Zak Makefile.am | 11 +++-- configure.ac | 2 - term-utils/Makefile.am | 79 ------------------------------------ term-utils/Makemodule.am | 99 ++++++++++++++++++++++++++++++++++++++++++++++ text-utils/Makefile.am | 62 ----------------------------- 5 files changed, 105 insertions(+), 148 deletions(-) commit f3e03db330ec9bfb1be440e01c1e251c8b3ea7e4 Author: Karel Zak Date: Wed May 30 15:02:33 2012 +0200 build-sys: convert text-utils/ to module Signed-off-by: Karel Zak text-utils/Makemodule.am | 86 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 86 insertions(+), 0 deletions(-) commit bc94024d0828c106bb606123d1d443daff408082 Author: Karel Zak Date: Tue Jun 26 17:49:37 2012 +0200 build-sys: convert libmount/ to module Signed-off-by: Karel Zak Makefile.am | 12 +--- config/include-Makefile.am | 10 +--- configure.ac | 2 - libmount/Makefile.am | 13 ---- libmount/Makemodule.am | 10 +++ libmount/src/Makefile.am | 98 ------------------------------ libmount/src/Makemodule.am | 143 ++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 158 insertions(+), 130 deletions(-) commit f77a4d108723a70c7c843b6b99a4111ad998909d Author: Karel Zak Date: Tue Jun 26 17:44:15 2012 +0200 build-sys: convert libblkid/ to module - create module - remove unused libblkid/src/tst_types.c test Signed-off-by: Karel Zak Makefile.am | 15 ++- config/include-Makefile.am | 8 +- configure.ac | 6 - libblkid/Makefile.am | 15 --- libblkid/Makemodule.am | 12 ++ libblkid/samples/Makefile.am | 10 -- libblkid/samples/Makemodule.am | 22 ++++ libblkid/src/Makefile.am | 106 ---------------- libblkid/src/Makemodule.am | 228 ++++++++++++++++++++++++++++++++++ libblkid/src/partitions/Makefile.am | 23 ---- libblkid/src/superblocks/Makefile.am | 52 -------- libblkid/src/topology/Makefile.am | 19 --- libblkid/src/tst_types.c | 63 ---------- 13 files changed, 275 insertions(+), 304 deletions(-) commit 3632ce21b7c3f9c564c3c0f962c4840719f1c2d6 Author: Karel Zak Date: Wed May 23 09:37:38 2012 +0200 build-sys: convert libuuid/ to module Signed-off-by: Karel Zak Makefile.am | 19 ++++- config/include-Makefile.am | 6 +- configure.ac | 3 - libuuid/Makefile.am | 9 -- libuuid/Makemodule.am | 9 ++ libuuid/man/Makefile.am | 23 ------ libuuid/man/Makemodule.am | 22 ++++++ libuuid/src/Makefile.am | 53 ------------- libuuid/src/Makemodule.am | 56 ++++++++++++++ libuuid/src/gen_uuid_nt.c | 92 ---------------------- libuuid/src/test_uuid.c | 180 ++++++++++++++++++++++++++++++++++++++++++++ libuuid/src/tst_uuid.c | 180 -------------------------------------------- 12 files changed, 282 insertions(+), 370 deletions(-) commit 5ed5df5d6eed64bbec6fd8853713fff3506be8ab Author: Karel Zak Date: Tue May 22 15:57:23 2012 +0200 build-sys: convert schedutils/ to module Signed-off-by: Karel Zak Makefile.am | 6 +++--- configure.ac | 1 - schedutils/Makefile.am | 23 ----------------------- schedutils/Makemodule.am | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 27 deletions(-) commit 8d34d92bcd8eba31fdd3fbb36fe5442b034b9888 Author: Karel Zak Date: Tue May 22 15:56:29 2012 +0200 build-sys: define per-test -DTEST_PROGRAM in lib/ Signed-off-by: Karel Zak lib/Makemodule.am | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) commit e0ef609e890007d43f61e949ba3f89abb4e9b0d5 Author: Karel Zak Date: Thu May 17 00:54:26 2012 +0200 build-sys: convert lib/ to module Signed-off-by: Karel Zak Makefile.am | 4 +- configure.ac | 1 - lib/Makefile.am | 61 -------------------------------------------------- lib/Makemodule.am | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 64 deletions(-) commit 8365ed42acd4bd5468f7b32eb80652ee55d85d6b Author: Karel Zak Date: Wed May 16 15:05:11 2012 +0200 build-sys: convert include/ to module Signed-off-by: Karel Zak Makefile.am | 8 +++++++- configure.ac | 1 - include/Makefile.am | 45 --------------------------------------------- include/Makemodule.am | 44 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 47 deletions(-) commit 333034f6bc90a058695a121456380e5a396a32a1 Author: Karel Zak Date: Wed May 16 15:02:27 2012 +0200 build-system: enable automake subdir-objects Signed-off-by: Karel Zak configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5f8c14a05b9085002b2c68b6715150a887fd4b4f Author: Karel Zak Date: Wed May 16 14:37:28 2012 +0200 build-sys: ignore .dirstamp file Signed-off-by: Karel Zak .gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 25206ba67b6b73926d8423e4f637cbdb843446fb Author: Karel Zak Date: Tue Jun 26 09:53:51 2012 +0200 whereis: cleanup man page, add note about $PATH Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=835211 Signed-off-by: Karel Zak misc-utils/whereis.1 | 66 +++++++++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 38 deletions(-) commit 97209c2be18dbaab862e8908ad0a2353685076ff Author: Karel Zak Date: Thu Jun 21 13:11:08 2012 +0200 tunelp: check fstat return code [coverity scan] Signed-off-by: Karel Zak sys-utils/tunelp.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 32c67d2c588bd10c8c8a9b61669b56054a0785f8 Author: Karel Zak Date: Thu Jun 21 13:08:18 2012 +0200 lsblk: check sysfs_read_u64 return code [coverity scan] Signed-off-by: Karel Zak misc-utils/lsblk.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 6b21a6b9f3c8b945f18fab50ae0586c0053e9d89 Author: Karel Zak Date: Thu Jun 21 12:54:31 2012 +0200 swaplabel: check blkid_probe_lookup_value() result [coverity scan] Signed-off-by: Karel Zak disk-utils/swaplabel.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 46e28f04316799d8a1984d389c807b64c3bf66a1 Author: Karel Zak Date: Thu Jun 21 12:14:34 2012 +0200 script: remove unused code Signed-off-by: Karel Zak term-utils/script.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) commit efcf26f44f13e74046cd17a902284bb491619da9 Author: Karel Zak Date: Thu Jun 21 12:03:27 2012 +0200 agetty: more robust debug() macro, check ioctl result [coverity scan] Signed-off-by: Karel Zak term-utils/agetty.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit 9c53a49c44f77022f10301cf4659a5629156a2e8 Author: Karel Zak Date: Thu Jun 21 11:58:39 2012 +0200 lsblk: check ioctl result [coverity scan] Signed-off-by: Karel Zak misc-utils/lsblk.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 1a07cccf8691d1f1f73b7105b70dab1faccb84dc Author: Karel Zak Date: Thu Jun 21 11:35:45 2012 +0200 tests: add lscpu test for box with 64 CPUs Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 2 Core(s) per socket: 8 Socket(s): 4 Vendor ID: GenuineIntel ... Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-x86_64-64cpu | 88 ++++++++++++++++++++++++++++++ tests/ts/lscpu/dumps/x86_64-64cpu.tar.gz | Bin 0 -> 153140 bytes 2 files changed, 88 insertions(+), 0 deletions(-) commit defa0710b63096f96b5616090c262d30b01bc60c Author: Karel Zak Date: Thu Jun 21 10:40:43 2012 +0200 lib/loopdev: use warn_unused_result forimportant functions Signed-off-by: Karel Zak include/loopdev.h | 6 ++- lib/loopdev.c | 65 +++++++++++++++++++++++++--------------- libmount/src/cache.c | 5 ++- libmount/src/context_loopdev.c | 4 ++- partx/partx.c | 3 +- sys-utils/losetup.c | 27 +++++++++++++---- 6 files changed, 74 insertions(+), 36 deletions(-) commit 1aae31c0488299023346bd2b4f8a8046a8546a8c Author: Karel Zak Date: Thu Jun 21 08:28:49 2012 +0200 lib/sysfs: use warn_unused_result for sysfs_init() Signed-off-by: Karel Zak include/sysfs.h | 4 ++-- lib/sysfs.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) commit a0b25068abe2931dc666b216b88bb837579cc60c Author: Cong Wang Date: Wed Jun 20 16:42:05 2012 +0800 lib/mangle: fix a memory leak in the test case Marek reported there is a memory leak in lib/mangle.c CC mangle.o mangle.c:160:9: warning: Memory is never released; potential leak of memory pointed to by 'ss' This patch fixes it. Reported-by: Marek Otahal Cc: Karel Zak Signed-off-by: Cong Wang lib/mangle.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit cffee0de0cf7c0d44323a830beb313d5ae18247d Author: Cong Wang Date: Wed Jun 20 16:32:00 2012 +0800 lib/sysfs: check if cxt->dir_path is NULL in sysfs_readlink() cxt->dir_path could be NULL, for example, when sysfs_init() fails, check this before calling readlink()/readlink_at(). Cc: Karel Zak Signed-off-by: Cong Wang lib/sysfs.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 95f9f3098ec274d7d50a0bd57f6afdf62e7bb109 Author: Karel Zak Date: Thu Jun 21 08:17:50 2012 +0200 fdisk: add some debug messages Signed-off-by: Karel Zak fdisk/utils.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) commit 400e463a3aafe56bee42d7ded8b8c0155a7a684a Author: Karel Zak Date: Thu Jun 21 08:09:45 2012 +0200 fdisk: use memset() rather than bzero() Signed-off-by: Karel Zak fdisk/utils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 24cd580b70fa04c7374c4f5c5fa477fc06748211 Author: Davidlohr Bueso Date: Sun Jun 17 18:10:33 2012 +0200 fdisk: API: add geometry Add device geometry to the fdisk API. While it maintains traditional behaviour, the cylinders are changed to sector_t instead of unsigned int in order to avoid dealing with truncated cylinders. A new helper is added to compute the amount of cylinders based on the heads and sectors - if a user passed -H or -S to the program, it must call this function to update the corresponding values. This patch passes regression tests. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 185 +++++++++++++++++++++--------------------------- fdisk/fdisk.h | 26 +++++--- fdisk/fdiskaixlabel.c | 2 +- fdisk/fdiskbsdlabel.c | 12 ++-- fdisk/fdiskdoslabel.c | 24 +++--- fdisk/fdiskmaclabel.c | 2 +- fdisk/fdisksgilabel.c | 42 ++++++------ fdisk/fdisksunlabel.c | 90 ++++++++++++------------ fdisk/utils.c | 37 ++++++++++ 9 files changed, 220 insertions(+), 200 deletions(-) commit 6efb4b12567703f84a6c7305e21df734ca34b748 Author: Davidlohr Bueso Date: Sun Jun 17 18:10:28 2012 +0200 fdisk: mark dos compatibility/CHS options deprecated in manpage Signed-off-by: Davidlohr Bueso fdisk/fdisk.8 | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit b8478f8ba1ca2a835b1c8b4de391fde12225ec90 Author: Davidlohr Bueso Date: Sun Jun 17 18:10:26 2012 +0200 fdisk: sun: remove unused function Signed-off-by: Davidlohr Bueso fdisk/fdisksunlabel.c | 6 ------ fdisk/fdisksunlabel.h | 1 - 2 files changed, 0 insertions(+), 7 deletions(-) commit 4fde0b86c1c90e6e3f3f94b130ecabca422872f4 Author: Davidlohr Bueso Date: Sun Jun 17 18:10:22 2012 +0200 fdisk: sgi: remove unused function Signed-off-by: Davidlohr Bueso fdisk/fdisksgilabel.c | 6 ------ fdisk/fdisksgilabel.h | 1 - 2 files changed, 0 insertions(+), 7 deletions(-) commit ece754a8ccd9af2833dbe4f688a891fc3c5b4036 Author: Davidlohr Bueso Date: Sun Jun 17 18:10:15 2012 +0200 fdisk: sgi: remove unused code Signed-off-by: Davidlohr Bueso fdisk/fdisksgilabel.c | 17 ----------------- 1 files changed, 0 insertions(+), 17 deletions(-) commit ff680b36e9ab940ff4686373addea1b094336ffe Author: Davidlohr Bueso Date: Sun Jun 17 18:10:11 2012 +0200 fdisk: tests: update oddinput test Adding mbr to the API breaks this test, specifically when reading the first 512 bytes of the MBR, update the expected output for oddinput.toosmall. Also let the test create and remove the test file instead of having it in the expected directory. Signed-off-by: Davidlohr Bueso tests/expected/fdisk/oddinput | 1 + tests/ts/fdisk/oddinput | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) commit 38b36353cd1861f47af58a6991f9dfdfbbf34fab Author: Davidlohr Bueso Date: Sun Jun 17 18:10:07 2012 +0200 fdisk: API: add mbr This patch adds to the fdisk API the relevant logic to buffers that have MBR. This also serves for future GPT support for the protective MBR. All labels have been updated to have access to the cxt structure for the corresponding buffer. An important observation is that SGI no longer uses the standard qsort(3) function to sort partitions, as it needs access to cxt. To address this, a heap sort implementation from the kernel was added to the label code and adapted to fdisk. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 83 +++++++------------- fdisk/fdisk.h | 13 +-- fdisk/fdiskaixlabel.c | 11 ++- fdisk/fdiskaixlabel.h | 6 +- fdisk/fdiskdoslabel.c | 29 ++++---- fdisk/fdiskdoslabel.h | 4 +- fdisk/fdiskmaclabel.c | 8 +- fdisk/fdiskmaclabel.h | 6 +- fdisk/fdisksgilabel.c | 209 +++++++++++++++++++++++++++++++------------------ fdisk/fdisksgilabel.h | 28 ++++---- fdisk/fdisksunlabel.c | 26 ++++--- fdisk/fdisksunlabel.h | 18 ++-- fdisk/utils.c | 31 +++++++ 13 files changed, 262 insertions(+), 210 deletions(-) commit 7bd9699a74687f2297b7333d09d1bb021e350a73 Author: Davidlohr Bueso Date: Sun Jun 17 18:10:04 2012 +0200 fdisk: API: add topology debug Signed-off-by: Davidlohr Bueso fdisk/fdisk.h | 1 + fdisk/utils.c | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-) commit 25b529fe9b74af927791049d82cedfe897b672ab Author: Davidlohr Bueso Date: Sun Jun 17 18:09:59 2012 +0200 fdisk: extend comments for fdisk_new_context() Signed-off-by: Davidlohr Bueso fdisk/utils.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 2dc03af7f0336e0f1d21acee064f1c7c4ed9d53e Author: Karel Zak Date: Tue Jun 19 17:41:35 2012 +0200 lsblk: fix usage, improve exclude/include lists parsing Reported-by: Bernhard Voelker Signed-off-by: Karel Zak misc-utils/lsblk.c | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) commit 23966912fbbc74980a0900c3d29613f038fad791 Author: Karel Zak Date: Tue Jun 19 16:19:18 2012 +0200 libmount: improve ifdef HAVE_LIBSELINUX stuff Signed-off-by: Karel Zak libmount/src/optstr.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) commit 2ef4e8ba1a9e7c67a8daabbaf7b00b67a912e5ea Author: Karel Zak Date: Tue Jun 19 16:06:22 2012 +0200 lsblk: add --include option Signed-off-by: Karel Zak misc-utils/lsblk.8 | 9 +++++- misc-utils/lsblk.c | 70 +++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 66 insertions(+), 13 deletions(-) commit 140014a4246349b2a9af5996da9ef46efbb11e17 Author: Karel Zak Date: Tue Jun 19 13:14:20 2012 +0200 lscpu: fix compiler warning [-Wsign-compare] lscpu.c: In function ‘has_pci_device’: lscpu.c:425:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] lscpu.c:425:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Karel Zak sys-utils/lscpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8acc8979c48775af37bcab5e8f787d9569144e17 Merge: d55bb48 327b7c5 Author: Karel Zak Date: Tue Jun 19 13:01:29 2012 +0200 Merge branch '2012wk24' of git://github.com/kerolasa/lelux-utiliteetit * '2012wk24' of git://github.com/kerolasa/lelux-utiliteetit: (24 commits) more: fix pointer wrap around compiler warnings more: fix search repetition regression lscpu: values in /proc/bus/pci/devices are always unsigned scriptreplay: fix compiler format warning lib/mbsalign: abort() when non-expected case is encountered mkfs.cramfs: disallow unknown command line options fsck.cramfs: disallow unknown command line options setarch: disallow unknown command line options hexdump: print sensible message when all input file arguments fail mount: (new) use exclusive_option() dmesg: use exclusive_option() wipefs: use exclusive_option() wdctl: correct manual section reference wdctl: use exclusive_option() prlimit: use exclusive_option() lscpu: use exclusive_option() losetup: use exclusive_option() chcpu: use exclusive_option() lsblk: use exclusive_option() findmnt: use exclusive_option() ... commit d55bb4825bc4a0aedb69475c86329b07850bf97e Author: Karel Zak Date: Tue Jun 19 12:50:10 2012 +0200 po: add *.h stuff to POTFILES Signed-off-by: Karel Zak po/update-potfiles | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 12b41eacf51aaae3dea97d9c52d5b90cdcc944b3 Author: Karel Zak Date: Tue Jun 19 12:04:03 2012 +0200 mount: (new) add note about unsupported 'ignore' fstype to fstab.5 Reported-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/fstab.5 | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) commit f6da50d49bdd187534672ef002192787455044f0 Author: Bernhard Voelker Date: Fri Jun 15 15:40:35 2012 +0200 lsblk: permit option --exclude more than once Previously, `lsblk -e 8 -e 11` did not exlude maj:8 as requested. Signed-off-by: Bernhard Voelker misc-utils/lsblk.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 1425948c8ceaf128c9cfcf4db680be4144f89314 Author: Karel Zak Date: Mon Jun 18 15:46:20 2012 +0200 uuidd: move from /var/run/uuidd to /run/uuidd Signed-off-by: Karel Zak libuuid/src/uuidd.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 949b61c2b23571345ff018f04eabd7bc28650db3 Author: Karel Zak Date: Mon Jun 18 15:36:00 2012 +0200 libuuid: move clock.txt path to header file Signed-off-by: Karel Zak libuuid/src/gen_uuid.c | 3 +-- libuuid/src/uuidP.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) commit 327b7c5bfb3761a8125a41e6a059cb6a5ba5cc3d Author: Sami Kerola Date: Sun Jun 17 15:01:34 2012 +0200 more: fix pointer wrap around compiler warnings more.c:318:5: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] more.c:362:3: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] Signed-off-by: Sami Kerola text-utils/more.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit 02206bfbd7ebdfcab02fd828e0b23f6b42f1cc5b Author: Sami Kerola Date: Sun Jun 17 14:34:30 2012 +0200 more: fix search repetition regression Commit 596007ef6a37b708f44286932eed667b316e5f70 introduced a bug crashing more always when a text search was repeated with 'n' command. Signed-off-by: Sami Kerola text-utils/more.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) commit 13cf6fc8d92bf62c382cae0dd5b9c99ae9852588 Author: Sami Kerola Date: Sat Jun 16 23:34:30 2012 +0200 lscpu: values in /proc/bus/pci/devices are always unsigned Signed-off-by: Sami Kerola sys-utils/lscpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 66fc06653724de4a99ecb329b27a9c0dff8b7cf3 Author: Sami Kerola Date: Sat Jun 16 23:27:28 2012 +0200 scriptreplay: fix compiler format warning scriptreplay.c:210:3: warning: format '%zd' expects argument of type 'signed size_t *', but argument 4 has type 'size_t *' [-Wformat] Signed-off-by: Sami Kerola term-utils/scriptreplay.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit ce7b11a98e945932cc5c47ee20a6d916682b815c Author: Sami Kerola Date: Sat Jun 16 23:09:54 2012 +0200 lib/mbsalign: abort() when non-expected case is encountered Fixes the following compiler warning (9 occurrences), and makes program to crash if mbsaligh() is called with unexpected align value (which would be programming error). ../lib/mbsalign.c:260:7: warning: switch missing default case [-Wswitch-default] Signed-off-by: Sami Kerola lib/mbsalign.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 9481c7b33bc940e62439a5fba7eb07e1ffa03483 Author: Sami Kerola Date: Sat Jun 16 23:06:03 2012 +0200 mkfs.cramfs: disallow unknown command line options Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit de173766e018784721df04ab3f89086ee2326260 Author: Sami Kerola Date: Sat Jun 16 23:05:42 2012 +0200 fsck.cramfs: disallow unknown command line options Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit edf1cf0af541cd4ffe5d91d776627e0d70ded184 Author: Sami Kerola Date: Sat Jun 16 22:59:47 2012 +0200 setarch: disallow unknown command line options Exit with instruction to run --help if unknown option is encountered. Before the following example printed error, but resulted to an attempt to run argument. $ x86_64 -x ls Signed-off-by: Sami Kerola sys-utils/setarch.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 3c44e03f8cb77572911a7bf2ecbcbb3e0c27a4fc Author: Sami Kerola Date: Sat Jun 16 22:30:04 2012 +0200 hexdump: print sensible message when all input file arguments fail Earlier hexdump printed unnecessary, and perhaps even misleading, 'bad file descriptor' message. $ hexdump foobar hexdump: foobar: No such file or directory hexdump: foobar: Bad file descriptor The message is changed to $ hexdump foobar hexdump: foobar: No such file or directory hexdump: all input file arguments failed Signed-off-by: Sami Kerola text-utils/display.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 38483b86e39460dbe4f993f603fe0378d53d7cba Author: Sami Kerola Date: Sat Jun 16 11:47:07 2012 +0200 mount: (new) use exclusive_option() Signed-off-by: Sami Kerola sys-utils/mount.c | 35 ++++++++++++++++++++++++++++------- 1 files changed, 28 insertions(+), 7 deletions(-) commit 9492013429d0d9fd6e3bbe7cf5fe6f3ee37e4abe Author: Sami Kerola Date: Sat Jun 16 11:31:47 2012 +0200 dmesg: use exclusive_option() Signed-off-by: Sami Kerola sys-utils/dmesg.c | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) commit 58f0252a18f11f0b458845cedec43ee591ccabae Author: Sami Kerola Date: Sat Jun 16 00:06:20 2012 +0200 wipefs: use exclusive_option() Signed-off-by: Sami Kerola misc-utils/wipefs.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) commit 62b4528a8bd758a0fb97f75c9b96e66883550d13 Author: Sami Kerola Date: Fri Jun 15 23:55:19 2012 +0200 wdctl: correct manual section reference Signed-off-by: Sami Kerola sys-utils/wdctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e6dbcc4a2005a889a9405b2da279de5564661c7e Author: Sami Kerola Date: Fri Jun 15 23:54:41 2012 +0200 wdctl: use exclusive_option() Signed-off-by: Sami Kerola sys-utils/wdctl.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) commit 73e1d7fb02069da6adb7ded1dc630e3c59ac0486 Author: Sami Kerola Date: Fri Jun 15 23:40:49 2012 +0200 prlimit: use exclusive_option() Signed-off-by: Sami Kerola sys-utils/prlimit.c | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) commit 41a8940d430bf119196ecc27b4dc10c41f7c34a9 Author: Sami Kerola Date: Fri Jun 15 23:16:21 2012 +0200 lscpu: use exclusive_option() Signed-off-by: Sami Kerola sys-utils/lscpu.c | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) commit 96801c4826238b2db665910ef57c4811e1a7d21b Author: Sami Kerola Date: Fri Jun 15 22:56:45 2012 +0200 losetup: use exclusive_option() Signed-off-by: Sami Kerola sys-utils/losetup.c | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) commit 264a6b0ab78eb9266e0701b0bbf8b7b66af634cc Author: Sami Kerola Date: Fri Jun 15 17:17:49 2012 +0200 chcpu: use exclusive_option() Signed-off-by: Sami Kerola sys-utils/chcpu.c | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) commit 05187653478c279eff70b40cfabe50211c2d7793 Author: Sami Kerola Date: Thu Jun 14 21:46:16 2012 +0200 lsblk: use exclusive_option() This commit fixes exclusions which where meant to happen, but where not successful. For example lsblk -r -l # did exclude lsblk -l -r # did not exclude Signed-off-by: Sami Kerola misc-utils/lsblk.c | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) commit fb9a004206ae8b3b95080e2d95b415364f8821e5 Author: Sami Kerola Date: Thu Jun 14 21:31:09 2012 +0200 findmnt: use exclusive_option() Signed-off-by: Sami Kerola misc-utils/findmnt.c | 38 ++++++++++++++++++++++---------------- 1 files changed, 22 insertions(+), 16 deletions(-) commit 72b99fc53ba0671c6576db8093b5255a43f3f425 Author: Sami Kerola Date: Thu Jun 14 21:07:28 2012 +0200 blkid: use exclusive_option() Signed-off-by: Sami Kerola misc-utils/blkid.c | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) commit e1f4706db820019aef0fa49424d92a5ca785f88c Author: Sami Kerola Date: Thu Jun 14 20:58:12 2012 +0200 hwclock: use exclusive_option() Signed-off-by: Sami Kerola hwclock/hwclock.c | 66 +++++++++++++++++++++++++++++++++-------------------- 1 files changed, 41 insertions(+), 25 deletions(-) commit 6320c5aa956d5114670d7106e049b21a2db4bf56 Author: Sami Kerola Date: Thu Jun 14 20:22:02 2012 +0200 partx: use exclusive_option() Earlier option combinations such as below behaved unexpected way. partx -l -l /dev/sda partx -r -s /dev/sda Signed-off-by: Sami Kerola partx/partx.c | 51 ++++++++++++++++++--------------------------------- 1 files changed, 18 insertions(+), 33 deletions(-) commit 8f77d454a9c79e3de71575eb148fc32c767a2c39 Author: Sami Kerola Date: Thu Jun 14 20:17:51 2012 +0200 include [optutils]: add exclusive_option() inline function The exclusive_option() will unify how exclusive options are determined. Signed-off-by: Sami Kerola include/optutils.h | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit 7cfd1b26437acd45f1e2e75c9648afabb8f5b2da Author: Davidlohr Bueso Date: Tue Jun 12 14:50:06 2012 +0200 partx: use -s option for default output It's been around a year and a half now that partx was rewritten, and the legacy output should no longer be default. Signed-off-by: Davidlohr Bueso partx/partx.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 2fc4a256ce16196ddb8d6f5a56809880632ac279 Author: Karel Zak Date: Fri Jun 15 13:14:30 2012 +0200 lib/blkdev: return static strings by blkdev_scsi_type_to_name() Signed-off-by: Karel Zak include/blkdev.h | 2 +- lib/blkdev.c | 41 +++++++++++++++++++---------------------- 2 files changed, 20 insertions(+), 23 deletions(-) commit 9d738ff822c452fa855772f31db9ff90a63fb415 Author: Karel Zak Date: Fri Jun 15 13:13:40 2012 +0200 lsblk: use fallback for TYPE ... bug introduced by 1edd8af70b4794c796d0faed0cf763ff3474b92e Signed-off-by: Karel Zak misc-utils/lsblk.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit aa323539cfa22424db97baddcdb9cffae2089b0f Author: Karel Zak Date: Fri Jun 15 13:01:51 2012 +0200 include/blkdev: cleanup up Signed-off-by: Karel Zak include/blkdev.h | 51 +++++++++++++++++++++++++++------------------------ 1 files changed, 27 insertions(+), 24 deletions(-) commit d5f9b6e5fb352c632655e442773df96129cea02d Merge: 9d670a2 1edd8af Author: Karel Zak Date: Fri Jun 15 12:44:17 2012 +0200 Merge branch '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit * '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit: lsblk: use blkdev_scsi_type_to_name() blkdev: add blkdev_scsi_type_to_name() wipefs: use symbolic value for markup mode eject: inform if CD-ROM drive is not ready docs: clean up partx.8 manual include: fix void pointer arithmetics warnings sysfs: fix printf format warnings build: fix unused parameter warnings build: fix redundant redeclaration warnings include: fix spurious list.h warnings uuidd: use output redirection which works [checkbashisms] blkid: fix realloc memory leak [cppcheck] setarch: do not use -1 as array index [cppcheck] commit 9d670a2ab4b5b6d5a19aa4d392353f64b7218a5b Author: Karel Zak Date: Fri Jun 15 12:26:05 2012 +0200 libmount: make some string operations more robust Signed-off-by: Karel Zak libmount/src/cache.c | 6 +++--- libmount/src/lock.c | 4 ++++ libmount/src/optstr.c | 2 +- libmount/src/utils.c | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) commit 3cbc5a955982f14cdf5c04e5892d511952230bdf Author: Petr Uzel Date: Thu Jun 14 16:13:03 2012 +0200 libmount: fix trivial typos Signed-off-by: Petr Uzel libmount/src/context_mount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit bf15afd1e70316231f339764b8701c5daa4faca4 Author: Petr Uzel Date: Thu Jun 14 16:13:02 2012 +0200 libmount: fix read before allocated buffer valgrind --leak-check=full ./sys-utils/mount -t cifs //127.0.0.1/users /mnt/smb -o user=root,password=linux .... ==21359== Invalid read of size 1 ==21359== at 0x415AC6: mnt_optstr_remove_option_at (optstr.c:310) ==21359== by 0x416358: mnt_optstr_apply_flags (optstr.c:716) ==21359== by 0x40DFBF: mnt_context_prepare_mount (context_mount.c:86) ==21359== by 0x40EB5A: mnt_context_mount (context_mount.c:782) ==21359== by 0x4058B0: main (mount.c:918) ==21359== Address 0x51cd5bf is 1 bytes before a block of size 10 alloc'd ==21359== at 0x4C297CD: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==21359== by 0x4C29957: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==21359== by 0x415780: __mnt_optstr_append_option (optstr.c:188) ==21359== by 0x412822: mnt_fs_append_options (fs.c:764) ==21359== by 0x409288: mnt_context_append_options (context.c:733) ==21359== by 0x4053F0: main (mount.c:776) Signed-off-by: Petr Uzel libmount/src/optstr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 31821efc2976d4d2219e51c6addf8b1222f38c3f Author: Petr Uzel Date: Thu Jun 14 16:13:01 2012 +0200 libmount: plug a memory leak in exec_helper() valgrind --leak-check=full ./sys-utils/mount -t cifs //127.0.0.1/users /mnt/smb -o user=root,password=linux .... ==21359== 28 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==21359== at 0x4C298B2: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==21359== by 0x415780: __mnt_optstr_append_option (optstr.c:188) ==21359== by 0x415CB5: mnt_optstr_set_option (optstr.c:387) ==21359== by 0x40D778: do_mount (context_mount.c:192) ==21359== by 0x40E6A9: mnt_context_do_mount (context_mount.c:685) ==21359== by 0x40EB7B: mnt_context_mount (context_mount.c:786) ==21359== by 0x4058B0: main (mount.c:918) Signed-off-by: Petr Uzel libmount/src/context_mount.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 31550e7001f903a4b3141c99cda1c8bf3e4a5527 Author: Milan Broz Date: Tue Jun 12 13:18:02 2012 +0200 libblkid: update dm-verity scan New superblock now contains UUID. Old version is not going to be used. Signed-off-by: Milan Broz libblkid/src/superblocks/lvm.c | 33 +++++++++++++++++++-------------- 1 files changed, 19 insertions(+), 14 deletions(-) commit b4479ffaa890026a74f609a4a1c1effd538cb5fd Author: Bernhard Voelker Date: Wed Jun 6 16:34:55 2012 +0200 setsid: fix off-by-one error in execvp call Bug introduced during --ctty implementation by v2.21-112-g8a2f04d. Signed-off-by: Bernhard Voelker sys-utils/setsid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f5caaf39d2b94df651d941e011fd5e914c8016ec Author: Bernhard Voelker Date: Wed Jun 6 15:30:52 2012 +0200 su: remove unimplemented options -u and -v Signed-off-by: Bernhard Voelker login-utils/su.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) commit 827b1ceefdfdb3b4b55affb32f3c315abb7ad3fb Author: Jan \"Yenya\" Kasprzak Date: Tue Jun 5 16:26:58 2012 +0200 flock: user-configurable exit code When locking the file fails with -n or -w option, caller has no way to distinguish between the exit code 1 of the -c command, and the exit code 1 of flock(1) caused by the conflicting lock. Add a new -E (--conflict-exit-code) option to set the exit code for the case of locking failure to any value. sys-utils/flock.1 | 19 ++++++++++++++++--- sys-utils/flock.c | 26 ++++++++++++++++---------- 2 files changed, 32 insertions(+), 13 deletions(-) commit e26de525e21677c680d87f63e4dafbe4859365bf Author: Karel Zak Date: Thu Jun 14 14:43:21 2012 +0200 mount: (new) allow sloppy for non-root Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=825836 Signed-off-by: Karel Zak sys-utils/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e90e7401d0c318c9dac4a0204e2bca86949b1d32 Author: Karel Zak Date: Thu Jun 14 14:19:26 2012 +0200 libmount: don't use nosuid,noexec,nodev for cifs user=foo mount -t cifs //127.0.0.1/users /mnt/smb -o user=root,password=linux is incorrectly translated to mount.cifs -o noexec,nosuid,nodev,user=root,password=linux ... The command mount(8) should be sensitive to "user" (without "=") only. The correct cifs command line is: mount.cifs -o user=root,password=linux Addresses: https://bugzilla.novell.com/show_bug.cgi?id=766157 Signed-off-by: Karel Zak libmount/src/context_mount.c | 29 +++++++++++++++++++++++++++-- libmount/src/optstr.c | 9 +++++---- 2 files changed, 32 insertions(+), 6 deletions(-) commit 6b741564d84ee21573b3ebff5510f6b050028d06 Author: Karel Zak Date: Thu Jun 14 11:38:53 2012 +0200 libmount: don't generate empty option strings mount -t foo something /mnt/test -o user=root,password=linux generates "rw,noexec,nosuid,nodev,password=linux,,user=root" options string for /sbin/mount.foo, the ",," is incorrect. Signed-off-by: Karel Zak libmount/src/context_mount.c | 11 +++++++++++ libmount/src/optstr.c | 4 +++- 2 files changed, 14 insertions(+), 1 deletions(-) commit 8cd48d67f46ce76620a006d30f79f5763a7579f3 Author: Karel Zak Date: Wed Jun 13 15:58:16 2012 +0200 eject: cleanup umount code Signed-off-by: Karel Zak sys-utils/eject.c | 38 +++++++++++++++++++------------------- 1 files changed, 19 insertions(+), 19 deletions(-) commit 8388bbb3dfae6ebb9d614012e7484ffb12de07a3 Author: Karel Zak Date: Wed Jun 13 13:55:49 2012 +0200 eject: don't try to use non-device path Signed-off-by: Karel Zak sys-utils/eject.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit 566cd92c9feb9b1dda29d799477a97b106078ea7 Author: Karel Zak Date: Wed Jun 13 13:46:24 2012 +0200 eject: add --no-partitions-unmount Signed-off-by: Karel Zak sys-utils/eject.1 | 15 +++++++----- sys-utils/eject.c | 64 ++++++++++++++++++++++++++++++++++------------------- 2 files changed, 50 insertions(+), 29 deletions(-) commit b5c6f48631ca3eb66a76a54faa2cd82c9140a917 Author: Karel Zak Date: Wed Jun 13 11:59:29 2012 +0200 tools: add small and stupid script to check HAVE_DECL_ use 'make checkdecl' to run the script Signed-off-by: Karel Zak Makefile.am | 3 +++ tools/checkdecl.sh | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-) commit a01e15f1e43dc5c3109ca77029678cdb88e160a3 Author: Karel Zak Date: Tue Jun 12 16:31:39 2012 +0200 libblkid: trust in udev symlinks, don't verify The libblkid always verify that /dev/disk/by-* symlinks match with on-device LABELs/UUIDs. It means that all requests (e.g. mount -L | -U) generates extra superblocks scans on the device. Currently, many users and tools (GNOME, systemd, ...etc) use the symlink directly and udev maintains the symlinks by inotify (+watch rule). It seems better for system performance to disable the extra paranoid mode and trust in udev. Signed-off-by: Karel Zak libblkid/src/blkidP.h | 5 ++++- libblkid/src/evaluate.c | 4 ++++ 2 files changed, 8 insertions(+), 1 deletions(-) commit e4062c72d1733b0b99ed1c6269c996d6194e869b Author: Karel Zak Date: Tue Jun 12 15:41:47 2012 +0200 losetup: improve -a to report loopdevs < 512 bytes # ll ~/xxx2 -rw-r--r-- 1 root root 500 Jun 12 14:30 /root/xxx2 old version: # losetup -a new version: # losetup -a /dev/loop0: [2052]:535312 (/root/xxx2) The new version scans /sys/block/loopN, kernel >= 2.6.37 is required otherwise fallback to the original not-so-smart /proc/partitions scan. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=730266 Signed-off-by: Karel Zak include/loopdev.h | 1 + lib/loopdev.c | 112 +++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 96 insertions(+), 17 deletions(-) commit 3554545636f639fbd65d92cc7643e89f3c0ff7a5 Author: Karel Zak Date: Tue Jun 12 14:34:16 2012 +0200 losetup: warn about backing file size Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=730266 Signed-off-by: Karel Zak sys-utils/losetup.c | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) commit 1edd8af70b4794c796d0faed0cf763ff3474b92e Author: Sami Kerola Date: Mon Jun 11 21:22:38 2012 +0200 lsblk: use blkdev_scsi_type_to_name() Replace inline version of similar, but less complete, functionality with the lib/blkdev.c function. The function will inform if a type is unknown, which appears as hex string value. Signed-off-by: Sami Kerola misc-utils/Makefile.am | 4 +++- misc-utils/lsblk.c | 18 +----------------- 2 files changed, 4 insertions(+), 18 deletions(-) commit ba32a9465a3bedb0ba750cdc80a4e84fe2de6eda Author: Sami Kerola Date: Mon Jun 11 21:17:38 2012 +0200 blkdev: add blkdev_scsi_type_to_name() Add a function, and necessary symbols, to convert scsi type id's to name strings. Reference: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/5994 Signed-off-by: Sami Kerola include/blkdev.h | 21 +++++++++++++++++++++ lib/blkdev.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 68 insertions(+), 1 deletions(-) commit 4f0537374f8cdaf2408a29c4c870f29255947173 Author: Sami Kerola Date: Sun Jun 10 22:20:34 2012 +0200 wipefs: use symbolic value for markup mode In case mode value is found to be out of bounds program will crash. Signed-off-by: Sami Kerola misc-utils/wipefs.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit f31d041aaf0d63442b8c166f9be3eea5cb608f63 Author: Sami Kerola Date: Sun Jun 10 22:03:57 2012 +0200 eject: inform if CD-ROM drive is not ready Include file (see linux/cdrom.h lines 395 and 398) suggests ioctl() can return CDS_NO_INFO and CDS_DRIVE_NOT_READY, which where ignored. This commit will tell user what is going on. The commit will also make eject to crash in ioctl() will return unexpected value. Reference: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=include/linux/cdrom.h;h=dfd7f187c351440d2ffa81050e46ed2602877f73;hb=HEAD Signed-off-by: Sami Kerola sys-utils/eject.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 957a3eede931d864b2c8e1fff0f06fc5ece46143 Author: Sami Kerola Date: Sun Jun 10 18:20:48 2012 +0200 docs: clean up partx.8 manual * Remove bold & italic noise. * Reformat text to be 70 characters wide. * Use option and option argument highlights consistently. * Indent option argument list for --nr. * Squeeze examples where the same is done multiple different ways. * Use URL and email macros where appropriate. Signed-off-by: Sami Kerola partx/partx.8 | 231 +++++++++++++++++++++++++++++++++------------------------ 1 files changed, 135 insertions(+), 96 deletions(-) commit 667d375ea8de0c47d604fff0a75c2d653a387537 Author: Sami Kerola Date: Sun Jun 10 16:49:51 2012 +0200 include: fix void pointer arithmetics warnings all-io.h:18:9: warning: pointer of type 'void *' used in arithmetic [-pedantic] all-io.h:38:9: warning: pointer of type 'void *' used in arithmetic [-pedantic] Signed-off-by: Sami Kerola include/all-io.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 9d72cbc1e2db063166c0767b5c5a26ef04f2972a Author: Sami Kerola Date: Sun Jun 10 16:48:31 2012 +0200 sysfs: fix printf format warnings sysfs.c:93:3: warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat] sysfs.c:93:3: warning: format '%u' expects argument of type 'unsigned int *', but argument 4 has type 'int *' [-Wformat] Signed-off-by: Sami Kerola lib/sysfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 838c5f6bb81557a4d3c4303d51db12bca012136a Author: Sami Kerola Date: Sun Jun 10 16:44:54 2012 +0200 build: fix unused parameter warnings pager.c:203:14: warning: unused parameter 'argc' [-Wunused-parameter] pager.c:203:26: warning: unused parameter 'argv' [-Wunused-parameter] randutils.c:108:14: warning: unused parameter 'argc' [-Wunused-parameter] randutils.c:108:26: warning: unused parameter 'argv' [-Wunused-parameter] optstr.c:774:37: warning: unused parameter 'optstr' [-Wunused-parameter] optstr.c:774:51: warning: unused parameter 'value' [-Wunused-parameter] optstr.c:774:65: warning: unused parameter 'valsz' [-Wunused-parameter] optstr.c:774:79: warning: unused parameter 'next' [-Wunused-parameter] Signed-off-by: Sami Kerola lib/pager.c | 3 ++- lib/randutils.c | 3 ++- libmount/src/optstr.c | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) commit 0e9b73d3fb5e3c7a5146af65e119e297dcf75487 Author: Sami Kerola Date: Sun Jun 10 16:37:11 2012 +0200 build: fix redundant redeclaration warnings env.c:24:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] su.c:81:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] fstab.c:581:14: warning: redundant redeclaration of 'strsignal' [-Wredundant-decls] kill.h:1:13: note: previous declaration of 'get_pids' was here kill.c:152:13: warning: redundant redeclaration of 'get_pids' [-Wredundant-decls] kill.c:142:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] getopt.c:89:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] agetty.c:536:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls] agetty.c:537:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] script.c:161:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] wall.c:96:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] libmount.h:362:26: note: previous declaration of 'mnt_update_get_fs' was here libmount.h:454:26: note: previous declaration of 'mnt_context_get_fs' was here mountP.h:383:26: warning: redundant redeclaration of 'mnt_context_get_fs' [-Wredundant-decls] mountP.h:398:26: warning: redundant redeclaration of 'mnt_update_get_fs' [-Wredundant-decls] Signed-off-by: Sami Kerola configure.ac | 10 ++++++++++ getopt/getopt.c | 1 - lib/env.c | 2 ++ libmount/src/mountP.h | 2 -- login-utils/su.c | 2 ++ misc-utils/kill.c | 3 --- mount/fstab.c | 2 ++ term-utils/agetty.c | 2 -- term-utils/script.c | 1 - term-utils/wall.c | 1 - 10 files changed, 16 insertions(+), 10 deletions(-) commit c42206e4a79b4957eaa2ae8126a9912159890f1a Author: Sami Kerola Date: Sun Jun 10 11:09:08 2012 +0200 include: fix spurious list.h warnings include/list.h:224:17: warning: ISO C forbids omitting the middle term of a ?: expression [-pedantic] include/list.h:255:19: warning: ISO C forbids omitting the middle term of a ?: expression [-pedantic] Compilation warned about that at least 110 times. Signed-off-by: Sami Kerola include/list.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 7244ad8c09c910f0f08167ffc3d20005d07e5847 Author: Sami Kerola Date: Sat Jun 9 23:20:04 2012 +0200 uuidd: use output redirection which works [checkbashisms] possible bashism in misc-utils/uuidd.rc line 52 (should be >word 2>&1): if pidofproc -p $PIDFILE $DAEMON >& /dev/null ; then Signed-off-by: Sami Kerola misc-utils/uuidd.rc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 41420120a865186a1cbd97f01aea00c809d6b6ba Author: Sami Kerola Date: Sat Jun 9 23:05:23 2012 +0200 blkid: fix realloc memory leak [cppcheck] [misc-utils/blkid.c:367]: (error) Common realloc mistake: 'str' nulled but not freed upon failure Signed-off-by: Sami Kerola misc-utils/blkid.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 50f32c363ac51f648c27e423ffe2602047dde433 Author: Sami Kerola Date: Sat Jun 9 22:45:27 2012 +0200 setarch: do not use -1 as array index [cppcheck] Negative array index does technically work, but looks awkward and can confuse static analyser such as cppcheck. [sys-utils/setarch.c:267]: (error) Array index -1 is out of bounds Signed-off-by: Sami Kerola sys-utils/setarch.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 0e60bc9b152a3414c04c50523b5bf555665a6cea Author: Karel Zak Date: Wed Jun 6 12:10:41 2012 +0200 build-sys: add compiler warnings Signed-off-by: Karel Zak .gitignore | 1 + config/include-Makefile.am | 2 +- configure.ac | 15 +++++++++++++++ m4/warnings.m4 | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 1 deletions(-) commit df68ccd8b8354a84e57469a498997ab50aaa5dd3 Author: Karel Zak Date: Wed Jun 6 11:03:23 2012 +0200 fdisk: fix io_size usage in new API properly implemented fdisk_dev_has_topology() requires optimal I/O size to detect that the device provides topology. Unfortunately, currently used cxt->io_size maybe overwritten in __discover_topology() to min_io_size. This patch introduces cxt->optimal_io_size and keeps it independent on cxt->io_size. The cxt->io_size is I/O size used by fdisk for alignment calculation. Signed-off-by: Karel Zak fdisk/fdisk.h | 9 +++++---- fdisk/utils.c | 8 +++++--- 2 files changed, 10 insertions(+), 7 deletions(-) commit dde32b6ccd21c0fcdd3bc4e0401364b7fa26e535 Author: Karel Zak Date: Wed Jun 6 10:56:29 2012 +0200 fdisk: fix compiler warning [-Wunused-variable] Signed-off-by: Karel Zak fdisk/fdisk.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit c04e4a6a20b863147a4eceef3443df8672319ac5 Author: Karel Zak Date: Wed Jun 6 10:53:20 2012 +0200 fdisk: fix compiler warning [-Wpointer-sign] Signed-off-by: Karel Zak fdisk/utils.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit e1fc87eacd58c6fce6e4ef6a5cef3be4315e8679 Author: Karel Zak Date: Wed Jun 6 10:48:26 2012 +0200 fdisk: fix compiler warnings [-Wsign-compare] Signed-off-by: Karel Zak fdisk/fdisk.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 14e93ff3c813f0ae3de810fe6c426f338c89c279 Author: Davidlohr Bueso Date: Sun Jun 3 19:47:44 2012 +0200 fdisk: remove user specified sector size global variable Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 6e89f25e8b386069be7f2021177a3b26ad148aa3 Author: Davidlohr Bueso Date: Sun Jun 3 20:15:34 2012 +0200 fdisk: add fdisk_dev_sectsz_is_default helper Instead of printing this warning from the API, add a helper and call it from fdisk logic. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 4 ++++ fdisk/fdisk.h | 1 + fdisk/utils.c | 14 +++++++++++--- 3 files changed, 16 insertions(+), 3 deletions(-) commit 3e3de41ad91be0b95836a8f0e93a925bc3ed16b1 Author: Davidlohr Bueso Date: Sun Jun 3 20:15:30 2012 +0200 fdisk: use EXIT_SUCCESS for -l option Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 618882d6095a2c11876e800fef1ff442d60605f5 Author: Davidlohr Bueso Date: Sun Jun 3 20:15:20 2012 +0200 fdisk: add total sectors Add the total_sectors variable to the context structure. This is the initial geometry information. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 21 ++++++++------------- fdisk/fdisk.h | 5 ++++- fdisk/fdiskdoslabel.c | 4 ++-- fdisk/utils.c | 12 ++++++++++++ 4 files changed, 26 insertions(+), 16 deletions(-) commit e53ced85bf2dc2a9c501c9eef8681c1b2ffad5cf Author: Davidlohr Bueso Date: Sun Jun 3 20:15:17 2012 +0200 fdisk: add device topology to the API This patch adds device topology discovery to the internal API. This functionality is static only to the API and therefore hidden from general fdisk code. Functionality itself doesn't really change, min_io_size, io_size, logical and physical sector sizes and alignment offset are added to the fdisk_context structure and elements are accessed from there. The logical sector size (sector_size) is now unsigned long instead of unsigned int, this as no effect otherwise. A few things to notice: - The patch is larger than I wanted but we need to modify function parameters across fdisk and its labels to use the topology data from cxt-> instances. Hopefully this will be pretty much it regarding this kind of modifications - perhaps geometry will need something of the like too. - The -b option must override internal discovery. - A new helper function has added to verify if the device provides topology information, this replaces the 'has_topology' global variable. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 309 ++++++++++++++++++++----------------------------- fdisk/fdisk.h | 34 ++++-- fdisk/fdiskbsdlabel.c | 18 ++-- fdisk/fdiskdoslabel.c | 75 ++++++------ fdisk/fdiskdoslabel.h | 8 +- fdisk/fdisksgilabel.c | 49 ++++---- fdisk/fdisksgilabel.h | 4 +- fdisk/fdisksunlabel.c | 53 +++++---- fdisk/fdisksunlabel.h | 12 +- fdisk/utils.c | 73 ++++++++++++- 10 files changed, 329 insertions(+), 306 deletions(-) commit 7db8141571419db9b3c15f8c787e41b8311b3a77 Author: Davidlohr Bueso Date: Sun May 27 21:44:24 2012 +0200 fdisk: sun: use sector_t Signed-off-by: Davidlohr Bueso fdisk/fdisksunlabel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c9d7e0140f26bf5093b086bb365f36946bf38c49 Author: Davidlohr Bueso Date: Sun May 27 21:44:20 2012 +0200 fdisk: sgi: use sector_t Signed-off-by: Davidlohr Bueso fdisk/fdisksgilabel.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 24def09df4280f89dcc7efbf69c6922cb3c3329d Author: Davidlohr Bueso Date: Sun May 27 21:44:17 2012 +0200 fdisk: dos: use sector_t Signed-off-by: Davidlohr Bueso fdisk/fdiskdoslabel.c | 28 ++++++++++++---------------- fdisk/fdiskdoslabel.h | 6 +++--- 2 files changed, 15 insertions(+), 19 deletions(-) commit 50dec1ebff4324b7fe56e76a0dab7d8256285b35 Author: Davidlohr Bueso Date: Sun May 27 21:44:13 2012 +0200 fdisk: introduce sector_t type Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 38 ++++++++++++++++++-------------------- fdisk/fdisk.h | 24 +++++++++++++----------- 2 files changed, 31 insertions(+), 31 deletions(-) commit d8de0955301dc683d93fc56baa15293a112981a8 Author: Davidlohr Bueso Date: Sun May 27 21:44:07 2012 +0200 fdisk: remove useless comments Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 7737f698508a9ad3b6aa0ee7e02cbaa646e815b6 Author: Davidlohr Bueso Date: Sun May 27 21:44:04 2012 +0200 fdisk: use context as a parameter This program heavily uses global variables, which isn't very elegant and can lead to nasty bugs. Modify functions that use fdisk's context current features (descriptor and path), to receive the context as a parameter instead of globally. This includes DOS, SUN, SGI and BSD label code. Another benefit that comes with this is that as the API grows all the information regarding fdisk will be accessible from this structure so we can reduce even more global variables and simply code. This patch passed: - building - regression tests - local dos/sun/bsd partition changes Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 104 +++++++++++++++++++++++++------------------------ fdisk/fdisk.h | 30 +++++++------- fdisk/fdiskbsdlabel.c | 86 +++++++++++++++++++++-------------------- fdisk/fdiskbsdlabel.h | 8 ++-- fdisk/fdiskdoslabel.c | 18 ++++---- fdisk/fdiskdoslabel.h | 4 +- fdisk/fdisksgilabel.c | 14 +++--- fdisk/fdisksgilabel.h | 6 +- fdisk/fdisksunlabel.c | 10 ++-- fdisk/fdisksunlabel.h | 6 +- 10 files changed, 144 insertions(+), 142 deletions(-) commit 89fd812fcbcd8829294bb9b3cf83c723ae4c86bc Author: Davidlohr Bueso Date: Sun May 27 21:43:56 2012 +0200 fdisk: stop buffering welcome message Recently, commit 0a86755fe8af1da510d2eca43bdfcd70af098c19 directed the welcome message output from stderr to stdout breaking regression tests. Correct this by flushing stdout and stop buffering the output - a trivial function is created as well. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) commit d07dc5e4eebdd80c08be5ba941505c3603bca010 Author: Karel Zak Date: Tue Jun 5 17:38:09 2012 +0200 build-sys: suid su in make install Signed-off-by: Karel Zak login-utils/Makefile.am | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) commit 7d18972b008b4e2ea638cc8c1fa1392b48d0bee7 Author: Karel Zak Date: Tue Jun 5 16:59:54 2012 +0200 login: fix compiler warning [-Wsign-compare] Signed-off-by: Karel Zak login-utils/login.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit abb53be5cb53db9168a2fc5ff4f73aa240fcc290 Merge: 8ce7dfa 00388eb Author: Karel Zak Date: Tue Jun 5 16:57:01 2012 +0200 Merge branch '2012wk22' of git://github.com/kerolasa/lelux-utiliteetit * '2012wk22' of git://github.com/kerolasa/lelux-utiliteetit: docs: clean up getopt.1 manual docs: clean up dmesg.1 manual docs: clean up chcpu.8 manual fileutils: xmkstemp() interface change docs: fix all man page groff warnings tools: add checkmans.sh docs: clean up wdctl.8 manual docs: clean up login.1 manual login: allow TTYGROUP name begin by number build-sys: add su executable to .gitignore logindefs: change getlogindefs_num() to return unsigned long Conflicts: login-utils/su.c sys-utils/dmesg.1 commit 8ce7dfa341fa969ba08438f97b0d875dbb78d75d Author: Ludwig Nussel Date: Tue Jun 5 15:31:24 2012 +0200 su: preserve errno in cleanup_pam() Signed-off-by: Ludwig Nussel login-utils/su.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 90af3fe39bb843a237e599748db342d4a05482e9 Author: Karel Zak Date: Tue Jun 5 15:44:12 2012 +0200 inclide/env: innclude c.h, remove _() macro from xsetenv() Signed-off-by: Karel Zak include/env.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 5e7b834002aa0ce97a1b0104e8710664ad954595 Author: Dave Reisner Date: Sun Jun 3 12:25:47 2012 -0400 libmount: trim leading commas from each options string Fixes a bug in option string parsing wherein a line such as: ro,relatime,,nosuid,nodev Will be seen as only the tokens "ro" and "relatime" after the parser encounters a zero length (and erroneously declared NULL) option. Signed-off-by: Dave Reisner libmount/src/optstr.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 9d20b49607eca3bf625b37e6ae001bcfb7b04350 Author: Dave Reisner Date: Sat Jun 2 13:38:02 2012 -0400 build-sys: include correct source file for chsh Signed-off-by: Dave Reisner login-utils/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a9a8b2c4f42d9e8b76e06d29dfb6c9c8858d2be0 Author: Ludwig Nussel Date: Fri Jun 1 14:51:21 2012 +0200 su: use BSD err function instead of gnu's error() Signed-off-by: Ludwig Nussel login-utils/su.c | 38 +++++++++++++++++++------------------- 1 files changed, 19 insertions(+), 19 deletions(-) commit 1ecb6186c586750f9fcffe58bf784ca2743c246e Author: Ludwig Nussel Date: Fri Jun 1 14:51:20 2012 +0200 su: remove unused code Signed-off-by: Ludwig Nussel login-utils/su.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) commit e824086bbd2d7a4f989d55062e1245007efcde6f Author: Ludwig Nussel Date: Fri Jun 1 14:51:19 2012 +0200 su: replace PAM_BAIL_P macro with better solution Signed-off-by: Ludwig Nussel login-utils/su.c | 56 +++++++++++++++++++++++++++--------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) commit e557efdeddaf0496e846b5b1079ab8c91f56419b Author: Ludwig Nussel Date: Fri Jun 1 14:51:18 2012 +0200 su: introduce xsetenv globally Signed-off-by: Ludwig Nussel include/env.h | 7 +++++++ login-utils/su.c | 36 +++++++++++------------------------- 2 files changed, 18 insertions(+), 25 deletions(-) commit a711e67a44a9214f174c466a2345d329a077e111 Author: Ludwig Nussel Date: Fri Jun 1 14:51:17 2012 +0200 su: use ENV_PATH resp ENV_SUPATH to be consistent with login Signed-off-by: Ludwig Nussel login-utils/su.c | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) commit 07ffbaf2b0ce88bb385afc62a1a7f765390ccec5 Author: Ludwig Nussel Date: Fri Jun 1 14:51:16 2012 +0200 su: use EXIT_FAILURE consistently Signed-off-by: Ludwig Nussel login-utils/su.c | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) commit 8aa108ff4720eb38d45acae3ff2d08dc5d9ce2f7 Author: Ludwig Nussel Date: Fri Jun 1 14:51:15 2012 +0200 su: don't use custom MAX macro Signed-off-by: Ludwig Nussel login-utils/su.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) commit cbc729f030d329b13bf841456f5836caa9a1343f Author: Milan Broz Date: Fri Jun 1 13:34:08 2012 +0200 libblkid: add dm-verity hash device detection dm-verity can use separate device for hash verification, in this case there is a superblock in the first sector. See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/device-mapper/verity.txt for more info. Signed-off-by: Milan Broz libblkid/src/superblocks/lvm.c | 41 ++++++++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + 3 files changed, 43 insertions(+), 0 deletions(-) commit ab65d635c8bb11b9343e727f8e73e7d718322e1e Author: maximilian attems Date: Thu May 31 19:40:49 2012 +0200 lib/strutils: circumvent missing localeconv() Add stub too nls.h, include it instead of locale.h. Code in strutils handles already returned NULL. Signed-off-by: maximilian attems include/nls.h | 6 ++++++ lib/strutils.c | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) commit e7b976862abb7d664998abaf9d38c9a6a07714ae Merge: a862a45 2ab15cb Author: Karel Zak Date: Tue Jun 5 14:47:00 2012 +0200 Merge branch 'su.1' of https://github.com/kerolasa/lelux-utiliteetit * 'su.1' of https://github.com/kerolasa/lelux-utiliteetit: docs: rewrite su.1 manual docs: fix email macro in manual example docs: add su.1 manual page commit a862a452102e32c34a09ca5a45766624adc3115d Author: Karel Zak Date: Tue Jun 5 14:40:10 2012 +0200 dmesg: fix typo in man page Reported-by: Hemant Borole Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 871ffd0960085509d841847e7e52de9253cf1d1a Author: Bernhard Voelker Date: Tue May 29 19:06:50 2012 +0200 Fix typos in comments and wall's man page Culprits identified again by (newer) misspellings: $ git ls-files | misspellings -f - | grep -v '^po/' * wall: Fix typo in man page. * Fix typos in source code comments. Signed-off-by: Bernhard Voelker libmount/src/context_mount.c | 2 +- term-utils/setterm.c | 2 +- term-utils/wall.1 | 2 +- text-utils/more.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 3339f0daab3223fe58c00a26ba461ef00edf3f42 Author: Andreas Bießmann Date: Mon Jun 4 13:01:09 2012 +0200 text-utils/hexsyntax.c: fix for missing program_invocation_short_name Some libc do not expose program_invocation_short_name. Therefore util-linux comes with helpers in 'c.h'. Use the 'c.h' in hexsyntax.c where it was missed. This patch fixes following error for me: ---8<--- hexsyntax.c: In function 'newsyntax': hexsyntax.c:115: error: 'program_invocation_short_name' undeclared (first use in this function) hexsyntax.c:115: error: (Each undeclared identifier is reported only once hexsyntax.c:115: error: for each function it appears in.) --->8--- Signed-off-by: Andreas Bießmann text-utils/hexsyntax.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit eecbb2cfeebd01244f07c49f49028089052526f3 Author: Karel Zak Date: Tue Jun 5 14:19:13 2012 +0200 more: fix regex error messages printing Signed-off-by: Karel Zak text-utils/more.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 7f84e4440f8e9b930ec7b2bc5c13295b315fc168 Author: Jeremy Huntwork Date: Wed May 23 17:51:15 2012 -0400 more: remove a meaningless test regexec only returns 0 or REG_NOMATCH so remove a meaningless test Signed-off-by: Jeremy Huntwork Signed-off-by: Karel Zak text-utils/more.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 00388ebc7b8cbe4187ddcf1506679f47a5ac173a Author: Sami Kerola Date: Sat Jun 2 22:39:40 2012 +0200 docs: clean up getopt.1 manual * Add lightness to synopsis. * Add spaces after dots (English spacing). * Replace backticks by ticks. * Reformat text to be 70 characters wide. Signed-off-by: Sami Kerola getopt/getopt.1 | 472 +++++++++++++++++++++++++++---------------------------- 1 files changed, 228 insertions(+), 244 deletions(-) commit 8a78a4fe2ff3e5f750b4f149f5310b56a4193166 Author: Sami Kerola Date: Sat Jun 2 21:57:31 2012 +0200 docs: clean up dmesg.1 manual * Add lightness to synopsis. * Add few missing italic highlights to text segments which refer command line argument(s). * Turn off bold where ever possible (makes text unnecessarily heavy). * Add spaces after dots (English spacing). * Use URL and email macros where appropriate. Signed-off-by: Sami Kerola sys-utils/dmesg.1 | 154 +++++++++++++++++++++++++++++----------------------- 1 files changed, 86 insertions(+), 68 deletions(-) commit a6210872c5e76a3b5f86953db025eb7cb8a38c9f Author: Sami Kerola Date: Sat Jun 2 21:00:19 2012 +0200 docs: clean up chcpu.8 manual * Add lightness to synopsis. * Use argument and parameter highlights consistently. * Indent dispatch modes. * Add spaces after dots (English spacing). * Add line break macros. * Use URL and email macros where appropriate. Signed-off-by: Sami Kerola sys-utils/chcpu.8 | 95 +++++++++++++++++++++++++++++----------------------- 1 files changed, 53 insertions(+), 42 deletions(-) commit 3c4fed097ddb65dbe3d88f60caee78fb60756f3e Author: Dave Reisner Date: Sat Jun 2 19:31:30 2012 +0200 fileutils: xmkstemp() interface change We can not let the user control where TMPDIR is for this tempfile. This will be where we write the updated passwd file, and must be capable of being moved atomically with rename(2). Therefore, it cannot be on a different device, or setpwnam() and vipw/vigr programs will invariably fail with EXDEV. Signed-off-by: Dave Reisner Signed-off-by: Sami Kerola include/fileutils.h | 6 +++--- lib/fileutils.c | 12 +++++++++--- login-utils/setpwnam.c | 3 ++- login-utils/vipw.c | 3 ++- term-utils/wall.c | 2 +- 5 files changed, 17 insertions(+), 9 deletions(-) commit 79f8481889536822c4bd08f405ddfdc44d0d3cda Author: Sami Kerola Date: Sat Jun 2 14:50:52 2012 +0200 docs: fix all man page groff warnings Signed-off-by: Sami Kerola disk-utils/fsck.8 | 4 ++-- mount/mount.8 | 2 +- sys-utils/ipcmk.1 | 4 ++-- sys-utils/mount.8 | 2 +- sys-utils/setarch.8 | 8 ++++---- term-utils/mesg.1 | 2 +- term-utils/scriptreplay.1 | 12 ++++++------ 7 files changed, 17 insertions(+), 17 deletions(-) commit ea6c96fb0fbe15f108aad61b65d1e2887704b05a Author: Sami Kerola Date: Sat Jun 2 14:36:43 2012 +0200 tools: add checkmans.sh A script to find whether all manuals has proper groff syntax. Signed-off-by: Sami Kerola Makefile.am | 3 ++ tools/checkmans.sh | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 0 deletions(-) commit 2002f9c4c3e3c0584a358d450c66008b8fed200b Author: Sami Kerola Date: Sat Jun 2 13:48:56 2012 +0200 docs: clean up wdctl.8 manual Align with Documentation/howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/wdctl.8 | 67 +++++++++++++++++++++++++++++----------------------- 1 files changed, 37 insertions(+), 30 deletions(-) commit 39c877f1a5ae0e062e6e8cc042bf4f9e512be081 Author: Sami Kerola Date: Sat Jun 2 13:20:36 2012 +0200 docs: clean up login.1 manual PATH contents for users & root in DESCRIPTION section where wrong, and couple default values where missing. Rest of the change is about making the groff, and the output, to look good. Signed-off-by: Sami Kerola login-utils/login.1 | 276 +++++++++++++++++++++++++++++++-------------------- 1 files changed, 170 insertions(+), 106 deletions(-) commit 10b3219a5f457a8db11c55336f31d2ef714f7bf6 Author: Sami Kerola Date: Sat Jun 2 12:11:25 2012 +0200 login: allow TTYGROUP name begin by number Assuming someone is using a TTYGROUP name beginnign by a digit the login was misbehaving with 'contains invalid numerical value: %s' message(s) in syslog. Please notice that group names that consist only digits as characters are valid (but likely to cause confusion, and chaos). Signed-off-by: Sami Kerola login-utils/login.c | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) commit efa0f39c6eb80b24eb8f854b50e5617dffeda7a0 Author: Sami Kerola Date: Sat Jun 2 12:00:48 2012 +0200 build-sys: add su executable to .gitignore Signed-off-by: Sami Kerola login-utils/.gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c9baf5da866ed47fe1a1ba744d80954fa920fa1b Author: Sami Kerola Date: Sat Jun 2 11:57:42 2012 +0200 logindefs: change getlogindefs_num() to return unsigned long Where ever getlogindefs_num() is called return value is always expected to be unsigned, such as sleep() input, gid_t or mode_t. Signed-off-by: Sami Kerola login-utils/login.c | 17 +++++++++-------- login-utils/logindefs.c | 6 +++--- login-utils/logindefs.h | 2 +- login-utils/su.c | 2 +- 4 files changed, 14 insertions(+), 13 deletions(-) commit 2ab15cb0c3b6fe81697713ce6dc56b85e44a00fe Author: Ludwig Nussel Date: Sat Jun 2 07:10:12 2012 +0200 docs: rewrite su.1 manual Converting coreutils info page to manual did not result as good manual pages as writing almost completely new. Ludwig wrote the text, Sami cleaned up groff syntax. Reference: http://www.spinics.net/lists/util-linux-ng/msg06321.html Signed-off-by: Ludwig Nussel Signed-off-by: Sami Kerola login-utils/su.1 | 301 +++++++++++++++++++++++++++++++++--------------------- 1 files changed, 184 insertions(+), 117 deletions(-) commit 8a69abf0de6a343c1af710df57c28090bf66fb24 Author: Sami Kerola Date: Wed May 30 19:49:37 2012 +0200 docs: fix email macro in manual example URL macro is not email address macro. Signed-off-by: Sami Kerola Documentation/howto-man-page.txt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 8d5816405094a4506f62b84dabdf9e0ecc686bd9 Author: Sami Kerola Date: Wed May 30 19:44:45 2012 +0200 docs: add su.1 manual page The manual page is almost one to one copy with GNU Coreutils 'su invocation' info page. This manual also includes few examples, fix to return values, hint about PAM configuration file, authors and see also sections. Signed-off-by: Sami Kerola login-utils/su.1 | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 155 insertions(+), 0 deletions(-) commit 71681ee5ecd24ac19747dc692f2350a212e448e9 Author: Karel Zak Date: Tue May 29 15:24:04 2012 +0200 build-sys: move configure login options to one place Signed-off-by: Karel Zak configure.ac | 57 +++++++++++++++++++++++++++------------------------------ 1 files changed, 27 insertions(+), 30 deletions(-) commit cc76731e7da26a48c306336a1d142d44186c2a26 Author: Karel Zak Date: Tue May 29 15:20:44 2012 +0200 build-sys: add --enable-vipw Signed-off-by: Karel Zak configure.ac | 13 ++++++------- login-utils/Makefile.am | 15 ++++----------- 2 files changed, 10 insertions(+), 18 deletions(-) commit aec9ecbd6c0e34739d61d23bb4c47f3f080d8de1 Author: Karel Zak Date: Tue May 29 15:15:38 2012 +0200 build-sys: add --enable-newgrp Signed-off-by: Karel Zak configure.ac | 11 ++++++++++- login-utils/Makefile.am | 23 +++++++++++------------ 2 files changed, 21 insertions(+), 13 deletions(-) commit ff4c5555d0c9e15d182bbf0cc738f5242b166024 Author: Karel Zak Date: Tue May 29 14:54:06 2012 +0200 build-sys: add --disable-su Signed-off-by: Karel Zak configure.ac | 9 +++++++++ login-utils/Makefile.am | 28 ++++++++++++---------------- 2 files changed, 21 insertions(+), 16 deletions(-) commit 2c8a3e168a5c24088c0efbe73f6452ad85923335 Author: Karel Zak Date: Tue May 29 14:41:01 2012 +0200 build-sys: add --enable-chfn-chsh Signed-off-by: Karel Zak configure.ac | 12 ++++++++- login-utils/Makefile.am | 60 ++++++++++++++++++++++++++-------------------- 2 files changed, 45 insertions(+), 27 deletions(-) commit e7614a0780cd0591eca30116563461a18cb7ba49 Author: Karel Zak Date: Tue May 29 14:14:38 2012 +0200 build-sys: add --disable-login ... to implement fine-grained control on what is built from login-utils. Signed-off-by: Karel Zak configure.ac | 26 +++++++++++++++++--------- login-utils/Makefile.am | 34 ++++++++++++++++++++-------------- 2 files changed, 37 insertions(+), 23 deletions(-) commit 7149efa8a483cdaffd95a83dfeaef253a41a7118 Author: Karel Zak Date: Tue May 29 12:53:46 2012 +0200 su: remove program_name Signed-off-by: Karel Zak login-utils/su.c | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-) commit 5aaf51f2fcbf0a7bad6f80697379b06f833385ba Author: Karel Zak Date: Tue May 29 11:01:23 2012 +0200 su: fix compiler warning [-Wunused-parameter] Signed-off-by: Karel Zak login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e254d0914486122a9949f3f7dfe758eb24360472 Author: Karel Zak Date: Tue May 29 10:51:29 2012 +0200 build-sys: remove -DUSE_PAM=1 for su(1) Signed-off-by: Karel Zak login-utils/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b5b8805f691a8b7e5349e1d6f91267af1aef3259 Author: Thomas Schwinge Date: Fri May 25 20:41:01 2012 +0200 su: Mention SUID_* feature. Signed-off-by: Thomas Schwinge Documentation/howto-compilation.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0885112c961e02a93cc51202940599833530fe63 Author: Thomas Schwinge Date: Fri May 25 20:41:00 2012 +0200 su: Add AM_LDFLAGS to su_LDFLAGS. Signed-off-by: Thomas Schwinge login-utils/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4ddf2dcc8c8f44f119ff756cf9703e46da2cd295 Author: Thomas Schwinge Date: Tue May 29 10:49:01 2012 +0200 su: Don't include the unused Signed-off-by: Thomas Schwinge Signed-off-by: Karel Zak login-utils/su.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 8610225d5833a89995e26f2e9157c779a5a6f0c8 Merge: 9766962 9c44ac5 Author: Karel Zak Date: Tue May 29 10:43:56 2012 +0200 Merge branch 'su-v1' of https://github.com/lnussel/util-linux * 'su-v1' of https://github.com/lnussel/util-linux: (105 commits) use existing logindefs.c and pathnames.h syslog always remove non pam code make su build as part of util-linux call setsid() when called with -c make sure /sbin resp /usr/sbin are in PATH honor settings in /etc/default/su resp /etc/login.defs set sane default path log all su attempts pam support for su Help translators include translation team's web or email address. * src/system.h (emit_bug_reporting_address): New function. * src/base64.c: Use it rather than a literal printf. * src/basename.c, src/cat.c, src/chgrp.c, src/chmod.c: * src/chown.c, src/chroot.c, src/cksum.c, src/comm.c, src/cp.c: * src/csplit.c, src/cut.c, src/date.c, src/dd.c, src/df.c: * src/dircolors.c, src/dirname.c, src/du.c, src/echo.c, src/env.c: * src/expand.c, src/expr.c, src/factor.c, src/fmt.c, src/fold.c: * src/head.c, src/hostid.c, src/hostname.c, src/id.c, src/install.c: * src/join.c, src/kill.c, src/link.c, src/ln.c, src/logname.c: * src/ls.c, src/md5sum.c, src/mkdir.c, src/mkfifo.c, src/mknod.c: * src/mv.c, src/nice.c, src/nl.c, src/nohup.c, src/od.c: * src/paste.c, src/pathchk.c, src/pinky.c, src/pr.c, src/printenv.c: * src/printf.c, src/ptx.c, src/pwd.c, src/readlink.c, src/rm.c: * src/rmdir.c, src/seq.c, src/setuidgid.c, src/shred.c, src/shuf.c: * src/sleep.c, src/sort.c, src/split.c, src/stat.c, src/stty.c: * src/su.c, src/sum.c, src/sync.c, src/system.h, src/tac.c: * src/tail.c, src/tee.c, src/test.c, src/touch.c, src/tr.c: * src/true.c, src/tsort.c, src/tty.c, src/uname.c, src/unexpand.c: * src/uniq.c, src/unlink.c, src/uptime.c, src/users.c, src/wc.c: * src/who.c, src/whoami.c, src/yes.c: Likewise. Don't include dirname.h, since system.h does it now. Add a bootstrap procedure, so that the CVS version contains fewer files and we bootstrap the rest from gnulib, gettext, etc. * README-cvs: New file. * bootstrap: New file. * bootstrap.conf: New file. * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po. * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit of gnulib-tool. (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL): (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib. (gl_EARLY): Add. (gl_MACROS): Call just after gl_EARLY, just for clarity. * src/c99-to-c98.diff: Remove patch to ls.c; no longer needed. * src/kill.c (strtoimax): Remove decl. * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves. * src/wc.c: Likewise. * src/ls.c (sort_files): Rewrite to avoid need for C99-style declaration, so that we don't need to patch this file. * src/printf.c (strtoimax, strtoumax): Remove decls. * src/su.c: Include getpass.h. (getpass): remove. * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h. Include inttypes.h unconditionally; remove decls it handles. * lib/Makefile.am: include gnulib.mk, so that we can remove most of this file. (AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done for us. (noinst_LIBRARIES, LDDADD, DEFS): Remove. (libcoreutils_a_SOURCES): Trim down greatly, just to the files that aren't in gnulib. Remove defns gnulib does for us. * m4/check-decl.m4 (gl_CHECK_DECLS): Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h, time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin, getuid, lseek, malloc, memchr, realloc. Don't check for getutent, memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul, strtoull. (_gl_DECL_HEADERS): Remove; all uses removed. * m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac for the benefit of gnulib-tool. Call gl_INIT. Do not call or require macros that gnulib will handle for us. Don't check for fchmod, hasmntopt, isascii, lchown, listmntent, mempcpy, realpath, wcrtomb, tzset. (gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h, sys/mount.h. (gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT. Don't check for struct stat.st_blksize. Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T, gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T, gl_AC_TYPE_UNSIGNED_LONG_LONG. * m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO. Don't require macros that gnulib does for us. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h. Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H. * src/su.c (usage): Correct typo in --help output: s/commmand/command/ Reported by Tim Waugh. Also remove the comment duplicating much of --help output. (log_su, run_shell): Use new last_component, in place of base_name. Remove unnecessary parens in `#if defined (SYMBOL)' expressions. Update FSF postal mail address. Update FSF postal mail address. (run_shell): Pass a new n_additional_args arg, so that the callee doesn't have to count 'em. All callers changed. Don't allocate more space for the arg vector than we'll need. Use memcpy to copy the args rather than rolling our own loop. Use size_t for sizes. (fast_startup, simulate_login, change_environment, log_su, correct_password, restricted_shell, main): Use bool for booleans. (longopts): Don't assume change_environment is an int. Use NULL, not 0, for pointers. (xsetenv): New function, replacing xputenv and concat. All callers changed. (elements): Remove; no longer needed. (log_su, correct_passwd, main): Prefer !x to x==NULL. (log_su): 2 -> STDERR_FILENO. (modify_environment, main): Don't assume that getenv's returned value has an indefinite lifetime. (modify_environment): Allocate a larger environ. (main): Remove an impossible 'case 0'; if it happens now, it'll get diagnosed. Don't assume getpwnam results outlive endpwent. Check for null or empty pw_name, pw_dir and for null pw_passwd. (correct_password, restricted_shell, main): Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'. ... commit 9766962478a3956e4cde61ce0b85aee94ed3b637 Author: Thomas Schwinge Date: Fri May 25 20:16:18 2012 +0200 setsid: Include instead of . Signed-off-by: Thomas Schwinge sys-utils/setsid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4658cfd492e565de8e5310ab7c09ee000184f64f Author: Thomas Schwinge Date: Fri May 25 20:16:17 2012 +0200 write: Don't explicitly include . It doesn't exist on some systems, but will come in via on the others. Signed-off-by: Thomas Schwinge term-utils/write.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit e78a7ecd4fb4d52d041ce3380638347124d6694c Author: Thomas Schwinge Date: Fri May 25 20:16:16 2012 +0200 write: Use PATH_MAX instead of MAXPATHLEN, as elsewhere. Signed-off-by: Thomas Schwinge term-utils/write.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit cd8c4d033bc1a7424aab61a377a128160aa0ffb3 Author: Thomas Schwinge Date: Fri May 25 20:16:15 2012 +0200 login: Include only if it exists. It isn't required on non-Linux systems. Signed-off-by: Thomas Schwinge login-utils/login.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 3a9c3f3fb757dd04b8ac44c575c65dda6bae054b Author: Karel Zak Date: Tue May 29 10:08:25 2012 +0200 include/c: move fallback for MAXHOSTNAMELEN to c.h Reported-by: Thomas Schwinge Signed-off-by: Karel Zak include/c.h | 11 +++++++++++ term-utils/agetty.c | 8 -------- term-utils/wall.c | 8 -------- 3 files changed, 11 insertions(+), 16 deletions(-) commit 283d626b367c730e1338a43500f85deb7c3afb26 Author: Dave Reisner Date: Mon May 28 14:02:59 2012 -0400 logger: use memcpy instead of bcopy bcopy is marked legacy in POSIX.1-2001 and should not be used. Signed-off-by: Dave Reisner misc-utils/logger.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 577900465831235bd402e697b89443b6cbd69428 Author: Thomas Schwinge Date: Fri May 25 20:16:13 2012 +0200 arch, eject, elvtune: Gracefully disable on non-Linux platforms. Signed-off-by: Thomas Schwinge configure.ac | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit c4ecde8144deca148efb62eda774f810f02d1830 Author: Thomas Schwinge Date: Fri May 25 20:16:12 2012 +0200 kill, raw, rename: Don't explicitly enable for --enable-most-builds. They're already dealt with in the default configuration. Signed-off-by: Thomas Schwinge configure.ac | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 7e36b0b47b4810347c36cc2f83b0893de607589b Author: Thomas Schwinge Date: Fri May 25 20:13:41 2012 +0200 lib/pager: repair build for non-Linux. Signed-off-by: Thomas Schwinge lib/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 626e877354ef7cd5211be30dfb2ab61efbdf2aba Author: Thomas Schwinge Date: Fri May 25 20:11:22 2012 +0200 kill: Check the correct variable when configuring. Signed-off-by: Thomas Schwinge configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 82054b1d99a982fd0d447d5f2cda6bd9b6ef429f Author: Dave Reisner Date: Wed May 23 16:36:00 2012 -0400 logger: mark decode/pencode as static Move these functions to the top of the file where they can be marked static and the prototypes can be removed. Signed-off-by: Dave Reisner misc-utils/logger.c | 84 ++++++++++++++++++++++---------------------------- 1 files changed, 37 insertions(+), 47 deletions(-) commit 652add4c2cdd005fea8b5a5c198d31ecba5754ce Author: Dave Reisner Date: Wed May 23 16:35:58 2012 -0400 logger: avoid explicit fclose(stdout) This is done for us via an atexit hook since c05a80ca6385b8. Avoids a useless 'Write error' on exit whenever invoking the tool. Signed-off-by: Dave Reisner misc-utils/logger.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit b0d3657def61d62746257b825ea333beec64f1ce Author: Karel Zak Date: Mon May 28 19:54:16 2012 +0200 mount: (new) fix MS_REC usage # mount -R /mnt/test /mnt/test mount: propagation flags (--make-* or --bind options) are mutually exclusive Reported-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 72297be6c70cb0f8ea9c1d89e2f7bcceeda9fd92 Author: Karel Zak Date: Mon May 28 13:44:55 2012 +0200 tests: add losetup/mount encryption test Signed-off-by: Karel Zak tests/expected/mount/encryption | 1 + tests/ts/mount/encryption | 64 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 0 deletions(-) commit 61f5ff6cb4e094b77279b7d52be0d7cc3bb13f72 Author: Karel Zak Date: Mon May 28 12:49:55 2012 +0200 libmount: add MNT_ERR_MOUNTOPT Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 8 ++++++-- libmount/src/context_mount.c | 3 +++ libmount/src/libmount.h.in | 1 + libmount/src/utils.c | 2 ++ sys-utils/mount.c | 6 ++++++ 5 files changed, 18 insertions(+), 2 deletions(-) commit 10389b1e4535dda7d27e5ab39d3d4f9d7868a5c9 Author: Karel Zak Date: Mon May 28 12:26:41 2012 +0200 mount: (new) add loopdev specific error message Signed-off-by: Karel Zak sys-utils/mount.c | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) commit 82756a747e4bcfc13a27b7618d889af080649584 Author: Karel Zak Date: Mon May 28 12:26:36 2012 +0200 libmount: add MNT_ERR_LOOPDEV Signed-off-by: Karel Zak lib/loopdev.c | 4 ++++ libmount/src/context_loopdev.c | 1 + libmount/src/libmount.h.in | 1 + 3 files changed, 6 insertions(+), 0 deletions(-) commit 3fc480b952aa925710f9f869add09563e2c47787 Author: Karel Zak Date: Mon May 28 11:37:36 2012 +0200 mount: (old) fix encryption= usage Addresses: https://github.com/karelzak/util-linux/issues/12 Signed-off-by: Karel Zak mount/Makefile.am | 1 + mount/mount.c | 30 +++++++++++++++++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) commit cda4f8f10b174a6417443730af160ba484f6fcb2 Author: Karel Zak Date: Mon May 28 11:36:59 2012 +0200 losetup: more verbose failed setup error mesage Signed-off-by: Karel Zak sys-utils/losetup.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 9c44ac503f0d18348518f195b36c4ea83ab0ca76 Author: Ludwig Nussel Date: Fri May 25 10:54:23 2012 +0200 use existing logindefs.c and pathnames.h I'm not sure having /usr/local in _PATH_DEFPATH_ROOT and even putting it in front is such a good idea though. /usr/local might be on NFS so could prevent root from logging in if the network is down. login-utils/Makefile.am | 4 +- login-utils/getdef.c | 259 ----------------------------------------------- login-utils/getdef.h | 29 ----- login-utils/logindefs.c | 16 +++- login-utils/logindefs.h | 2 + login-utils/su.c | 33 ++++--- 6 files changed, 35 insertions(+), 308 deletions(-) commit f29fc7e0bb5aa38f45188560ed36ed4ad69d46e4 Author: Ludwig Nussel Date: Fri May 25 10:21:09 2012 +0200 syslog always login-utils/su.c | 33 ++++----------------------------- 1 files changed, 4 insertions(+), 29 deletions(-) commit c92880ef39659d0d8b7d7192ea70b9566a58a94a Author: Ludwig Nussel Date: Fri May 25 10:20:57 2012 +0200 remove non pam code login-utils/su.c | 135 ++++++++---------------------------------------------- 1 files changed, 20 insertions(+), 115 deletions(-) commit ff6b15d645dde03e550b91afd60e5828d775d897 Author: Ludwig Nussel Date: Wed Feb 15 17:28:28 2012 +0100 make su build as part of util-linux login-utils/Makefile.am | 13 +++++++- login-utils/su.c | 75 ++++++++++++++++++++++++---------------------- 2 files changed, 50 insertions(+), 38 deletions(-) commit c6a1746b5f5247b2fccaf5c7f68da3852a02e4fc Author: Tim Waugh Date: Fri Jun 10 14:13:59 2011 +0200 call setsid() when called with -c Prevents command injection via TIOCSTI https://bugzilla.redhat.com/show_bug.cgi?id=173008 login-utils/su.c | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) commit a6fdd3f8125be23930d955c2bc6b7a46cdaf8a12 Author: Werner Fink Date: Tue Aug 17 09:09:55 2010 +0200 make sure /sbin resp /usr/sbin are in PATH login-utils/su.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 127 insertions(+), 0 deletions(-) commit 589554ad7a8827ffa59b50591f2c18a49fc270a7 Author: Ludwig Nussel Date: Mon Aug 9 16:03:12 2010 +0200 honor settings in /etc/default/su resp /etc/login.defs login-utils/getdef.c | 259 ++++++++++++++++++++++++++++++++++++++++++++++++++ login-utils/getdef.h | 29 ++++++ login-utils/su.c | 31 ++++-- 3 files changed, 308 insertions(+), 11 deletions(-) commit a9980c85c9a33611ba3b6d04e3d754bef4c792a3 Author: Ludwig Nussel Date: Mon Aug 9 16:02:30 2010 +0200 set sane default path login-utils/su.c | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) commit b14d022fd02df8b92a9a0e071d5252f9f988e053 Author: Ludwig Nussel Date: Tue Aug 17 13:22:01 2010 +0200 log all su attempts login-utils/su.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 8171142ab66e94a409224547b33381259a0c3f72 Author: Ludwig Nussel Date: Tue Aug 17 13:21:44 2010 +0200 pam support for su login-utils/su.c | 270 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 264 insertions(+), 6 deletions(-) commit d6586bfc89bb9d2bdb7633008962c85887f2a189 Merge: 0a86755 ce5f2f2 Author: Ludwig Nussel Date: Thu May 24 13:50:10 2012 +0200 merge coreutils' last GPL2 version of su.c commit c1ec42cfc9c5303303f58a6d6025a798278a8911 Author: Karel Zak Date: Thu May 24 13:33:38 2012 +0200 tests: add UFS uuids to results Signed-off-by: Karel Zak tests/expected/blkid/low-probe-ufs | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 0a86755fe8af1da510d2eca43bdfcd70af098c19 Author: Karel Zak Date: Wed May 23 11:26:42 2012 +0200 fdisk: don't print welcome message to stderr Signed-off-by: Karel Zak fdisk/fdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7657d3e217edd89f220fef4008aafd4a7a970193 Author: Karel Zak Date: Wed May 23 11:24:04 2012 +0200 fdisk: add readonly option to fdisk_new_context_from_filename() Signed-off-by: Karel Zak fdisk/fdisk.c | 5 +++-- fdisk/fdisk.h | 3 ++- fdisk/utils.c | 11 ++++++++--- 3 files changed, 13 insertions(+), 6 deletions(-) commit 70696820f8e6300c3a857731362aee28e5d4cfad Author: Karel Zak Date: Wed May 23 11:09:49 2012 +0200 fdisk: always use stderr for debug messages * add dbgprint() to provide standardized debug output * print initial debug message to stderr Signed-off-by: Karel Zak fdisk/fdisk.h | 10 ++++++++++ fdisk/utils.c | 2 +- 2 files changed, 11 insertions(+), 1 deletions(-) commit dffdc98958c40d1b29b626065bb42c2bc84cb228 Author: Karel Zak Date: Wed May 23 11:05:37 2012 +0200 libmount: use stderr for initial debug message Signed-off-by: Karel Zak libmount/src/init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f7b1f75e68362071fd3f344fe13d1356f2047a6f Author: Davidlohr Bueso Date: Mon May 21 22:32:25 2012 +0200 fdisk: add debug support Based on libmnt, this patch adds basic debugging support for fdisk. Currently only CONTEXT is debugged, yet keeps exact functionality as libmnt/libblkid. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 ++ fdisk/fdisk.h | 27 +++++++++++++++++++++++++++ fdisk/utils.c | 33 ++++++++++++++++++++++++++++++++- 3 files changed, 61 insertions(+), 1 deletions(-) commit 823f0fd107415ced8edde12306b9134058aafdc0 Author: Davidlohr Bueso Date: Mon May 21 22:28:03 2012 +0200 fdisk: introduce fdisk context This is the first patch that adds the initial parts of the new fdisk internal API. Two functions are created to both init and deinit the fdisk context. Only the device's descriptor and path are added as a start and these are replaced throughout fdisk.c and label specific code. All logic that opens the file does it with fdisk_new_context_from_filename(), and this enforces always opening the device with rw, then, if unsuccesfull, with read-only. This changes the current logic that opens the device with certain permissions depending on the user given options. For example, -l opens the device read-only. This patch passed regression tests and local modifications for sgi/dos/sun disk labels. Signed-off-by: Davidlohr Bueso fdisk/Makefile.am | 1 + fdisk/fdisk.c | 82 ++++++++++++++++++++++-------------------------- fdisk/fdisk.h | 9 +++++ fdisk/fdiskbsdlabel.c | 44 +++++++++++++------------- fdisk/fdiskdoslabel.c | 6 ++-- fdisk/fdisksgilabel.c | 24 +++++++------- fdisk/fdisksunlabel.c | 18 +++++----- fdisk/utils.c | 76 +++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 170 insertions(+), 90 deletions(-) commit 6da365de2db02344f8d2633dfdab256d86e4be4c Author: Davidlohr Bueso Date: Mon May 21 21:23:27 2012 +0200 fdisk: refactor -s option Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 41 ++++++++++++++++++++++------------------- 1 files changed, 22 insertions(+), 19 deletions(-) commit 37eadc17965526ef56f378573a12bd2f6c76e9f3 Author: Davidlohr Bueso Date: Sun May 20 18:11:33 2012 +0200 fdisk: use BSD label header Move bsd specific function definitions into its own header file and include it in fdisk code. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 1 + fdisk/fdisk.h | 6 ------ fdisk/fdiskbsdlabel.h | 5 +++++ 3 files changed, 6 insertions(+), 6 deletions(-) commit e11447670a477fc0a34e401ecf208fd5a3b07bb4 Author: Davidlohr Bueso Date: Sun May 20 18:11:26 2012 +0200 fdisk: remove bogus statement usage() does not return, also move the help option handling to the bottom of the switch. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) commit 365f01fcdf1c8bd8b4d096ab20c6259e69a9a749 Author: Davidlohr Bueso Date: Sun May 20 18:11:21 2012 +0200 fdisk: add an quit/exit handling function Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) commit adddfd37a1def627b02c5a596f77e44afc35e567 Author: maximilian attems Date: Tue May 22 16:33:23 2012 +0200 misc-utils: cleanup unused strings.h includes Noticed on klibc building. Signed-off-by: maximilian attems misc-utils/kill.c | 1 - misc-utils/logger.c | 1 - misc-utils/namei.c | 1 - 3 files changed, 0 insertions(+), 3 deletions(-) commit ae278c88cf2fcfd4bd34fcf2c96d9b8a5b4dec29 Author: maximilian attems Date: Tue May 22 16:20:42 2012 +0200 include: [c.h] protect container_of fixes lots of warning noise: ../../../include/c.h:112:0: warning: "container_of" redefined [enabled by default] /usr/lib/klibc/include/stddef.h:52:0: note: this is the location of the previous definition Signed-off-by: maximilian attems include/c.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit b6b0ea094b7cbc4b6e9efa81c8ea01a2dd656317 Author: Karel Zak Date: Wed May 23 10:20:19 2012 +0200 hexdump: fix comparison of distinct pointer types display.c: In function ‘get’: display.c:262:117: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Karel Zak text-utils/display.c | 3 +-- text-utils/hexdump.c | 2 +- text-utils/hexdump.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) commit 69c9e8387b90025d1f75356f5e2369d0262ee603 Author: Karel Zak Date: Wed May 23 10:07:57 2012 +0200 last: use min() from c.h Signed-off-by: Karel Zak login-utils/last.c | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) commit 7383ebceecada9daa57358b903ca5d300a2748a2 Author: Dave Reisner Date: Sun May 20 12:57:27 2012 -0400 libmount: Use binary search to compare pseudofs It's the responsibility of anyone adding to this list in the future to ensure that the list remains sorted. While we're at it, expand this list of known pseudofs types. Signed-off-by: Dave Reisner libmount/src/utils.c | 69 +++++++++++++++++++++++++++++++------------------ 1 files changed, 44 insertions(+), 25 deletions(-) commit b8a670aecf21645869f2d9c72469607462829fc8 Author: Dave Reisner Date: Sat May 19 20:39:20 2012 -0400 findmnt: fallback to mountinfo for polling If no tabfiles are specified, default to watching /proc/self/mountinfo rather than exiting silently with EXIT_FAILURE. Signed-off-by: Dave Reisner misc-utils/findmnt.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit beda9dd309ab42d122df13db50990bcf5fde5dda Author: Dave Reisner Date: Sat May 19 20:39:19 2012 -0400 findmnt: reference correct manual section Signed-off-by: Dave Reisner misc-utils/findmnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 96ce175801e0f48b914df90d9e707e9cf09e8443 Author: Petr Uzel Date: Thu May 17 09:41:09 2012 +0200 libuuid: use max() from c.h Signed-off-by: Petr Uzel libuuid/src/gen_uuid.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 3bbef0769e6bb86cf473ae0cb3635ed760b0032f Author: Petr Uzel Date: Thu May 17 09:41:08 2012 +0200 text-utils: use min() from c.h Signed-off-by: Petr Uzel text-utils/display.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) commit f9f19b8f7f75a93705c64fc438790255c8408284 Author: Petr Uzel Date: Thu May 17 09:41:07 2012 +0200 mkfs.cramfs: remove unused 'MIN' macro definition Signed-off-by: Petr Uzel disk-utils/mkfs.cramfs.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 078ad9bf06568b38767ac2049371e628373c0ef8 Author: Petr Uzel Date: Thu May 17 09:37:25 2012 +0200 blkid: stop device probing if error is detected blkid -p dev1 dev2 [...] now stops upon first error detected and returns correct value. Previously, if error was detected with dev1, it continued with dev2 anyways and so the return value corresponded to the last device only. Reported-by: Bernhard Voelker Signed-off-by: Petr Uzel misc-utils/blkid.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 1578ddd658fd2047de601eb8b41f133685c5f366 Author: Petr Uzel Date: Wed May 16 10:38:32 2012 +0200 blkid: introduce symbolic names for different blkid exit codes Signed-off-by: Petr Uzel misc-utils/blkid.c | 32 ++++++++++++++++++-------------- 1 files changed, 18 insertions(+), 14 deletions(-) commit a922091df8bc14bf95096837259fa82b10c9ce84 Author: Petr Uzel Date: Wed May 16 10:38:31 2012 +0200 blkid: use symbolic exit code Signed-off-by: Petr Uzel misc-utils/blkid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 495b13983ee9a4d2a695d9c8be4dea602162ec9a Merge: 9561d1a 596007e Author: Karel Zak Date: Wed May 23 09:39:40 2012 +0200 Merge branch 'master' of https://github.com/jhuntwork/util-linux commit 9561d1afeaf76488f9f216ed6519af58adb5663e Author: Karel Zak Date: Tue May 22 13:31:46 2012 +0200 wdctl: add --oneline * remove --pairs, it was usable for flags table only * one line for each watchdog device For example: # wdctl --noident --noflags --oneline /dev/watchdog: TIMEOUT="30" TIMELEFT="2" Signed-off-by: Karel Zak sys-utils/wdctl.8 | 4 +- sys-utils/wdctl.c | 70 +++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 62 insertions(+), 12 deletions(-) commit b776c15e8a778d0123484b56eab5d5ae06f02f71 Author: Karel Zak Date: Tue May 22 13:27:46 2012 +0200 lib/tt: export tt_fputs_{quoted,nonblank} function Signed-off-by: Karel Zak include/tt.h | 3 +++ lib/tt.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) commit f56338b4397325a212e6d94bba59a4e5c6c5e78f Author: Karel Zak Date: Tue May 22 11:39:26 2012 +0200 wdctl: allow to specify more than one device * remove -d option * support wdctl [options] [ ...] usage Signed-off-by: Karel Zak sys-utils/wdctl.8 | 12 ++++---- sys-utils/wdctl.c | 82 +++++++++++++++++++++++++++++------------------------ 2 files changed, 51 insertions(+), 43 deletions(-) commit d4cba553f9c03ab68edb7f8e8a536578b5170c94 Author: Karel Zak Date: Mon May 21 09:58:42 2012 +0200 login: fix segmentation fault in log_utmp ctx->tty_number is optional... Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=822705 Signed-off-by: Karel Zak login-utils/login.c | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) commit 96747e7594508262a268ae28d1240f548555db41 Author: Karel Zak Date: Fri May 18 15:08:31 2012 +0200 wdctl: add --flags-only and optional column DEVICE Signed-off-by: Karel Zak sys-utils/wdctl.8 | 2 ++ sys-utils/wdctl.c | 21 +++++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) commit 28094b1e3c4b16d8a16dc78043b8887fdc99bd8a Author: Karel Zak Date: Fri May 18 12:01:10 2012 +0200 eject: allow to address device by LABEL/UUID Signed-off-by: Karel Zak sys-utils/eject.1 | 4 +++- sys-utils/eject.c | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) commit fa705b5441bdb93c36702f7db6c54ec1133bd1cc Author: Karel Zak Date: Thu May 17 12:10:43 2012 +0200 libmount: don't canonicalize target Note that mountpoint (target_ paths in /proc/mounts and /proc/self/mountinfo are always canonicalized by kernel. * for umount we don't have to canonicalize target by default if the mountpoint is found in /proc/self/mountinfo * in mnt_table_find_target() is unnecessary to canonicalize target paths if the table of the filesystems is read from /proc/self/mountinfo Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=820707 Signed-off-by: Karel Zak libmount/src/context_umount.c | 2 -- libmount/src/fs.c | 5 +++-- libmount/src/tab.c | 11 ++++++++--- 3 files changed, 11 insertions(+), 7 deletions(-) commit 3b56eea7c99589bd6b80576de9ce185fee5cd7d2 Author: Karel Zak Date: Tue May 15 17:46:20 2012 +0200 text-utils: cleanup strtoxx_or_err() Signed-off-by: Karel Zak text-utils/col.c | 11 ++++------- text-utils/column.c | 24 +++++++----------------- 2 files changed, 11 insertions(+), 24 deletions(-) commit b43d3a3a2ccfd6993ef030c27db1de0fc201ff55 Author: Karel Zak Date: Tue May 15 17:46:05 2012 +0200 term-utils: cleanup strtoxx_or_err() Signed-off-by: Karel Zak term-utils/wall.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 20a399822282522aee8a390bb1a8d85166dd1ea1 Author: Karel Zak Date: Tue May 15 17:45:17 2012 +0200 sys-utils: cleanup strtoxx_or_err() Signed-off-by: Karel Zak sys-utils/cytune.c | 15 +++++---------- sys-utils/dmesg.c | 3 +-- sys-utils/ipcmk.c | 4 ++-- sys-utils/ipcrm.c | 6 +++--- sys-utils/ldattach.c | 6 +++--- sys-utils/losetup.c | 2 +- sys-utils/mount.c | 2 +- sys-utils/prlimit.c | 2 +- sys-utils/rtcwake.c | 6 ++---- 9 files changed, 19 insertions(+), 27 deletions(-) commit 630ed89d5adc4868106fbc9608c1f822b881e191 Author: Karel Zak Date: Tue May 15 17:45:05 2012 +0200 schedutils: cleanup strtoxx_or_err() Signed-off-by: Karel Zak schedutils/chrt.c | 4 ++-- schedutils/ionice.c | 12 ++++++------ schedutils/taskset.c | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) commit 659e5f5b5c2abce275d93bbf5a4eb416a1c6bb45 Author: Karel Zak Date: Tue May 15 17:44:51 2012 +0200 partx: cleanup strtoxx_or_err() Signed-off-by: Karel Zak partx/addpart.c | 6 +++--- partx/delpart.c | 2 +- partx/partx.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) commit db41a4298f0719d7197e073b281ce9d36ed02820 Author: Karel Zak Date: Tue May 15 17:44:37 2012 +0200 misc-utils: cleanup strtoxx_or_err() Signed-off-by: Karel Zak misc-utils/blkid.c | 4 ++-- misc-utils/cal.c | 6 +++--- misc-utils/findmnt.c | 3 +-- misc-utils/kill.c | 2 +- misc-utils/logger.c | 13 ++++--------- misc-utils/lslocks.c | 8 ++++---- misc-utils/wipefs.c | 2 +- 7 files changed, 16 insertions(+), 22 deletions(-) commit 92bb28a4f6989ece5c6cf6bd9189346500c01bfe Author: Karel Zak Date: Tue May 15 17:44:19 2012 +0200 sulogin: cleanup strtoxx_or_err() Signed-off-by: Karel Zak login-utils/sulogin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 99c95585fcc0eb924880b85a0076dc25ba0993e6 Author: Karel Zak Date: Tue May 15 17:44:02 2012 +0200 hwclock: cleanup strtoxx_or_err() Signed-off-by: Karel Zak hwclock/hwclock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 00695059323767ae5612e664df972f4b4ef5a001 Author: Karel Zak Date: Tue May 15 17:43:49 2012 +0200 fdisk: cleanup strtoxx_or_err() Signed-off-by: Karel Zak fdisk/cfdisk.c | 2 +- fdisk/fdisk.c | 12 ++++++------ fdisk/sfdisk.c | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) commit 33fb5cfd49260382f9f3ef6ede1210a5a92b13ba Author: Karel Zak Date: Tue May 15 17:43:32 2012 +0200 disk-utils: cleanup strtoxx_or_err() Signed-off-by: Karel Zak disk-utils/mkfs.bfs.c | 2 +- disk-utils/mkfs.cramfs.c | 13 +++---------- disk-utils/mkswap.c | 32 +++++++++++++------------------- 3 files changed, 17 insertions(+), 30 deletions(-) commit 551dae405a3af7f81ac360ec5bb316fb9b7aeec8 Author: Karel Zak Date: Tue May 15 17:40:03 2012 +0200 lib/strutils: create type specific strtoxx_or_err() We need [un]signed int ([u]int32_t) on many places. It's also more readable and robust to use uintXX_t types than for example "long long". Signed-off-by: Karel Zak include/strutils.h | 14 ++++++- lib/strutils.c | 95 ++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 86 insertions(+), 23 deletions(-) commit 7e9a9af14fef3ad555a287a367165e4a66b8482d Author: Karel Zak Date: Tue May 15 11:58:20 2012 +0200 include/ttyutils: more robust get_terminal_width() Signed-off-by: Karel Zak include/ttyutils.h | 14 ++++++++++++-- misc-utils/blkid.c | 6 ++++-- 2 files changed, 16 insertions(+), 4 deletions(-) commit 597cfec51f117f47387c614ecfe478865ae38a1d Author: Petr Uzel Date: Tue May 15 10:49:04 2012 +0200 blkid: use get_terminal_width() from ttyutils.h Signed-off-by: Petr Uzel misc-utils/blkid.c | 29 +---------------------------- 1 files changed, 1 insertions(+), 28 deletions(-) commit e872e32064b9ade685417f6a36af08dc2baa8694 Author: Petr Uzel Date: Tue May 15 10:49:03 2012 +0200 include: move get_terminal_width() to ttyutils.h Signed-off-by: Petr Uzel include/ttyutils.h | 29 +++++++++++++++++++++++++++++ lib/tt.c | 28 +--------------------------- 2 files changed, 30 insertions(+), 27 deletions(-) commit f80e9bc30a2ae9032790b888abc6ffc8ca90a940 Author: Petr Uzel Date: Tue May 15 10:49:02 2012 +0200 libuuid: move read_all to include/all-io.h Signed-off-by: Petr Uzel include/all-io.h | 25 +++++++++++++++++++++++++ libuuid/src/gen_uuid.c | 26 +------------------------- misc-utils/uuidd.c | 24 ------------------------ 3 files changed, 26 insertions(+), 49 deletions(-) commit e12c9866b59f9142f6aa6e7a286f1e95ca8f9ee4 Author: Petr Uzel Date: Tue May 15 10:49:01 2012 +0200 include: rename writeall.h to all-io.h Signed-off-by: Petr Uzel disk-utils/fsck.minix.c | 2 +- disk-utils/mkfs.minix.c | 2 +- disk-utils/mkswap.c | 2 +- disk-utils/swaplabel.c | 2 +- include/Makefile.am | 2 +- include/all-io.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ include/writeall.h | 47 ----------------------------------------------- lib/path.c | 2 +- libblkid/src/probe.c | 2 +- login-utils/login.c | 2 +- misc-utils/uuidd.c | 2 +- misc-utils/wipefs.c | 2 +- sys-utils/dmesg.c | 2 +- term-utils/agetty.c | 2 +- text-utils/pg.c | 2 +- 15 files changed, 60 insertions(+), 60 deletions(-) commit ea178007eb63a528f27805c04b5246519b5ef61a Author: Dave Reisner Date: Sun May 13 15:14:49 2012 -0400 lib/mangle: check for end of string on every iteration Checking for the null byte at the end of the string only conditionally leads to segfaults, evidenced by mount helpers crashing on writes to /run/mount/utab. Simply check for the null on each iteration, and append a null byte to the mangled string before breaking. Signed-off-by: Dave Reisner lib/mangle.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit 5821dbe32894b07a52f8d924d31a13b425b69638 Author: Petr Uzel Date: Sun May 13 13:57:46 2012 +0200 rev: mention tac(1) in 'SEE ALSO' man page section Cc: James R. Van Zandt From: James R. Van Zandt Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568709 Signed-off-by: Petr Uzel text-utils/rev.1 | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit dceb1f220c9210a5dfa6565157b223c54f677be2 Author: Petr Uzel Date: Sun May 13 13:44:32 2012 +0200 mkswap: improve diagnostics message if the device is mounted Currently, attempt to create swap on mounted partition results with "/dev/sdXy: Device or resource busy" message being printed. Change this to explicitly telling the user that the device is mounted. Signed-off-by: Petr Uzel disk-utils/mkswap.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit 95e1d8f3bad279c00cc87a388e383de3f3f3a3ca Author: Petr Uzel Date: Sun May 13 13:44:31 2012 +0200 mkswap: allow creating swap on /dev/hd[ab] Currently, mkswap does not allow swap to be created on /dev/hda and /dev/hdb. There is no reason why /dev/hda and /dev/hdb should be treated differently. Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491021 Cc: Russell Coker Signed-off-by: Petr Uzel disk-utils/mkswap.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit def478cf72839cfa15d847b878dcdd823fe02968 Author: Petr Uzel Date: Sun May 13 13:44:30 2012 +0200 mkswap: use is_mounted() instead of check_mount() Signed-off-by: Petr Uzel disk-utils/Makefile.am | 1 + disk-utils/mkswap.c | 26 ++------------------------ 2 files changed, 3 insertions(+), 24 deletions(-) commit 68eebd5354ceb8766f098f32d59497be38abaf6f Author: Petr Uzel Date: Sun May 13 11:08:20 2012 +0200 lsblk: improve man page wording Cc: Regid Ichira From: Regid Ichira Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672702 Signed-off-by: Petr Uzel misc-utils/lsblk.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 596007ef6a37b708f44286932eed667b316e5f70 Author: Jeremy Huntwork Date: Sun May 13 17:28:32 2012 +0000 Use POSIX regcomp and regexec over obsolete BSD re_comp and re_exec text-utils/more.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) commit 1c935e725eed69edde5ac0db1cce6ab2123dd57a Author: Jeremy Huntwork Date: Sun May 13 16:31:48 2012 +0000 Remove use of __P. Its intended usage was to support pre-ANSI C compilers, but that is not even possible with the modern-day codebase. Moreover, it breaks compiling on libcs that do not define this legacy implementation-internal macro. misc-utils/logger.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 5dd947211751d377b8849f0191cfcf5dfafb8e62 Author: Karel Zak Date: Thu May 10 11:58:32 2012 +0200 tests: update fdisk test Signed-off-by: Karel Zak tests/expected/fdisk/oddinput | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c544aa2c25095e6a4d4fca761eb15c46435086fc Author: Petr Uzel Date: Sun May 6 21:55:53 2012 +0200 libuuid: avoid double open and leaking fd (reworked) This reverts commit 6126f7a53c57485a9a29ddd772765695f23c92e6 and fixes the double open and leaking descriptor in a different way, that is by using newly introduced function 'have_random_source()' to check whether good random source is available while deciding which uuid type to generate (random/time). This is better than calling random_get_fd() twice, passing the file descriptor down the stack and reusing it in next call to random_get_fd(). Signed-off-by: Petr Uzel fdisk/fdiskdoslabel.c | 2 +- include/randutils.h | 2 +- lib/randutils.c | 8 +++----- libuuid/src/gen_uuid.c | 28 ++++++++++++++++++---------- libuuid/src/uuidd.h | 2 +- misc-utils/uuidd.c | 4 ++-- 6 files changed, 26 insertions(+), 20 deletions(-) commit fbf9034e482cbbc9c6acade9a794def0bf26197b Author: Davidlohr Bueso Date: Sun May 6 21:06:01 2012 +0200 lslocks: fix bracket indentation Signed-off-by: Davidlohr Bueso misc-utils/lslocks.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 50f6100a960d96471980a9a5354d9ee426b00673 Author: Davidlohr Bueso Date: Sun May 6 14:10:25 2012 +0200 fdisk: sgi: abort on HDIO_GETGEO failure When the HDIO_GETGEO ioctl fails on non IRIX/MIPS platforms (ie: inappropriate ioctl for device) the variables that describe the geometry are compromissed. One clear example is a division by 0 bug because the cylinder size is 0 is verify_sgi(): $> fdisk sgi.img Welcome to fdisk (util-linux 2.21.392-4b1c). ... Command (m for help): x Expert command (m for help): g Building a new SGI disklabel. Partition 11 of type SGI volume and of size 7.9 MiB is set Floating point exception Fix this by simply exiting the program instead of leaving it in a vulnerable state. Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak fdisk/fdisksgilabel.c | 39 ++++++++++++++++++++------------------- 1 files changed, 20 insertions(+), 19 deletions(-) commit 8335c780ee5adf34b86893fff9ba9de4dd161602 Author: Davidlohr Bueso Date: Sun May 6 14:10:23 2012 +0200 fdisk: remove unused function declaration Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 0dc13a38631361394a098c5e9b39ca05a0cb36a7 Author: Davidlohr Bueso Date: Sun May 6 21:02:45 2012 +0200 fdisk: create DOS specific write table function Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 27 ++++----------------------- fdisk/fdiskdoslabel.c | 25 +++++++++++++++++++++++++ fdisk/fdiskdoslabel.h | 1 + 3 files changed, 30 insertions(+), 23 deletions(-) commit 9dea2923c861a74c28864c083b2b5b785ac18ac0 Author: Davidlohr Bueso Date: Sun May 6 14:10:18 2012 +0200 fdisk: move DOS new/add partition code Since this is DOS specific logic, it belongs in its own label file. Additionally, a dos_new_partition() function is created that asks the user for partition type and then calls the actual dos_add_partition(). This patch passed fdisk regression tests, builds without problems and it was locally tested against adding and removing DOS partitions. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 354 ++----------------------------------------------- fdisk/fdisk.h | 22 +++- fdisk/fdiskdoslabel.c | 332 ++++++++++++++++++++++++++++++++++++++++++++++ fdisk/fdiskdoslabel.h | 5 +- 4 files changed, 365 insertions(+), 348 deletions(-) commit a2a7d18e62d3011279c939147921b1639300c990 Author: Davidlohr Bueso Date: Sun May 6 20:53:14 2012 +0200 fdisk: remove unused hsc2sector macro Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 44d2fc819840d821db8dc965decf1f490ae9cc95 Author: Davidlohr Bueso Date: Fri May 4 13:35:32 2012 +0200 fdisk: fix segfault on bsd label Commit 8db8295d824cd0c8cba9385e4635d6e311d69d3f added a regression that causes the program to crash when touching the partition structure (pte) for BSD/OSF labels. Since DOS has its own initialization function, allow BSD labels to use it as well. Steps to reproduce: $> fdisk bsd.img (obtained from blkid regression test files) Command (m for help): p ... I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Segmentation fault Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 ++ fdisk/fdiskdoslabel.c | 2 +- fdisk/fdiskdoslabel.h | 1 + 3 files changed, 4 insertions(+), 1 deletions(-) commit 4b1cf29d23c094d70233072c3907613b380e27f0 Author: Karel Zak Date: Fri May 4 16:20:04 2012 +0200 uuidd: remove unnecessary variables Signed-off-by: Karel Zak misc-utils/uuidd.c | 38 ++++++++++++++++---------------------- 1 files changed, 16 insertions(+), 22 deletions(-) commit 6126f7a53c57485a9a29ddd772765695f23c92e6 Author: Petr Uzel Date: Thu May 3 21:02:01 2012 +0200 libuuid: avoid double open and leaking descriptor We are opening /dev/urandom twice in uuid_generate(): first to check if the file is available and then later __uuid_generate_random() again to actually get the random data. Moreover, descriptor from the first open is leaking. Fix by passign the descriptor down the stack and reusing it there. References: http://marc.info/?l=util-linux-ng&m=133406051131131&w=2 Signed-off-by: Petr Uzel fdisk/fdiskdoslabel.c | 2 +- include/randutils.h | 2 +- lib/randutils.c | 8 +++++--- libuuid/src/gen_uuid.c | 17 ++++++++++------- libuuid/src/uuidd.h | 2 +- misc-utils/uuidd.c | 4 ++-- 6 files changed, 20 insertions(+), 15 deletions(-) commit 881a0f6b286f034c99214c17c81d58b447d5908c Author: Petr Uzel Date: Thu May 3 21:02:00 2012 +0200 uuidd: introduce uuidd_cxt to pass arguments to server loop Signed-off-by: Petr Uzel misc-utils/uuidd.c | 56 +++++++++++++++++++++++++++++++++------------------ 1 files changed, 36 insertions(+), 20 deletions(-) commit ea4f8845f0241c714f9487ece5bb6900fc18a9e0 Author: Petr Uzel Date: Thu May 3 21:01:59 2012 +0200 libuuid: don't exec uuidd Executing the daemon from the shared library is not quite elegant solution. Drop this functionality and require uuidd (should it be needed) to be started from the initscript or by socket-activation. References: http://www.spinics.net/lists/util-linux-ng/msg05967.html Signed-off-by: Petr Uzel libuuid/src/Makefile.am | 1 - libuuid/src/gen_uuid.c | 48 ++-------------------------------------------- 2 files changed, 3 insertions(+), 46 deletions(-) commit 1b68c37927c193d10195b7f1ba03f9b6e3ff389e Author: Petr Uzel Date: Thu May 3 21:01:58 2012 +0200 uuidd: add systemd unit files Add systemd unit files which use the socket activation mechanism of systemd. The uuidd deamon is started upon first request on the socket and quits after 1 minute of inactivity. Signed-off-by: Petr Uzel Makefile.am | 3 ++- configure.ac | 11 +++++++++++ misc-utils/.gitignore | 1 + misc-utils/Makefile.am | 11 +++++++++-- misc-utils/uuidd.service.in | 9 +++++++++ misc-utils/uuidd.socket | 8 ++++++++ 6 files changed, 40 insertions(+), 3 deletions(-) commit 7ec85b5b71499b045e4739c57db108dc3b2472fb Author: Petr Uzel Date: Thu May 3 21:01:57 2012 +0200 libuuid: use EXIT_FAILURE Signed-off-by: Petr Uzel libuuid/src/gen_uuid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cb20279fb047b9dc8d0a8dce651ca5e049c9c75d Author: Petr Uzel Date: Thu May 3 21:01:56 2012 +0200 uuidd: do not drop privileges libuuid can (for now) spawn uuidd on-demand. To support this scenario, uuidd should be installed setuid/setgid to have access to /var/lib/libuuid/clock.txt. Therefore, dropping the privileges is not functional, so removing this ability. Moreover, the ability to spawn uuidd on-demand will be removed anyway. References: http://www.spinics.net/lists/util-linux-ng/msg05934.html Signed-off-by: Petr Uzel misc-utils/uuidd.c | 32 +------------------------------- 1 files changed, 1 insertions(+), 31 deletions(-) commit 18c68d70eed2ee8416c4e15fed886325de0bfae6 Author: Petr Uzel Date: Thu May 3 21:01:55 2012 +0200 uuidd: print all debugging information to stderr Signed-off-by: Petr Uzel misc-utils/uuidd.c | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) commit bbe289c4895ed37727be8291c9a7ec1f1e247657 Author: Petr Uzel Date: Thu May 3 21:01:54 2012 +0200 uuidd: implement --socket-activation option Implement --socket-activation option, which is supposed to be used with systemd (or equivalent init system) socket activation mechanism. With this option, the UUID daemon does not create the socket on its own, but instead expect the connection fd to be provided by the calling process. This option is only available if util-linux is configured with --enable-socket-activation option. With this configure option, the uuidd is compiled with sd-daemon.c. Signed-off-by: Petr Uzel configure.ac | 12 + misc-utils/Makefile.am | 6 + misc-utils/sd-daemon.c | 530 ++++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/sd-daemon.h | 282 +++++++++++++++++++++++++ misc-utils/uuidd.8 | 6 + misc-utils/uuidd.c | 134 ++++++++---- 6 files changed, 926 insertions(+), 44 deletions(-) commit 75a94e8b36898b654bb7539b20a6a6ef8985776f Author: Petr Uzel Date: Thu May 3 21:01:53 2012 +0200 uuidd: factor out socket creation into separate function Signed-off-by: Petr Uzel misc-utils/uuidd.c | 74 ++++++++++++++++++++++++++++++++------------------- 1 files changed, 46 insertions(+), 28 deletions(-) commit e1cf3ebed5434485041edce720183751e88bac9f Author: Petr Uzel Date: Thu May 3 21:01:52 2012 +0200 uuidd: implement --no-fork option With this option, uuidd does not daemonize itself but stays in the foreground. Signed-off-by: Petr Uzel misc-utils/uuidd.8 | 3 +++ misc-utils/uuidd.c | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) commit f6f3dc781157aba6b2e219991f5a469defbab55f Author: Petr Uzel Date: Thu May 3 21:01:51 2012 +0200 uuidd: use ignore_result helper Signed-off-by: Petr Uzel misc-utils/uuidd.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit 0abfbd9ce6fcbb3651b514837023ae7b0c8e602b Author: Petr Uzel Date: Thu May 3 21:01:50 2012 +0200 uuidd: implement --no-pid option With this option, uuidd does not create the PID file. Signed-off-by: Petr Uzel misc-utils/uuidd.8 | 3 +++ misc-utils/uuidd.c | 48 ++++++++++++++++++++++++++++++++++++------------ 2 files changed, 39 insertions(+), 12 deletions(-) commit c453635572d6e5c4c7a735c6339e92721080afbd Author: Petr Uzel Date: Thu May 3 21:01:49 2012 +0200 uuidd: factor out pidfile creation into separate function Introduce create_pidfile() function. Signed-off-by: Petr Uzel misc-utils/uuidd.c | 48 ++++++++++++++++++++++++++++++++++-------------- 1 files changed, 34 insertions(+), 14 deletions(-) commit fcb09bf211cf03ece299600b6904ff27d6118f00 Author: Petr Uzel Date: Thu May 3 21:01:48 2012 +0200 uuidd: remove useless initialization of cleanup_socket Signed-off-by: Petr Uzel misc-utils/uuidd.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 2e9b39eff3610b2ae68ad0572b5be37ae6806b6d Author: Petr Uzel Date: Thu May 3 21:01:47 2012 +0200 uuidd: use UUIDD_OP_GETPID instead of magic number Make parameters passed to call_daemon() more descriptive: - use UUIDD_OP_GETPID instead of magic number 0 - call_daemon() takes pointer as a last argument, so pass NULL instead of 0 Signed-off-by: Petr Uzel misc-utils/uuidd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a767169febcefe9a80f3e54b2b1a558ebfdb06d8 Author: Vladimir 'φ-coder/phcoder' Serbinenko Date: Fri May 4 11:49:16 2012 +0200 libblkid: support UFS UUID Signed-off-by: Karel Zak libblkid/src/superblocks/ufs.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit fd688b6cf3b32087404b00a0308c64d4f9c98a9e Author: Vladimir 'φ-coder/phcoder' Serbinenko Date: Fri May 4 11:48:07 2012 +0200 libblkid: accept small blocks for NTFS and Reiserfs in blkid libblkid is restrictive as to what it accepts as valid reiserfs or valid NTFS. One can mkfs an NTFS with 256B sectors and it's supported by ntfs-3g Reiserfs can have 512B blocks and it works both with mkfs.ntfs and Linux. Signed-off-by: Karel Zak libblkid/src/superblocks/ntfs.c | 2 +- libblkid/src/superblocks/reiserfs.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit 5b0289b9cfe7bfc1092a097a9aa8ea4f38d72431 Author: Karel Zak Date: Fri May 4 11:45:35 2012 +0200 build-sys: add BUILD_WDCTL, check for linux/watchdog.h Signed-off-by: Karel Zak configure.ac | 8 ++++++++ sys-utils/Makefile.am | 2 ++ 2 files changed, 10 insertions(+), 0 deletions(-) commit 013a48910e611e05c02503c898662af1df52ee63 Author: Karel Zak Date: Fri May 4 11:04:35 2012 +0200 wdctl: add man page Signed-off-by: Karel Zak sys-utils/Makefile.am | 1 + sys-utils/wdctl.8 | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 0 deletions(-) commit 3dd00e0773a3844a0e9c816121c25507e8718c00 Author: Karel Zak Date: Fri May 4 11:02:47 2012 +0200 wdctl: make timeouts output more parsable Signed-off-by: Karel Zak sys-utils/wdctl.c | 40 +++++++--------------------------------- 1 files changed, 7 insertions(+), 33 deletions(-) commit 09f9a393a468f2e3714e802065c4ab727e0640ce Author: Karel Zak Date: Thu May 3 17:29:31 2012 +0200 wdctl: rewrite to use lib/tt Signed-off-by: Karel Zak sys-utils/Makefile.am | 10 +- sys-utils/wdctl.c | 456 +++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 373 insertions(+), 93 deletions(-) commit 5ef167714e58132b969cfa4c185ae0159705ca0f Author: Karel Zak Date: Thu May 3 17:28:44 2012 +0200 lib/strutils: add string_to_bitmask() Signed-off-by: Karel Zak include/strutils.h | 3 +++ lib/strutils.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 0 deletions(-) commit 1ea962b2088b8db2090917a5eb1609b5eb99e048 Author: Karel Zak Date: Thu May 3 16:24:12 2012 +0200 lsblk: fix /sys/.../ro usage Reported-by: Milan Broz Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0bda832322dc426583477c05f640ca3acbbe8886 Author: Karel Zak Date: Thu May 3 12:19:52 2012 +0200 lslock: remove duplicate variable Signed-off-by: Karel Zak misc-utils/lslocks.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 4a695b1a8b1d9f85a429acc72e989eb963077755 Author: Karel Zak Date: Thu May 3 12:13:29 2012 +0200 include/tt: remove obsolete stuff Signed-off-by: Karel Zak include/tt.h | 3 --- lib/tt.c | 2 +- 2 files changed, 1 insertions(+), 4 deletions(-) commit 33a0de92e9c441797f00e8b5c0cc3a7c2d3e515c Author: Sami Kerola Date: Thu Apr 19 21:10:54 2012 +0200 wdctl: align with other util-linux commands * Add watchdog device path to pathnames.h * Check output stream status at exit. * Adjust usage() notation to follow howto file. * Retire numeric return value. Signed-off-by: Sami Kerola include/pathnames.h | 2 ++ sys-utils/wdctl.c | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) commit 96f817fb169ac38fe5535cb8c6d2fdf9b2cb8f10 Author: Karel Zak Date: Wed May 2 14:05:51 2012 +0200 fdisk: fix fdiskdoslabel.c global variables Signed-off-by: Karel Zak fdisk/fdisk.c | 4 +++- fdisk/fdisk.h | 21 ++++++++++----------- fdisk/fdiskdoslabel.c | 4 ++++ fdisk/fdiskdoslabel.h | 14 ++++++++------ 4 files changed, 25 insertions(+), 18 deletions(-) commit e2ee917804734333ae955778358cd4063de900f9 Author: Davidlohr Bueso Date: Sun Apr 29 00:02:45 2012 +0200 fdisk: isolate dos label logic DOS specific logic is currently embedded in the heart of fdisk code. This patch separates DOS label specific code into its own file, just like the rest of the labels, leaving a more generic fdisk.c file. Most changes are just moving code from fdisk.c to fdisk.h and fdiskdoslabel.[c/h]. The only logical modification is calling dos_delete_partition() from read_extended(), instead of the generic delete_partition. This is ok since read extended is only called from a DOS context. Signed-off-by: Davidlohr Bueso fdisk/Makefile.am | 2 + fdisk/fdisk.c | 420 +------------------------------------------------ fdisk/fdisk.h | 64 ++++++++- fdisk/fdiskdoslabel.c | 323 +++++++++++++++++++++++++++++++++++++ fdisk/fdiskdoslabel.h | 50 ++++++ 5 files changed, 446 insertions(+), 413 deletions(-) commit 1f13d6fcd0a5b6d957645dd42480435288dabb1a Merge: 64115ee 7828876 Author: Karel Zak Date: Wed May 2 09:34:39 2012 +0200 Merge branch '2012wk17' of https://github.com/kerolasa/lelux-utiliteetit * '2012wk17' of https://github.com/kerolasa/lelux-utiliteetit: build-sys: determine availability of __fpending() commit 64115eed34de9f44d76c80117424ca62baab2163 Author: Davidlohr Bueso Date: Fri Apr 27 13:23:56 2012 +0200 fdisk: remove dummy function Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 34574201787722fecf12c37f33aad026ea2e5d9e Author: Davidlohr Bueso Date: Fri Apr 27 13:23:51 2012 +0200 fdisk: rework fatal errors When the device cannot be opened, there's no point calling fatal() when we can just use err(3). When any other kind of fatal error occurs it's Ok, in addition we can also go ahead and close the descriptor before exiting the program as it's currently leaking. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 18 ++++++------------ fdisk/fdisk.h | 9 ++++++--- 2 files changed, 12 insertions(+), 15 deletions(-) commit 337643ad0f3f3c4b69264c77836fd5c102f91416 Author: Davidlohr Bueso Date: Fri Apr 27 13:23:47 2012 +0200 fdisk: remove listing variable useless global variable. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 9f6c866f656b43f8a190f526a697c0e803cfb249 Author: Davidlohr Bueso Date: Fri Apr 27 13:23:42 2012 +0200 fdisk: remove stack jumping This patch eliminates the long/setjmp code. The current logic does not do anything with stack jumps as it only exits from print_partition_table_from_option() when a fatal error occurs. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 17 ++--------------- 1 files changed, 2 insertions(+), 15 deletions(-) commit 4bfd4bffb7b2cb8c82d7046a5fd4b861ee5464d8 Author: Karel Zak Date: Fri Apr 27 14:06:20 2012 +0200 findmnt: restrict within-device matching Signed-off-by: Karel Zak misc-utils/findmnt.c | 61 ++++++++++++++++++++++++++++--------------------- 1 files changed, 35 insertions(+), 26 deletions(-) commit 80d7a31374fa0bd4826ba3b9691a05dba1ec27c9 Author: Bernhard Voelker Date: Tue Apr 24 09:57:30 2012 +0200 docs: fix further typos found by misspellings Additionally to the fixes in commit v2.21-325-g455fe9a, fix typos in release notes and NEWS. Signed-off-by: Bernhard Voelker Signed-off-by: Karel Zak Documentation/releases/v2.13-ReleaseNotes | 2 +- Documentation/releases/v2.19-ReleaseNotes | 4 ++-- Documentation/releases/v2.20-ReleaseNotes | 2 +- Documentation/releases/v2.21-ReleaseNotes | 2 +- NEWS | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) commit 6901f22ce06bdff0efb2f1d4604711256c2c8eda Author: Petr Uzel Date: Tue Apr 24 10:21:01 2012 +0200 findmnt: fix compiler warnings [-Wuninitialized] findmnt.c:333:29: error: ‘vfs_attr’ may be used uninitialized in this function [-Werror=uninitialized] findmnt.c:307:11: note: ‘vfs_attr’ was declared here Signed-off-by: Petr Uzel misc-utils/findmnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 077fdcdb2ae4a6804d48e5cb810d03317da4866e Author: Petr Uzel Date: Tue Apr 24 10:21:00 2012 +0200 sfdisk: fix compiler warning [-Wunused-result] sfdisk.c: In function ‘do_fdisk’: sfdisk.c:3212:11: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Werror=unused-result] Signed-off-by: Petr Uzel fdisk/sfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 28d4cdcb9d3923c0fb60b0f184e4955222319f4b Author: Petr Uzel Date: Tue Apr 24 10:20:59 2012 +0200 fsck.minix.c: fix compiler warnings [-Wunused-result] fsck.minix.c: In function ‘ask’: fsck.minix.c:263:7: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Werror=unused-result] Signed-off-by: Petr Uzel disk-utils/fsck.minix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e584fa80d71b0bf255c4174f514953b590c09d5c Author: Petr Uzel Date: Tue Apr 24 10:20:58 2012 +0200 libuuid: fix typo in uuid_compare manpage Signed-off-by: Petr Uzel libuuid/man/uuid_compare.3 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e9583468052ca0409f57e40de186a4b49a167b5f Author: Petr Uzel Date: Tue Apr 24 10:20:57 2012 +0200 build-sys: add fsprobe.h to dist Signed-off-by: Petr Uzel mount/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b3f807e13f1de3eba37d7674db4c7f583af5b4a5 Author: Petr Uzel Date: Tue Apr 24 10:20:56 2012 +0200 build-sys: add swapon-common.h to swapon sources (fix distcheck) Signed-off-by: Petr Uzel sys-utils/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 7f64f9bde7a4b09e04bc95333a57f20f50a71f89 Author: Petr Uzel Date: Tue Apr 24 10:20:55 2012 +0200 build-sys: add ttyutils.h to dist Signed-off-by: Petr Uzel include/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 95c46edd67528ebf9dc258e6af0dc3060c3f39fb Author: Petr Uzel Date: Tue Apr 24 10:20:54 2012 +0200 build-sys: add randutils.h to dist Signed-off-by: Petr Uzel include/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit a2defd027f9d720a1544a6e3b3f09cf0ad3f3ff3 Author: Petr Uzel Date: Tue Apr 24 10:20:53 2012 +0200 build-sys: run distcheck with verbose make rules Signed-off-by: Petr Uzel Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 6257e4458295e4a731e3979588e21c95c0cc7186 Author: Karel Zak Date: Fri Apr 27 10:30:08 2012 +0200 libmount: close device fd (to avoid mount(2) EBUSY) libmount uses libblkid to detect filesystem type. Unfortunately, the blkid probe struct is not freed before mount(2), it means that the device is still open and mount(2) may return EBUSY. We don't need persistent blkid stuff in libmount, so let's close all immediately after device probing. Reported-by: David Zeuthen Signed-off-by: Karel Zak libmount/src/cache.c | 70 ++++++++++++------------------------------------- 1 files changed, 17 insertions(+), 53 deletions(-) commit b215d8e9a71ca8d22df6111ddc9d28bd896febb1 Author: Dave Reisner Date: Wed Apr 25 20:30:52 2012 -0400 findmnt: add match_by_file to do within-device matching Use the newly exported mnt_get_mountpoint to determine the device that a given file resides on, in case the supplied source or target is not explicitly a mount point. http://www.spinics.net/lists/util-linux-ng/msg06081.html Signed-off-by: Dave Reisner misc-utils/findmnt.c | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) commit cd3d6c5bd0d2d4350972dc38d53753b5581c1941 Author: Dave Reisner Date: Wed Apr 25 20:30:51 2012 -0400 libmount: expose mnt_get_mountpoint as external API libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 1 + libmount/src/mountP.h | 1 - libmount/src/utils.c | 9 +++++++++ 4 files changed, 11 insertions(+), 1 deletions(-) commit f6efe5024c9c47c0c88a928be63cc31e27c1cab3 Author: Karel Zak Date: Thu Apr 26 09:28:44 2012 +0200 lib/tt: check for non-printable chars for raw/export format Signed-off-by: Karel Zak lib/tt.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit f8bb6246fd3e6dcfee4a8c28a1df7065ff72f3d2 Author: Karel Zak Date: Thu Apr 26 09:22:19 2012 +0200 lib/tt: encode data for RAW and EXPORT format * all tt based utils will properly encode blank chars for raw output format and quotes for export output format Signed-off-by: Karel Zak lib/tt.c | 32 ++++++++++++++++++++++++++++++-- 1 files changed, 30 insertions(+), 2 deletions(-) commit d324270eee81e8287075919a72f6fd57fdaf751f Author: Karel Zak Date: Thu Apr 26 09:19:36 2012 +0200 lsblk: remove private \x coding, decode data from udev * remove private encoding code (all encoding will be in lib/tt.c) * decode LABELs from udev Signed-off-by: Karel Zak misc-utils/Makefile.am | 1 + misc-utils/lsblk.8 | 3 +- misc-utils/lsblk.c | 50 +++++++++++------------------------------------ 3 files changed, 15 insertions(+), 39 deletions(-) commit 4644638fe84e67d0d897d71160bfba926ce75a09 Author: Karel Zak Date: Thu Apr 26 09:19:07 2012 +0200 findmnt: add note about \x to man page Signed-off-by: Karel Zak misc-utils/findmnt.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 95387b669658402cad6bce9bb18cecd8b11af092 Author: Karel Zak Date: Thu Apr 26 09:17:44 2012 +0200 lib/mangle: cleanup, add unhexmangle * use strchr() rather than for() * small refactoring in mangle code * add un-hex-mangle Signed-off-by: Karel Zak include/mangle.h | 7 ++++++ lib/mangle.c | 57 ++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 46 insertions(+), 18 deletions(-) commit cd49218679fb7aa774a9f442ea58f45a13d6a520 Author: Karel Zak Date: Wed Apr 25 09:51:26 2012 +0200 findmnt: add support for maj:min source Signed-off-by: Karel Zak misc-utils/findmnt.8 | 9 +++++++-- misc-utils/findmnt.c | 48 ++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 8 deletions(-) commit 677ff053f63f45fcc88d29ea20f8fcb21d54acff Author: Karel Zak Date: Wed Apr 25 09:49:50 2012 +0200 libmount: add mnt_table_find_devno() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 1 + libmount/src/tab.c | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 0 deletions(-) commit 54a3d5eeece68a4e99688739ba0261e7e40a7d12 Author: Karel Zak Date: Wed Apr 25 09:05:24 2012 +0200 libmount: fix mnt_context_guess_fstype() Signed-off-by: Karel Zak libmount/src/context.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit ba24923e97e099668b8c96dba9596c90cb58c417 Author: Karel Zak Date: Tue Apr 24 11:59:18 2012 +0200 mount: (new) use MNT_ERR_ for error messages Signed-off-by: Karel Zak sys-utils/mount.c | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) commit 47dea49b4cb4a4a98a6c518cc17f6d2c92be9528 Author: Karel Zak Date: Tue Apr 24 11:57:32 2012 +0200 libmount: add special MNT_ERR_ codes ... to detect some situations where standard -errno is too generic. Signed-off-by: Karel Zak libmount/src/context.c | 20 ++++++++++---------- libmount/src/libmount.h.in | 12 ++++++++++++ 2 files changed, 22 insertions(+), 10 deletions(-) commit ae5afe071f5bc34a6fc0ddb4c0db98baf485262d Author: Karel Zak Date: Tue Apr 24 11:52:04 2012 +0200 libmount: fix mount by pattern mount /foo /bar without entry in /etc/fstab the mount command tries all filesystems from /{etc,proc}/filesystems. We should NOT call mount(2) more then once if the syscall returns for example ENOENT, acceptable is only EINVAL. Signed-off-by: Karel Zak libmount/src/context_mount.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 78288764e48b570659e951a6c84a49e625733bc1 Author: Sami Kerola Date: Mon Apr 23 14:26:23 2012 +0200 build-sys: determine availability of __fpending() Needed to for making Cygwin more possible. Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/5656 Reported-by: Bernhard Voelker Signed-off-by: Sami Kerola configure.ac | 2 ++ include/closestream.h | 10 ++++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) commit 14e8be8ab3db2d782484af9363d6adc351b95a0b Author: Petr Uzel Date: Mon Apr 23 10:43:38 2012 +0200 lscpu: fix possibly undefined operation With -Wall -Werror, compilation of lscpu.c fails with: Making all in sys-utils make[2]: Entering directory `/home/petr/upstream/util-linux/sys-utils' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -include ../config.h -I../include -DLOCALEDIR=\"/usr/share/locale\" -fsigned-char -Wall -Werror -MT lscpu.o -MD -MP -MF .deps/lscpu.Tpo -c -o lscpu.o lscpu.c lscpu.c: In function ‘print_parsable’: lscpu.c:971:7: error: operation on ‘p’ may be undefined [-Werror=sequence-point] cc1: all warnings being treated as errors Fix by splitting the pointer increment to separate statement. Signed-off-by: Petr Uzel sys-utils/lscpu.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 4f83dcceba66278378c5e759e56b4d48368bb796 Author: Petr Uzel Date: Sun Apr 22 16:16:39 2012 +0200 libblkid: befs: declare functions static Since commit 0b0c231f64d02e682 (swapon: move generic code to swapon-common.c), if util-linux is configured with --enable-static --disable-shared --enable-libmount-mount options, the build fails with the following error: ... libtool: link: gcc -std=gnu99 -fsigned-char -ggdb -O1 -Wall -D_FORTIFY_SOURCE=2 -o switch_root switch_root.o /home/petr/upstream/util-linux/libblkid/src/.libs/libblkid.a(befs.o): In function `get_uuid': /home/petr/upstream/util-linux/libblkid/src/superblocks/befs.c:333: multiple definition of `get_uuid' swapon-swapon-common.o:/home/petr/upstream/util-linux/sys-utils/swapon-common.c:99: first defined here collect2: ld returned 1 exit status /bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -fsigned-char -ggdb -O1 -Wall -D_FORTIFY_SOURCE=2 -o flock flock.o strutils.o libtool: link: gcc -std=gnu99 -fsigned-char -ggdb -O1 -Wall -D_FORTIFY_SOURCE=2 -o pivot_root pivot_root.o make[2]: *** [swapon] Error 1 make[2]: *** Waiting for unfinished jobs.... /home/petr/upstream/util-linux/libblkid/src/.libs/libblkid.a(befs.o): In function `get_uuid': /home/petr/upstream/util-linux/libblkid/src/superblocks/befs.c:333: multiple definition of `get_uuid' swapoff-swapon-common.o:/home/petr/upstream/util-linux/sys-utils/swapon-common.c:99: first defined here Fix by declaring befs funcitons static. Signed-off-by: Petr Uzel libblkid/src/superblocks/befs.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 82815995f0b39b4c931c2e84b5c25d64608a70e1 Author: Dave Reisner Date: Sat Apr 21 21:44:32 2012 -0400 sys-utils: avoid duplicate reference to fstab.5 This is no longer in sys-utils/ anyways, and its unconditionally distributed by an earlier dist_man_MANS declare in the Makefile. Signed-off-by: Dave Reisner sys-utils/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5759de0c3c538b10fa41e32753a40efb67749833 Author: Karel Zak Date: Mon Apr 23 14:00:29 2012 +0200 login: use get_fd_tabsize() Signed-off-by: Karel Zak login-utils/Makefile.am | 1 + login-utils/login.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) commit 94988fc902dc159b6ba13fe25261730ccb11d64b Author: Karel Zak Date: Mon Apr 23 14:00:18 2012 +0200 libuuid: use get_fd_tabsize() Signed-off-by: Karel Zak libuuid/src/Makefile.am | 1 + libuuid/src/gen_uuid.c | 16 ++-------------- 2 files changed, 3 insertions(+), 14 deletions(-) commit be92327e712a0371d7f5d45b5e4bfc5631371114 Author: Karel Zak Date: Mon Apr 23 13:52:41 2012 +0200 lib/fileutils: add get_fd_tabsize() as a fallback for the function getdtablesize() Signed-off-by: Karel Zak include/fileutils.h | 5 ++++- lib/fileutils.c | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletions(-) commit 10610816191a7c8c75f184b5ba26861bd5b89d5d Author: chas williams - CONTRACTOR Date: Fri Apr 20 10:58:28 2012 -0400 login: use getdtablesize() correctly in login.c getdtablesize() is the number of descriptors and since decriptors start at 0, its value isnt the largest descriptors possible. One should use getdtablesize() - 1 instead. Signed-off-by: Chas Williams - CONTRACTOR login-utils/login.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 455fe9a075cc59e3250af9c413d42e7ac47a86a9 Author: Bernhard Voelker Date: Fri Apr 20 00:10:44 2012 +0200 Fix typos found by misspellings The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * isosize: Fix typo in usage string. * configure.ac: Fix typo in help string of --enable-most-builds option. * fdisk: Fix typo in man page. * libblkid, blkid, mount: Likewise. * Fix various typos in docs and in source code comments. Signed-off-by: Bernhard Voelker Documentation/TODO | 2 +- Documentation/poeigl.txt | 2 +- Documentation/release-schedule.txt | 2 +- config/texinfo.tex | 4 ++-- configure.ac | 2 +- disk-utils/isosize.c | 2 +- fdisk/fdisk.8 | 2 +- fdisk/fdisk.c | 2 +- getopt/getopt.c | 4 ++-- hwclock/cmos.c | 4 ++-- hwclock/hwclock.c | 2 +- lib/strutils.c | 2 +- libblkid/libblkid.3 | 2 +- libblkid/src/encode.c | 2 +- libblkid/src/partitions/gpt.c | 4 ++-- libblkid/src/partitions/partitions.c | 2 +- libblkid/src/superblocks/linux_raid.c | 4 ++-- libblkid/src/superblocks/superblocks.c | 4 ++-- libmount/src/context.c | 2 +- libmount/src/context_mount.c | 4 ++-- libmount/src/context_umount.c | 4 ++-- login-utils/login.c | 2 +- misc-utils/blkid.8 | 2 +- misc-utils/blkid.c | 2 +- mount/mount.8 | 2 +- sys-utils/dmesg.c | 2 +- sys-utils/ipcs.c | 2 +- sys-utils/lscpu.c | 2 +- sys-utils/mount.8 | 2 +- tests/ts/lscpu/mk-input.sh | 2 +- text-utils/more.c | 4 ++-- text-utils/ul.c | 2 +- 32 files changed, 41 insertions(+), 41 deletions(-) commit 8d95e4ee613b98ccf5cf4cacef08f33f2b68c1dc Author: Davidlohr Bueso Date: Mon Apr 23 13:07:16 2012 +0200 fdisk: simplify device opening This patch makes fdisk open(2) the device in only one place (get_boot), instead of having to depend on user input (ie: listing -l). Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 39 ++++++++++++++++----------------------- 1 files changed, 16 insertions(+), 23 deletions(-) commit f45121dd463c199fd58e85eabd7359789aa5f814 Author: Davidlohr Bueso Date: Mon Apr 23 13:00:00 2012 +0200 fdisk: remove action enum Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 14 ++++++-------- fdisk/fdisk.h | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-) commit 3813eb5ead1abedca7fea27b1f4275162b0d7e9b Author: Davidlohr Bueso Date: Mon Apr 23 12:55:52 2012 +0200 fdisk: do not call sgi and sun code when creating a new dos label When creating a new DOS label, SGI and SUN pt logic have no business being there. Remove sun/sgi_nolabel(), since the default amount of partitions are previously set to 4 and the sun/sgi magic nums are not used in this context. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 13716cf30694d601c6ca1592424ef8c6beed6f1e Author: Bernhard Voelker Date: Wed Apr 18 08:47:29 2012 +0200 sfdisk: improve F_MEGABYTE header Signed-off-by: Bernhard Voelker fdisk/sfdisk.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 68c5a7ea7f440e5dd9506356b6c475e9d922a130 Author: Davidlohr Bueso Date: Mon Apr 23 12:40:20 2012 +0200 fdisk: remove dead code Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) commit c867a8e3b3f3b579151570efa0cd4e1b95cf845b Author: Davidlohr Bueso Date: Mon Apr 23 12:38:22 2012 +0200 fdisk: kernel/bios sectors and heads need not be global Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit a2482eb3d9f707e771b6cd556622adb0e8cf4588 Author: Davidlohr Bueso Date: Mon Apr 23 12:15:15 2012 +0200 fdisk: standarize version output Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 9912f01b687547b52ffdddea88d666285c258763 Author: Davidlohr Bueso Date: Mon Apr 23 12:12:32 2012 +0200 fdisk: make CHS user values more robust Signed-off-by: Davidlohr Bueso fdisk/cfdisk.c | 6 +++--- fdisk/fdisk.c | 8 ++++---- fdisk/sfdisk.c | 9 +++++---- 3 files changed, 12 insertions(+), 11 deletions(-) commit 3f1789ce5d91c4ebd4bb9c1f87987ecdf0f5bbee Author: Davidlohr Bueso Date: Mon Apr 23 12:05:25 2012 +0200 prlimit: remove bogus instructions Signed-off-by: Davidlohr Bueso sys-utils/prlimit.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 9146de0266807ce4dce468a6a9cc20fbfb544b03 Author: Sami Kerola Date: Wed Apr 11 20:41:56 2012 +0200 eject: verify writing to streams was successful Signed-off-by: Sami Kerola sys-utils/eject.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 505abd8434f41f5ed4d01ddceeaf78f37e90c368 Author: Karel Zak Date: Mon Apr 23 11:57:50 2012 +0200 lib/pager: fix compiler warnings pager.c: In function ‘start_command’: pager.c:82:7: warning: unused variable ‘err’ [-Wunused-variable] pager.c:49:25: warning: unused variable ‘fderr’ [-Wunused-variable] pager.c:49:15: warning: unused variable ‘fdout’ [-Wunused-variable] pager.c:48:25: warning: unused variable ‘need_err’ [-Wunused-variable] pager.c:48:15: warning: unused variable ‘need_out’ [-Wunused-variable] Signed-off-by: Karel Zak lib/pager.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 35717a57ac290490c464451a57c960266da3c5d4 Author: Davidlohr Bueso Date: Mon Apr 23 11:51:29 2012 +0200 lib: add pager functionality When some program' output exceeds the terminal's dimensions, it is a nice feature to call a pager that acts as calling 'less' to allow better user navigation. This patch adds this functionality, based on what perf and git have (ie: git log). Signed-off-by: Davidlohr Bueso include/pager.h | 6 ++ lib/Makefile.am | 2 + lib/pager.c | 214 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 222 insertions(+), 0 deletions(-) commit 89394013f620338863312d069a9b2ac5ba2abf65 Author: Karel Zak Date: Fri Apr 20 15:06:57 2012 +0200 namei: fix relative symlinks evaluation Fedora 17 (/bin is symlink to /usr/bin): [root@intel ~]# /bin/namei /bin/namei f: /bin/namei d / l bin -> usr/bin usr - No such file or directory Reported-by: Jan Stancek Signed-off-by: Karel Zak misc-utils/namei.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) commit 3e90c89f95eeb103b0d3e64761fef638e0293291 Author: Karel Zak Date: Thu Apr 19 14:48:40 2012 +0200 docs: move fstab.5 to sys-utils (mount/ dir is deprecated) Signed-off-by: Karel Zak mount/Makefile.am | 2 +- mount/fstab.5 | 260 ----------------------------------------------- sys-utils/Makefile.am | 1 + sys-utils/fstab.5 | 268 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 270 insertions(+), 261 deletions(-) commit 9f9d0f21c470749ff9ae7aa92c0351985fee85e6 Author: Karel Zak Date: Thu Apr 19 14:40:22 2012 +0200 swapon: add support for PARTUUID= and PARTLABEL= Signed-off-by: Karel Zak sys-utils/swapon.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit eb0eb262cb4d757983c83241c5fd93ec5ba6b374 Author: Karel Zak Date: Thu Apr 19 14:40:06 2012 +0200 mount: (new) add support for PARTUUID= and PARTLABEL= Signed-off-by: Karel Zak sys-utils/mount.8 | 18 ++++++++++++------ sys-utils/mount.c | 5 ++++- 2 files changed, 16 insertions(+), 7 deletions(-) commit aa0903e06b212f5ade286602626630f77a22fe1a Author: Karel Zak Date: Thu Apr 19 14:39:44 2012 +0200 lsblk: add support for PARTUUID= and PARTLABEL= Signed-off-by: Karel Zak misc-utils/lsblk.c | 45 +++++++++++++++++++++++++++++++++++++++------ 1 files changed, 39 insertions(+), 6 deletions(-) commit 090b5e84b20e415ac6e00892b2a4606ee064e685 Author: Karel Zak Date: Thu Apr 19 14:38:53 2012 +0200 findmnt: add support for PARTUUID= and PARTLABEL= Signed-off-by: Karel Zak misc-utils/findmnt.8 | 32 +++++++++----------------------- misc-utils/findmnt.c | 18 +++++++++++++++--- 2 files changed, 24 insertions(+), 26 deletions(-) commit 10b4d34dc0e2aef0bb4e66dd4fa01475f91bba92 Author: Karel Zak Date: Thu Apr 19 14:34:29 2012 +0200 blkid: add docs about PARTUUID= and PARTLABEL= Signed-off-by: Karel Zak misc-utils/blkid.8 | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit cff632afc93f4cfa366911dffe7521911d172f62 Author: Karel Zak Date: Thu Apr 19 14:33:59 2012 +0200 libmount: add support for PARTUUID= and PARTLABEL= Signed-off-by: Karel Zak libmount/src/cache.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit fc387ee14c6b8672761ae5e67ff639b5cae8f27c Author: Karel Zak Date: Thu Apr 19 14:33:49 2012 +0200 libblkid: add support for PARTUUID= and PARTLABEL= Signed-off-by: Karel Zak include/pathnames.h | 2 ++ libblkid/src/evaluate.c | 7 +++++++ libblkid/src/verify.c | 14 +++++++++++++- 3 files changed, 22 insertions(+), 1 deletions(-) commit 21d1fa53f16560dacba33fffb14ffc05d275c926 Author: Karel Zak Date: Wed Apr 18 13:14:43 2012 +0200 tests: tiny change in output header Signed-off-by: Karel Zak tests/run.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f947ae75b62cf86ee83db52c27a17137d736b5b7 Author: Karel Zak Date: Wed Apr 18 13:05:55 2012 +0200 tests: remove LD_LIBRARY_PATH from swapon tests Signed-off-by: Karel Zak tests/commands.sh.in | 6 ++---- tests/functions.sh | 15 --------------- tests/ts/swapon/devname | 5 ++--- tests/ts/swapon/fixpgsz | 5 ++--- tests/ts/swapon/fixsig | 5 ++--- tests/ts/swapon/label | 5 ++--- tests/ts/swapon/uuid | 5 ++--- 7 files changed, 12 insertions(+), 34 deletions(-) commit d335c9bd545a378d972f67f9141e7977a6ef089f Author: Karel Zak Date: Wed Apr 18 12:58:15 2012 +0200 swapon: minor coding style changes Signed-off-by: Karel Zak sys-utils/swapon.c | 55 +++++++++++++++++++++------------------------------ 1 files changed, 23 insertions(+), 32 deletions(-) commit 8b0d5341553efc8495f769ef7d5d213db212bb51 Author: Karel Zak Date: Wed Apr 18 12:52:13 2012 +0200 swapon: cleanup usage() Signed-off-by: Karel Zak sys-utils/swapon.c | 106 +++++++++++++++++++++++++-------------------------- 1 files changed, 52 insertions(+), 54 deletions(-) commit d9f07b100d789dbbdd74087f0e9a17772b4dc124 Author: Karel Zak Date: Wed Apr 18 12:44:14 2012 +0200 swapon: cleanup main() Signed-off-by: Karel Zak sys-utils/swapon.c | 48 ++++++++++++++++-------------------------------- 1 files changed, 16 insertions(+), 32 deletions(-) commit 7cf6a6547666f5ebde51d6700198d5f66ce58c38 Author: Karel Zak Date: Wed Apr 18 12:38:03 2012 +0200 swapoff: cleanup usage() and includes Signed-off-by: Karel Zak sys-utils/swapoff.c | 41 +++++++++++++++++------------------------ 1 files changed, 17 insertions(+), 24 deletions(-) commit d5360e9250efece3472a03423177f9597b8f4437 Author: Karel Zak Date: Wed Apr 18 12:25:28 2012 +0200 mount: fix man page typo s/reatime/relatime/ Reported-by: Kay Sievers Signed-off-by: Karel Zak mount/mount.8 | 2 +- sys-utils/mount.8 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit e7b63bea045d30cd083596e20edb95af723a9063 Author: Karel Zak Date: Wed Apr 18 12:22:11 2012 +0200 swapoff: use libmount to parse fstab Signed-off-by: Karel Zak sys-utils/swapoff.c | 92 +++++++++++++++++++------------------------- sys-utils/swapon-common.c | 2 +- 2 files changed, 41 insertions(+), 53 deletions(-) commit 6cf8d46ceefe9a7f40c3a07f2f30128b7c1f54fe Author: Karel Zak Date: Wed Apr 18 11:43:42 2012 +0200 swapoff: move code from swapon.c to swapoff.c * multipurpose binaries (symlinks) suck when used with autotools * swapoff shares small subset of the code with swapon * usage() and 'struct option' is unnecessary complex when shared * shorter and simple code is easer to maintain... Signed-off-by: Karel Zak sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 6 +- sys-utils/swapoff.c | 215 +++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/swapon.c | 170 +-------------------------------------- 4 files changed, 222 insertions(+), 170 deletions(-) commit 0b0c231f64d02e6822b62d38705573de6c038b2b Author: Karel Zak Date: Wed Apr 18 11:21:12 2012 +0200 swapon: move generic code to swapon-common.c This will allow to use separate binary for swapon and swapoff. Signed-off-by: Karel Zak sys-utils/Makefile.am | 1 + sys-utils/swapon-common.c | 106 ++++++++++++++++++++++++++++++++++++++++++++ sys-utils/swapon-common.h | 26 +++++++++++ sys-utils/swapon.c | 107 +++++++++------------------------------------ 4 files changed, 154 insertions(+), 86 deletions(-) commit 5072b90a65eca8e78c0fbab5b1eee8d2f786d304 Author: Karel Zak Date: Wed Apr 18 10:14:44 2012 +0200 swapon: use libmount for fstab parsing (for swapon --all) Signed-off-by: Karel Zak sys-utils/swapon.c | 92 +++++++++++++++++++++++++++++----------------------- 1 files changed, 51 insertions(+), 41 deletions(-) commit d78907784617b91a5fd609874fd7480119245b4b Author: Karel Zak Date: Wed Apr 18 10:09:49 2012 +0200 mount: (new) be more pedantic about --make-* Signed-off-by: Karel Zak sys-utils/mount.8 | 14 ++++++++++++++ sys-utils/mount.c | 28 +++++++++++++++++----------- 2 files changed, 31 insertions(+), 11 deletions(-) commit 5d451abbbfd495983f9af857fec359681d487858 Author: Karel Zak Date: Wed Apr 18 10:06:35 2012 +0200 libmount: add mnt_context_get_options() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 3 ++- libmount/src/context.c | 20 +++++++++++++++++++- libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 1 + 4 files changed, 24 insertions(+), 2 deletions(-) commit e5157fc9f0ed3dc54800775563d5b48d162b86a2 Author: Karel Zak Date: Tue Apr 17 13:05:04 2012 +0200 swapon: use only libmount for paths/tags evealuation libmount provides very simple API for paths and tags canonicalizations, let's use it, rather directly link to libblkid and lib/canonicalize.c. Signed-off-by: Karel Zak sys-utils/Makefile.am | 8 +++----- sys-utils/swapon.c | 24 +++++++++--------------- 2 files changed, 12 insertions(+), 20 deletions(-) commit 64b588814e5f081a7ab37f820984aa7a2de9eee9 Author: Karel Zak Date: Tue Apr 17 12:49:11 2012 +0200 swapon: use libmount for /proc/swaps parsing Signed-off-by: Karel Zak sys-utils/Makefile.am | 4 +- sys-utils/swapon.c | 164 +++++++++++++++++++----------------------------- 2 files changed, 67 insertions(+), 101 deletions(-) commit 58f108ef2b9c8cc0362e7781a72e5e921dc383b3 Author: Karel Zak Date: Tue Apr 17 11:36:36 2012 +0200 mount: (new) improve error messages Signed-off-by: Karel Zak sys-utils/mount.c | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) commit e01c7319929879d91ab6366a145936eb73c6126e Author: Karel Zak Date: Tue Apr 17 11:36:32 2012 +0200 libmount: add mnt_context_fstab_applied() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/context.c | 13 ++++++++++++- libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 1 + 4 files changed, 16 insertions(+), 1 deletions(-) commit 8fb6a2de79540d85567c40e0e5e8d42a612f3af2 Author: Lennart Poettering Date: Thu Apr 5 23:31:41 2012 +0200 wdctl: add watchdog status tool For: util-linux This patch adds a tiny tool "wdctl" which may be used to query the status of Linux watchdog devices (/dev/watchdog). This will simply query all fields that may be queried from the device and print them nicely formatted. Signed-off-by: Lennart Poettering sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 3 +- sys-utils/wdctl.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 183 insertions(+), 1 deletions(-) commit 69cabd7204e39c5e6055b6a53cf882b9f48f3c60 Author: James Le Cuirot Date: Mon Apr 16 11:05:27 2012 +0100 cal: Fix building under uClibc. Commit fbc333fec09394bf4e47707de08a65e8c0e9c288 broke building under uClibc because HAVE_DECL macros are set to 0, not undefined. Signed-off-by: James Le Cuirot misc-utils/cal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cd3d55ef200ce7eeabc2bbfe32b60dbf69411c66 Author: Karel Zak Date: Wed Apr 11 12:55:51 2012 +0200 fdisk: remove unused file Signed-off-by: Karel Zak fdisk/Makefile.am | 2 - fdisk/partitiontype.c | 133 ------------------------------------------------- 2 files changed, 0 insertions(+), 135 deletions(-) commit 1b1af0c1d07fe8bc666882b0ae63ef9391e9d376 Author: Karel Zak Date: Wed Apr 11 12:52:36 2012 +0200 login-utils: add missing header, fix setpwnam.c fclose logic Signed-off-by: Karel Zak login-utils/setpwnam.c | 5 ++++- login-utils/vipw.c | 1 + 2 files changed, 5 insertions(+), 1 deletions(-) commit 6259c257d873798ea87341548d5e9c1d7821fce3 Merge: b2244df 45ca68e Author: Karel Zak Date: Wed Apr 11 12:37:59 2012 +0200 Merge branch 'close_stream' of git://github.com/kerolasa/lelux-utiliteetit * 'close_stream' of git://github.com/kerolasa/lelux-utiliteetit: disk-utils: verify writing to streams was successful fdisk: verify writing to streams was successful getopt: verify writing to streams was successful hwclock: verify writing to streams was successful login-utils: verify writing to streams was successful misc-utils: verify writing to streams was successful mount: verify writing to streams was successful partx: verify writing to streams was successful schedutils: verify writing to streams was successful sys-utils: verify writing to streams was successful term-utils: verify writing to streams was successful text-utils: verify writing to streams was successful include: add stream error checking facility Conflicts: fdisk/fdisk.c commit b2244df6181bdc519af79ceb7d35a81811eb08cb Author: Davidlohr Bueso Date: Thu Apr 5 23:52:10 2012 +0200 libuuid: use randutils Signed-off-by: Davidlohr Bueso libuuid/src/Makefile.am | 3 +- libuuid/src/gen_uuid.c | 99 ++-------------------------------------------- 2 files changed, 7 insertions(+), 95 deletions(-) commit 2a2319bbac0aae5f72da708157cbe2df5754facc Author: Davidlohr Bueso Date: Thu Apr 5 23:52:07 2012 +0200 fdisk: use randutils for mbr signature creation Signed-off-by: Davidlohr Bueso fdisk/Makefile.am | 1 + fdisk/fdisk.c | 51 +++++---------------------------------------------- 2 files changed, 6 insertions(+), 46 deletions(-) commit fe72459e414e0d1a55f93e0035766d2313362ac2 Author: Davidlohr Bueso Date: Thu Apr 5 23:52:04 2012 +0200 lib: random utilities Add a random number(s) generator specific file. The intial functions are based on what libuuid provide. I did some modifications like avoid WIN32 checks - this is util-LINUX. [kzak@redhat.com: - move jrand_seed to lib/randutils.c - use TLS for jrand_seed (like original code from libuuid) - use size_t for buffer sizes - add close() to random_get_bytes] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/randutils.h | 12 +++++ lib/Makefile.am | 2 + lib/randutils.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 0 deletions(-) commit c344350948e80a3da04ecd8a88d82edcaf953fe2 Author: Karel Zak Date: Tue Apr 10 12:29:10 2012 +0200 lib/blkdev: fix compiler warning [-Wreturn-type] ../lib/blkdev.c: In function ‘blkdev_get_geometry’: ../lib/blkdev.c:287:1: warning: control reaches end of non-void function [-Wreturn-type] Signed-off-by: Karel Zak lib/blkdev.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 9c45d49fe01c1c8f971d7d2d664e40dd82d00cf5 Author: Petr Uzel Date: Fri Apr 6 16:53:13 2012 +0200 sfdisk: fix calculation due to type mismatch (ix86) Instructing sfdisk to create one partition spanning across entire disk (",,") on 32bit system, if the disk is sufficiently large (~2TB) leads to wrong calculation in compute_start_sect() due to type mismatch. Can be reproduced as: -------------------------- linux-3ln5:~ # modprobe scsi_debug virtual_gb=2000 linux-3ln5:~ # sfdisk /dev/sda <<< ',,' Checking that no-one is using this disk right now ... OK Disk /dev/sda: 261083 cylinders, 255 heads, 63 sectors/track sfdisk: ERROR: sector 0 does not have an msdos signature sfdisk: /dev/sda: unrecognized partition table type Old situation: sfdisk: No partitions found no room for partition descriptor sfdisk: bad input -------------------------- Addresses: https://bugzilla.novell.com/show_bug.cgi?id=754789 Reported-by: Dan Mares Signed-off-by: Petr Uzel fdisk/sfdisk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 0b66315a8e6d6744e25f63ff405f80eef83b7d48 Author: Sami Kerola Date: Thu Apr 5 22:40:49 2012 +0200 docs: eject.1: align with Documentation/howto-man-page.txt * Add spaces after dots (English spacing). * Add line break macros. * Use URL and email macros where appropriate. * Fix typo at the end of the manual (s/lsblk/eject/). Signed-off-by: Sami Kerola sys-utils/eject.1 | 96 ++++++++++++++++++++++++++++------------------------- 1 files changed, 51 insertions(+), 45 deletions(-) commit 92091356f9c905b754b11acab595d10192eda3d7 Author: Sami Kerola Date: Thu Apr 5 22:40:48 2012 +0200 eject: close open file [cppcheck] [eject.c:498]: (error) Resource leak: f Signed-off-by: Sami Kerola sys-utils/eject.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 38de283e352714fc1462cffb91b41f8f1a3fc7f8 Author: Sami Kerola Date: Thu Apr 5 22:40:47 2012 +0200 eject: inform why open failed Mostly to cover common case when user does not have permission to use eject. Signed-off-by: Sami Kerola sys-utils/eject.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 958d2b712a55b09657ebadeac3a91c848179b747 Author: Davidlohr Bueso Date: Thu Apr 5 22:35:19 2012 +0200 strutils: return success on test program Signed-off-by: Davidlohr Bueso lib/strutils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit df3449d541701b9e41ed5fb33e9dbf2bd601094c Author: Mike Frysinger Date: Thu Apr 5 11:50:46 2012 -0400 eject: use CDROM_DRIVE_STATUS if available for tray toggling One some platforms, the -T option can be unreliable (see reference bug report for some examples). Instead, if the kernel supports the cdrom status ioctl, use that to ask explicitly for the current tray status and then open/close accordingly. The eject_cdrom() func was reworked slightly, but none of the existing callers care about the explicit normalization to [0,1] values, so have it return the raw value so we can convert toggle_tray() over to using that. Finally, now that toggle_tray() uses a lot of helper functions, drop the check on CDROMCLOSETRAY. The sub-functions take care of that. Reference: https://bugs.gentoo.org/261880 Signed-off-by: Mike Frysinger sys-utils/eject.c | 52 ++++++++++++++++++++++++++++++++-------------------- 1 files changed, 32 insertions(+), 20 deletions(-) commit 0cb8dc47e4666eccda18eb78f91475d5f6531491 Author: Mike Frysinger Date: Thu Apr 5 11:50:45 2012 -0400 eject(1): fix typo in mount(1) reference Signed-off-by: Mike Frysinger sys-utils/eject.1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e99f842daffe0fd19a03fa939fba9b9500edda93 Author: Mike Frysinger Date: Thu Apr 5 11:50:44 2012 -0400 eject: constify array Signed-off-by: Mike Frysinger sys-utils/eject.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 64128b705c2137706bb7ed3a15d3803509e0a63e Author: Davidlohr Bueso Date: Wed Apr 4 19:01:24 2012 +0200 fdisk: move kernel geometry into blkdev This is a more generic place for this ioctl. Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 15 +-------------- include/blkdev.h | 3 +++ lib/blkdev.c | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 14 deletions(-) commit e00fa45272e1acdb613681ac57aecc352223d2ee Author: Dave Reisner Date: Tue Mar 27 08:53:58 2012 -0400 fsck: don't free fstab table on parse failure Even if we fail parsing, fstab gets referenced later in the code (and will subsequently crash via heap corruption). Take the easy way out and simply avoid deallocating this table, as it will be freed for us on program exit regardless. Signed-off-by: Dave Reisner disk-utils/fsck.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit b2d4a671a5432220ba3fc9a09a31df66695ad926 Author: Karel Zak Date: Fri Apr 6 10:12:32 2012 +0200 sfdisk: make -l less verbose about missing PT Signed-off-by: Karel Zak fdisk/sfdisk.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) commit 4f469e588df4f2867bd575a4c899135a9a41e9c4 Merge: 8265242 f33fa26 Author: Karel Zak Date: Thu Apr 5 15:58:02 2012 +0200 Merge branch 'eject' * eject: (47 commits) tests: use eject --force eject: use BUILD_EJECT, move to sys-utils eject: clean up usage() eject: clean up man page eject: add --force option eject: check for hotplug/removable attribute eject: remove obsolete code, use EXIT_* macros tests: add umount-by-eject tests eject: improve work with partitioned devices lib/sysfs: improve sysfs_is_partition_dirent() eject: call umount rather than eject: use libmount to detect if cdrom is mounted eject: make the code robust eject: use SG_IO ioctl for scsi eject: support CDIOCEJECT ioctl eject: new close_tray code from Fedora eject: new auto_eject code from Fedora eject: add -X from Fedora eject: add --manualeject from fedora eject: clean up devname usage ... commit f33fa26e0f7ac68ad09d04bf76a013f8102eccb9 Author: Karel Zak Date: Thu Apr 5 15:57:12 2012 +0200 tests: use eject --force Signed-off-by: Karel Zak tests/commands.sh.in | 2 +- tests/ts/eject/umount | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) commit 88a3f049ec48b59eb9373d342e52759c1f9261ec Author: Karel Zak Date: Thu Apr 5 15:39:44 2012 +0200 eject: use BUILD_EJECT, move to sys-utils Signed-off-by: Karel Zak configure.ac | 3 +- misc-utils/.gitignore | 1 - misc-utils/Makefile.am | 10 - misc-utils/eject.1 | 154 ------- misc-utils/eject.c | 1082 ------------------------------------------------ sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 13 + sys-utils/eject.1 | 154 +++++++ sys-utils/eject.c | 1082 ++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 1251 insertions(+), 1249 deletions(-) commit 652ddc0b1bb1a0188a7a4da7c2fabec85b0de583 Author: Karel Zak Date: Thu Apr 5 13:21:09 2012 +0200 eject: clean up usage() Signed-off-by: Karel Zak misc-utils/eject.c | 64 ++++++++++++++++++++++++++------------------------- 1 files changed, 33 insertions(+), 31 deletions(-) commit 312111c2f65ff10c2abc163d007d5cd87f23a0aa Author: Karel Zak Date: Thu Apr 5 13:12:16 2012 +0200 eject: clean up man page Signed-off-by: Karel Zak misc-utils/eject.1 | 436 +++++++++++++++------------------------------------- 1 files changed, 124 insertions(+), 312 deletions(-) commit 8bb4a6cb88eb65bb97fffe18bc334b3ff0ab862b Author: Karel Zak Date: Thu Apr 5 12:24:20 2012 +0200 eject: add --force option Signed-off-by: Karel Zak misc-utils/eject.1 | 6 +++++- misc-utils/eject.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) commit de12e1bba1c4318dadfde0d3d69eabe913d072a3 Author: Karel Zak Date: Thu Apr 5 12:06:23 2012 +0200 eject: check for hotplug/removable attribute * based on code from Fedora * supported are only: - /sys/dev/block//removable devices - devices connected by usb, ieee1394, pcmcia, mmc or ccw subsystem. Frankly, this heuristic sucks -- all is hot-pluggable in this days, but it's probably good idea to restrict the default behavior to avoid user's mistakes. Signed-off-by: Karel Zak misc-utils/eject.c | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 123 insertions(+), 2 deletions(-) commit 45ca68ece78dd5d0f83863e33bfad2cc88fc2d1e Author: Sami Kerola Date: Wed Apr 4 20:04:39 2012 +0200 disk-utils: verify writing to streams was successful Signed-off-by: Sami Kerola disk-utils/blockdev.c | 2 ++ disk-utils/elvtune.c | 2 ++ disk-utils/fdformat.c | 2 ++ disk-utils/fsck.c | 2 ++ disk-utils/fsck.cramfs.c | 2 ++ disk-utils/fsck.minix.c | 2 ++ disk-utils/isosize.c | 2 ++ disk-utils/mkfs.bfs.c | 2 ++ disk-utils/mkfs.c | 2 ++ disk-utils/mkfs.cramfs.c | 2 ++ disk-utils/mkfs.minix.c | 2 ++ disk-utils/mkswap.c | 2 ++ disk-utils/raw.c | 2 ++ disk-utils/swaplabel.c | 2 ++ 14 files changed, 28 insertions(+), 0 deletions(-) commit b2d28533ddd536f32dc18097524af3498cc0ebf0 Author: Sami Kerola Date: Wed Apr 4 20:02:04 2012 +0200 fdisk: verify writing to streams was successful Signed-off-by: Sami Kerola fdisk/cfdisk.c | 2 ++ fdisk/fdisk.c | 2 ++ fdisk/gpt.c | 2 ++ fdisk/partitiontype.c | 3 +++ fdisk/sfdisk.c | 2 ++ 5 files changed, 11 insertions(+), 0 deletions(-) commit 3862f68538b0f62ff448fa9c20b8fcfb948deeb1 Author: Sami Kerola Date: Wed Apr 4 20:01:07 2012 +0200 getopt: verify writing to streams was successful Signed-off-by: Sami Kerola getopt/getopt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit db116df726f640699e500590d50200b9df6115a2 Author: Sami Kerola Date: Wed Apr 4 19:59:35 2012 +0200 hwclock: verify writing to streams was successful Signed-off-by: Sami Kerola hwclock/hwclock.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 439cdf1e2475d2f6622c151419f90c7da6de1434 Author: Sami Kerola Date: Wed Apr 4 19:58:34 2012 +0200 login-utils: verify writing to streams was successful Signed-off-by: Sami Kerola login-utils/chfn.c | 2 ++ login-utils/chsh.c | 2 ++ login-utils/islocal.c | 2 ++ login-utils/last.c | 2 ++ login-utils/logindefs.c | 2 ++ login-utils/newgrp.c | 2 ++ login-utils/setpwnam.c | 6 ++---- login-utils/sulogin.c | 2 ++ login-utils/vipw.c | 6 ++++-- 9 files changed, 20 insertions(+), 6 deletions(-) commit c05a80ca6385b85c30094390f31615152adfed2e Author: Sami Kerola Date: Wed Apr 4 19:56:48 2012 +0200 misc-utils: verify writing to streams was successful Signed-off-by: Sami Kerola misc-utils/blkid.c | 2 ++ misc-utils/cal.c | 2 ++ misc-utils/ddate.c | 2 ++ misc-utils/findfs.c | 2 ++ misc-utils/findmnt.c | 2 ++ misc-utils/kill.c | 2 ++ misc-utils/logger.c | 2 ++ misc-utils/look.c | 2 ++ misc-utils/lsblk.c | 2 ++ misc-utils/lslocks.c | 2 ++ misc-utils/mcookie.c | 11 +++-------- misc-utils/namei.c | 2 ++ misc-utils/rename.c | 2 ++ misc-utils/uuidd.c | 2 ++ misc-utils/uuidgen.c | 2 ++ misc-utils/whereis.c | 2 ++ misc-utils/wipefs.c | 2 ++ 17 files changed, 35 insertions(+), 8 deletions(-) commit f65c6d4e8272cacd5cc7b4950b71869623c79da6 Author: Sami Kerola Date: Wed Apr 4 19:54:15 2012 +0200 mount: verify writing to streams was successful Signed-off-by: Sami Kerola mount/mount.c | 2 ++ mount/mount_mntent.c | 6 ++++-- mount/umount.c | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) commit 757bbfad4f78112a8bb537dff51790eb9b5b9e57 Author: Sami Kerola Date: Wed Apr 4 19:53:13 2012 +0200 partx: verify writing to streams was successful Signed-off-by: Sami Kerola partx/partx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit ed8ec2a65d468b638d865d6fdafe0a249ca74c91 Author: Sami Kerola Date: Wed Apr 4 19:51:32 2012 +0200 schedutils: verify writing to streams was successful Signed-off-by: Sami Kerola schedutils/chrt.c | 3 ++- schedutils/ionice.c | 2 ++ schedutils/taskset.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletions(-) commit efb8854f4cfa335f3ad72d79a84589110c2a8e87 Author: Sami Kerola Date: Wed Apr 4 19:49:40 2012 +0200 sys-utils: verify writing to streams was successful Signed-off-by: Sami Kerola sys-utils/arch.c | 2 ++ sys-utils/chcpu.c | 2 ++ sys-utils/ctrlaltdel.c | 2 ++ sys-utils/cytune.c | 2 ++ sys-utils/dmesg.c | 2 ++ sys-utils/fallocate.c | 3 ++- sys-utils/flock.c | 2 ++ sys-utils/fsfreeze.c | 2 ++ sys-utils/fstrim.c | 2 ++ sys-utils/ipcmk.c | 2 ++ sys-utils/ipcrm.c | 2 ++ sys-utils/ipcs.c | 2 ++ sys-utils/ldattach.c | 2 ++ sys-utils/losetup.c | 2 ++ sys-utils/lscpu.c | 2 ++ sys-utils/mount.c | 2 ++ sys-utils/mountpoint.c | 2 ++ sys-utils/pivot_root.c | 2 ++ sys-utils/prlimit.c | 2 ++ sys-utils/readprofile.c | 2 ++ sys-utils/renice.c | 2 ++ sys-utils/rtcwake.c | 5 ++++- sys-utils/setarch.c | 2 ++ sys-utils/setsid.c | 2 ++ sys-utils/swapon.c | 2 ++ sys-utils/switch_root.c | 2 ++ sys-utils/tunelp.c | 2 ++ sys-utils/umount.c | 2 ++ sys-utils/unshare.c | 2 ++ 29 files changed, 60 insertions(+), 2 deletions(-) commit cdd2a8c360c70d16804ace7cc923a6c6bb7c9ca9 Author: Sami Kerola Date: Wed Apr 4 19:44:04 2012 +0200 term-utils: verify writing to streams was successful Signed-off-by: Sami Kerola term-utils/mesg.c | 3 +++ term-utils/script.c | 16 ++++++++++++---- term-utils/scriptreplay.c | 2 ++ term-utils/setterm.c | 5 ++++- term-utils/ttymsg.c | 3 ++- term-utils/wall.c | 5 ++++- term-utils/write.c | 3 +++ 7 files changed, 30 insertions(+), 7 deletions(-) commit b87cbe8486a2799a137c8100afaa05b352bb0ccf Author: Sami Kerola Date: Wed Apr 4 19:39:15 2012 +0200 text-utils: verify writing to streams was successful Signed-off-by: Sami Kerola text-utils/col.c | 4 ++-- text-utils/colcrt.c | 4 ++-- text-utils/colrm.c | 5 +++-- text-utils/column.c | 5 ++--- text-utils/hexdump.c | 2 ++ text-utils/more.c | 18 ++++++++++-------- text-utils/pg.c | 2 ++ text-utils/rev.c | 2 ++ text-utils/tailf.c | 2 ++ text-utils/ul.c | 5 ++--- 10 files changed, 29 insertions(+), 20 deletions(-) commit 302e423dc1a6dd8f72e126ec3279a14938da625a Author: Sami Kerola Date: Wed Apr 4 19:22:08 2012 +0200 include: add stream error checking facility The close_stream() is copied from GNU lib. Inspiration to do this is talk by Jim Meyering - Goodbye World! The perils of relying on output streams in C. Reference: http://www.irill.org/events/ghm-gnu-hackers-meeting/videos/jim-meyering-goodbye-world-the-perils-of-relying-on-output-streams-in-c Signed-off-by: Sami Kerola include/Makefile.am | 1 + include/closestream.h | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 0 deletions(-) commit 8265242b22a672d592025ec66365d32d60429557 Author: Peter Rajnoha Date: Wed Apr 4 13:17:38 2012 +0200 lsblk: count with terminating character, man page -s entry Signed-off-by: Peter Rajnoha misc-utils/lsblk.8 | 2 ++ misc-utils/lsblk.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) commit 4581bd9c6797ea3b753c1d2019a37a84975d749a Author: Karel Zak Date: Wed Apr 4 12:18:32 2012 +0200 build-sys: disable chkdupexe by default, mark as deprecated Signed-off-by: Karel Zak Documentation/deprecated.txt | 6 ++++++ configure.ac | 17 +++++++++++++---- misc-utils/Makefile.am | 12 ++++++++---- 3 files changed, 27 insertions(+), 8 deletions(-) commit 9554f7abd889cf65918182666ab40e05f73da791 Author: Karel Zak Date: Tue Apr 3 13:43:50 2012 +0200 lsblk: use libmount to get mountpoints/swaps Signed-off-by: Karel Zak configure.ac | 1 + misc-utils/Makefile.am | 5 +-- misc-utils/lsblk.c | 75 ++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 66 insertions(+), 15 deletions(-) commit ce4dd666f4e4cab7f0a41274c6b48da8e41860fd Author: Karel Zak Date: Tue Apr 3 13:20:32 2012 +0200 libmount: add support to parse /proc/swaps Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 8 +++- libmount/src/fs.c | 79 +++++++++++++++++++++++++++++ libmount/src/libmount.h.in | 7 +++ libmount/src/libmount.sym | 6 ++ libmount/src/mountP.h | 11 +++- libmount/src/tab_parse.c | 95 ++++++++++++++++++++++++++++++++++- libmount/src/utils.c | 11 ++++ 7 files changed, 213 insertions(+), 4 deletions(-) commit 7104bedb782f445bc432f877d993b682521cbdba Author: Karel Zak Date: Tue Apr 3 11:32:12 2012 +0200 libmount: clean up MNT_FMT_* usage in parser Signed-off-by: Karel Zak libmount/src/tab_parse.c | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) commit 72bec4d0dd5c94f15ed7c17d3452ba87ed737209 Author: Karel Zak Date: Mon Apr 2 17:34:07 2012 +0200 mount: (old) check for LD_FLAGS_AUTOCLEAR more carefully Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=803799 Signed-off-by: Karel Zak mount/umount.c | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) commit 6219c25ecbaf07c4e8c44e24bcc74428b5ec7bf1 Author: Karel Zak Date: Mon Apr 2 17:33:34 2012 +0200 lib/loopdev: more robust initialization Signed-off-by: Karel Zak include/loopdev.h | 2 ++ lib/loopdev.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletions(-) commit 8063efea36cb41c212249a3164a8ed3d354e7bae Author: Karel Zak Date: Mon Apr 2 13:21:33 2012 +0200 rtcwake: tiny coding style change Signed-off-by: Karel Zak sys-utils/rtcwake.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit d2ec3e33f104a97fcc9e3158637a22870d5fb14b Author: Sami Kerola Date: Sun Apr 1 20:19:31 2012 +0200 script: error in usage() output Error originates to commit 3ff526391fb5c6b33418dc9cfec31c2ff9b4792e which is bit more than year, and part or releases v2.20 & v2.21. Signed-off-by: Sami Kerola term-utils/script.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 73aa8894791c08d2d308f7874b0d461f049b8cea Author: Sami Kerola Date: Sun Apr 1 20:19:30 2012 +0200 tests: hwclock: locate ntpdate by using path Signed-off-by: Sami Kerola tests/ts/hwclock/systohc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 1707576155daf644c5df3c1776b52fd297ff9318 Author: Paul Fox Date: Fri Mar 30 08:16:50 2012 -0400 rtcwake: only invoke RTC_AIE_ON/OFF ioctls in pairs many rtc drivers don't implement the RTC_AIE_ON/OFF ioctls at all -- so if we never tried to enable the alarm interrupt, don't try to disable it later. Signed-off-by: Paul Fox sys-utils/rtcwake.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit a3ef250e90a76fca27045466b710e75bd9a6b56f Author: Karel Zak Date: Fri Mar 30 16:57:47 2012 +0200 delpart: improve error messages Signed-off-by: Karel Zak partx/delpart.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 0392dcf920cf448d7c651c47304ddfeaba9efdba Author: Karel Zak Date: Fri Mar 30 16:56:28 2012 +0200 addpart: improve error messages Signed-off-by: Karel Zak partx/addpart.c | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) commit 7e08b7d3ce4acbaf64425c9fe6c2836a6921402a Author: Sami Kerola Date: Sun Mar 18 21:45:11 2012 +0100 tools: ko-release: make scripts bourne sh compliant [checkbashisms] $ checkbashisms ko-release-gen possible bashism in ko-release-gen line 31 ('function' is useless): function die { possible bashism in ko-release-gen line 36 ('function' is useless): function add_file { possible bashism in ko-release-gen line 68 ('function' is useless): function add_html_dir { possible bashism in ko-release-gen line 72 (brace expansion): for fl in $(ls $src/*.{html,css,png}); do $ checkbashisms ko-release-push possible bashism in ko-release-push line 29 ('function' is useless): function die { possible bashism in ko-release-push line 34 ('function' is useless): function push_file { Signed-off-by: Sami Kerola tools/ko-release-gen | 8 ++++---- tools/ko-release-push | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) commit 83134551610941b11081128fcce12ba95ed47964 Author: Sami Kerola Date: Sun Mar 18 21:38:39 2012 +0100 tools: config-gen: make scripts bourne sh compliant [checkbashisms] $ checkbashisms config-gen script config-gen does not appear to be a /bin/sh script possible bashism in config-gen line 27 (export foo=bar should be foo=bar; export foo): export CFLAGS="$CFLAGS" $ checkbashisms config-gen-functions.sh possible bashism in config-gen-functions.sh line 14 ('function' is useless): Signed-off-by: Sami Kerola tools/config-gen | 5 +++-- tools/config-gen-functions.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) commit 8b32e57f290c63685e1325e70006e7a8ba62add2 Author: Sami Kerola Date: Sun Mar 18 21:34:09 2012 +0100 tools: checkconfig.sh: make scripts bourne sh compliant [checkbashisms] script checkconfig.sh does not appear to be a /bin/sh script possible bashism in checkconfig.sh line 14 ('function' is useless): function die() { possible bashism in checkconfig.sh line 27 ('((' should be '$(('): while (( "$#" )); do Signed-off-by: Sami Kerola tools/checkconfig.sh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit b0660441de984582c4c2fc97fa22c0cea2c17d84 Author: Sami Kerola Date: Sun Mar 18 21:10:35 2012 +0100 reset: make scripts bourne sh compliant [checkbashisms] In addition strict compliance the commit will take variable name quoting, and $(command) substitution in use. $ checkbashisms reset reset.033c possible bashism in reset line 11 ('$[' should be '$(('): bot=$[ ${LINES:-`tput lines`} - 1 ] possible bashism in reset.033c line 11 (echo -e): echo -e \\033c Signed-off-by: Sami Kerola term-utils/reset | 6 +++--- term-utils/reset.033c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) commit 47a9edbd6d63d279ef2c92c63716d4dbbe40fc66 Author: Sami Kerola Date: Sun Mar 18 17:32:18 2012 +0100 fstrim: add --version and align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/fstrim.c | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) commit 13814e3697a7f92c43d8c133f13a433d605f8708 Author: Sami Kerola Date: Sun Mar 18 17:22:57 2012 +0100 findmnt: remove dublicate usage() line Signed-off-by: Sami Kerola misc-utils/findmnt.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 584aed6b02cb490f271b9eeb6b229ee0409b3302 Author: Sami Kerola Date: Sun Mar 18 16:46:42 2012 +0100 fallocate: add --version and align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/fallocate.c | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) commit 1275d8a1c1a2ba836facebb1dc315112ddfbafe6 Author: Sami Kerola Date: Sun Mar 18 16:11:28 2012 +0100 swaplabel: add --version and align with howto-usage-function.txt Signed-off-by: Sami Kerola disk-utils/swaplabel.c | 26 +++++++++++++++----------- 1 files changed, 15 insertions(+), 11 deletions(-) commit 2a11944f16e73ebb219ce50169bcc0e36f873bc9 Author: Sami Kerola Date: Sun Mar 18 14:13:31 2012 +0100 fsck.minix: fix printf format warning fsck.minix.c:1302:3: warning: ISO C does not support the '%m' gnu_printf format [-Wformat] Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a2bfda30bae75323b58519efa84b60d709a1d184 Author: Sami Kerola Date: Sun Mar 18 13:48:30 2012 +0100 fsck.minix: clean up coding style $ indent -linux -psl -blf disk-utils/fsck.minix.c Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 702 +++++++++++++++++++++++------------------------ 1 files changed, 342 insertions(+), 360 deletions(-) commit 78ecf61b0e600b0b5c0ff39ab521c7298537779e Author: Sami Kerola Date: Sun Mar 18 13:27:19 2012 +0100 fsck.minix: align with howto-usage-function.txt Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) commit d4a573bc7bb272f0867ed2067ba5fe7dd6c21eaf Author: Sami Kerola Date: Sun Mar 18 13:11:46 2012 +0100 fsck.minix: use rpmatch() for yes/no question Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 44 +++++++++++++++++++++++--------------------- 1 files changed, 23 insertions(+), 21 deletions(-) commit 891327c091851e0637ba9100922f7881784c8995 Author: Sami Kerola Date: Sun Mar 18 13:09:33 2012 +0100 fsck.minix: use symbolic exit codes Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit 922ec175e56f1a527e0a32e7a5f1bbb446eed90e Author: Sami Kerola Date: Sat Mar 17 22:53:17 2012 +0100 fsck.cramfs: add long options And align with howto-usage-function.txt Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) commit 397f49961332fa414d2840ba976aa89350b354cb Author: Sami Kerola Date: Sat Mar 17 21:56:06 2012 +0100 pg: align with howto-usage-function.txt Signed-off-by: Sami Kerola text-utils/pg.c | 32 ++++++++++++++++++++++++-------- 1 files changed, 24 insertions(+), 8 deletions(-) commit b6415f124340eb64d6116ac40c5d1e0a632424e9 Author: Sami Kerola Date: Sat Mar 17 21:28:33 2012 +0100 pg: correct version printing in help screen Commit also adds -V option. Signed-off-by: Sami Kerola text-utils/pg.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) commit cd12136371586a74f5732c049c4d1dedecc84b97 Author: Sami Kerola Date: Sat Mar 17 20:46:12 2012 +0100 raw: clean up coding style Signed-off-by: Sami Kerola disk-utils/raw.c | 73 +++++++++++++++++++++-------------------------------- 1 files changed, 29 insertions(+), 44 deletions(-) commit d5fc1b1581c2054caa8671e1119ec803bdbc3326 Author: Sami Kerola Date: Sat Mar 17 20:27:43 2012 +0100 raw: check numeric user inputs Signed-off-by: Sami Kerola disk-utils/raw.c | 31 +++++++++++++++++++++++++++++-- 1 files changed, 29 insertions(+), 2 deletions(-) commit 16d8a9c967e185388dca0c25331f7d32fdc35238 Author: Sami Kerola Date: Sat Mar 17 20:15:25 2012 +0100 raw: use pathnames.h for file locations Signed-off-by: Sami Kerola disk-utils/raw.c | 28 ++++++++++++++-------------- include/pathnames.h | 7 +++++++ 2 files changed, 21 insertions(+), 14 deletions(-) commit 82b7ef3671808439fb9e3068c92e26df8c38c857 Author: Sami Kerola Date: Sat Mar 17 20:05:56 2012 +0100 raw: use libc error printing facilities Signed-off-by: Sami Kerola disk-utils/raw.c | 98 ++++++++++++++++++++--------------------------------- 1 files changed, 37 insertions(+), 61 deletions(-) commit 44e535353e91f18000249de5a3c3e13e0d115caa Author: Sami Kerola Date: Sat Mar 17 18:58:36 2012 +0100 raw: use symbolic exit numbers Signed-off-by: Sami Kerola disk-utils/raw.c | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-) commit 1e0aef8257164d9d2f06e50b262dea31395f8af0 Author: Sami Kerola Date: Sat Mar 17 18:51:59 2012 +0100 raw: add long options and version printing Signed-off-by: Sami Kerola disk-utils/raw.c | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) commit 7c7c8bc53ba9bb7a5a5bf17cf66280134833aa81 Author: Sami Kerola Date: Sat Mar 17 18:38:53 2012 +0100 raw: align with howto-usage-function.txt Signed-off-by: Sami Kerola disk-utils/raw.c | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) commit 04874274a557f41f852ad0a0eefa3d44dc50ad8f Author: Sami Kerola Date: Sat Mar 17 18:10:58 2012 +0100 delpart: align with util-linux coding standards Add long options and usage function, use gnu errror printing facilities and validate inputs. Signed-off-by: Sami Kerola partx/Makefile.am | 1 + partx/delpart.c | 73 ++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 54 insertions(+), 20 deletions(-) commit 791130208506f50be63672fa733a70db871900da Author: Sami Kerola Date: Sat Mar 17 18:04:37 2012 +0100 addpart: align with util-linux coding standards Add long options and usage function, use gnu errror printing facilities and validate inputs. Signed-off-by: Sami Kerola partx/Makefile.am | 1 + partx/addpart.c | 78 +++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 56 insertions(+), 23 deletions(-) commit 72bb1cc9323c60d7baa9603d4eb38502e659a78f Author: Sami Kerola Date: Thu Mar 15 23:12:30 2012 +0100 partx: add --version option Th commit 8275b7326e535c6d745414baca680f03e9eccdf3 added --version to usage() but not as working option. Signed-off-by: Sami Kerola partx/partx.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 6a801e1a38b7cdbc39981f00ed23734cc42b57ff Author: Sami Kerola Date: Thu Mar 15 23:06:39 2012 +0100 setterm: correct manual page reference An error from commit faa0548de47df5691cf56dd49daaba8dbc89d34a Signed-off-by: Sami Kerola term-utils/setterm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit efe030d66c1c8a892bec165e2d181ef157117f11 Author: Sami Kerola Date: Thu Mar 15 22:58:09 2012 +0100 findfs: add --version & align with howto-usage-function.txt Signed-off-by: Sami Kerola misc-utils/findfs.c | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) commit 5cc12c4090698e6a67f7645228fc5db66f79c279 Author: Sami Kerola Date: Thu Mar 15 22:32:48 2012 +0100 findmnt: add --version & align with howto-usage-function.txt Signed-off-by: Sami Kerola misc-utils/findmnt.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) commit 30b61b7bd7964c692caf0b726797504e0b25f8a0 Author: Sami Kerola Date: Thu Mar 15 22:24:41 2012 +0100 mountpoint: add --version & align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/mountpoint.c | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) commit f568e7934a5a55333edbea971b190f5f04464a61 Author: Karel Zak Date: Fri Mar 30 16:18:54 2012 +0200 hexdump: use strtosize_or_err() Signed-off-by: Karel Zak text-utils/hexsyntax.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) commit e9e426eb78ab49b0fab9ecd117bc6a59efb356bd Author: Karel Zak Date: Fri Mar 30 16:18:30 2012 +0200 losetup: use strtosize_or_err() Signed-off-by: Karel Zak sys-utils/losetup.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) commit 28c710217c0c9e8e846b2de444a6293120b662fd Author: Karel Zak Date: Fri Mar 30 16:18:18 2012 +0200 fstrim: use strtosize_or_err() Signed-off-by: Karel Zak sys-utils/fstrim.c | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) commit 99727496ed2117ec2965ab74fda2020fdac9994e Author: Karel Zak Date: Fri Mar 30 16:17:49 2012 +0200 wipefs: use strtosize_or_err() Signed-off-by: Karel Zak misc-utils/wipefs.c | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) commit 3c2662d5651bcd8348c85f76b02b65301170ab83 Author: Karel Zak Date: Fri Mar 30 16:17:36 2012 +0200 blkid: use strtosize_or_err() Signed-off-by: Karel Zak misc-utils/blkid.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) commit a99c913091cdf0c392a959ecfe3505bc74a56155 Author: Karel Zak Date: Fri Mar 30 16:11:31 2012 +0200 lib/strutils: add strtosize_or_err, clean up * add strtosize_or_err(), we use strtosize() + err() on many places * add STRTOXX_EXIT_CODE to overwrite the default EXIT_FAILURE * remove else-after-noreturn (e.g. if (foo) err(...); else err(...)) * clean up indent... Signed-off-by: Karel Zak include/strutils.h | 7 ++++ lib/strutils.c | 82 ++++++++++++++++++++++++++++----------------------- 2 files changed, 52 insertions(+), 37 deletions(-) commit d636d6d82acb7c62c670fc0d291182cb3b950118 Author: Bernhard Voelker Date: Mon Mar 26 11:30:16 2012 +0200 docs: clarify KiB vs. KB in man pages Update the man pages of blkid, wipefs, fallocate, fstrim, losetup and hexdump to clarify the suffixes for the numerical values of the offset and size/length arguments regarding KiB=1024 vs KB=1000. Also mention the ZiB/YiB and ZB/YB suffixes supported by strtosize(). Signed-off-by: Bernhard Voelker misc-utils/blkid.8 | 7 ++++--- misc-utils/wipefs.8 | 7 ++++--- sys-utils/fallocate.1 | 7 ++++--- sys-utils/fstrim.8 | 7 ++++--- sys-utils/losetup.8 | 7 ++++--- text-utils/hexdump.1 | 7 ++++--- 6 files changed, 24 insertions(+), 18 deletions(-) commit 916a74389186b7f0d31ed67de84ff555819650c4 Author: Karel Zak Date: Fri Mar 30 13:43:45 2012 +0200 tools: improve ko-release-* scripts Signed-off-by: Karel Zak tools/ko-release-gen | 5 +++-- tools/ko-release-push | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) commit fab66da5311788c9ea382e06b731beb45f7445e8 Author: Karel Zak Date: Thu Mar 29 15:06:49 2012 +0200 blkid: add note about variable tags and devices order. Reported-by: Michael Conrad Signed-off-by: Karel Zak misc-utils/blkid.8 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 15c939c848a1794396c7ea20cb34ee329d6e8609 Author: Karel Zak Date: Thu Mar 29 12:56:17 2012 +0200 eject: remove obsolete code, use EXIT_* macros Signed-off-by: Karel Zak misc-utils/eject.c | 38 ++++++++++---------------------------- 1 files changed, 10 insertions(+), 28 deletions(-) commit 6030230e4bb30620501e93073a06a69d9773504b Author: Karel Zak Date: Thu Mar 29 12:50:50 2012 +0200 tests: add umount-by-eject tests Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/eject/umount-by-disk | 1 + tests/expected/eject/umount-by-disk-mounted | 1 + .../eject/umount-by-disk-mounted-partition | 2 + tests/expected/eject/umount-by-partition | 2 + tests/expected/eject/umount-by-partition-mounted | 2 + tests/ts/eject/umount | 106 ++++++++++++++++++++ 7 files changed, 115 insertions(+), 0 deletions(-) commit 9b439aa9471ae7db160b3b1a27d9039dc7fa2991 Author: Karel Zak Date: Thu Mar 29 12:44:25 2012 +0200 eject: improve work with partitioned devices * remove horrible regex based code * use /sys to read list of the disk partitions * use always whole-disk device for eject ioctl(s) Signed-off-by: Karel Zak misc-utils/Makefile.am | 6 +- misc-utils/eject.c | 205 ++++++++++++++++++++++++------------------------ 2 files changed, 108 insertions(+), 103 deletions(-) commit 093b20ba2183f38fea1cfd1e5a94ce45c09e6409 Author: Karel Zak Date: Thu Mar 29 12:42:24 2012 +0200 lib/sysfs: improve sysfs_is_partition_dirent() ... to work with absolute disk device path too. Signed-off-by: Karel Zak lib/sysfs.c | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) commit 25c30aa8b974e71270fad54f8117be612b6e83e0 Author: Karel Zak Date: Wed Mar 28 14:24:57 2012 +0200 eject: call umount rather than Signed-off-by: Karel Zak misc-utils/eject.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 9a41136b942fb29f8ae628730837e245c655bed6 Author: Karel Zak Date: Wed Mar 28 14:14:19 2012 +0200 eject: use libmount to detect if cdrom is mounted Signed-off-by: Karel Zak misc-utils/Makefile.am | 7 +-- misc-utils/eject.c | 112 ++++++++++++++++++----------------------------- 2 files changed, 46 insertions(+), 73 deletions(-) commit 5a13cf4ac30441f364af493cc1c0230ea32c550f Author: Karel Zak Date: Tue Mar 27 18:03:14 2012 +0200 eject: make the code robust Signed-off-by: Karel Zak misc-utils/eject.c | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) commit 6ef30f290c9c87428672283cf3df784a40221209 Author: Karel Zak Date: Tue Mar 27 17:55:30 2012 +0200 eject: use SG_IO ioctl for scsi Signed-off-by: Karel Zak misc-utils/eject.c | 71 +++++++++++++++++++++++++-------------------------- 1 files changed, 35 insertions(+), 36 deletions(-) commit a3ae330139831c31534226397c9403caa00f5648 Author: Karel Zak Date: Tue Mar 27 17:53:00 2012 +0200 eject: support CDIOCEJECT ioctl Signed-off-by: Karel Zak misc-utils/eject.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 48a2130c28b0078a5db530c6366da08e31c1135b Author: Karel Zak Date: Tue Mar 27 17:49:38 2012 +0200 eject: new close_tray code from Fedora Signed-off-by: Karel Zak misc-utils/eject.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) commit d7b0a90eacc5a4ec5886f50018679782efcd2a7b Author: Karel Zak Date: Tue Mar 27 17:47:40 2012 +0200 eject: new auto_eject code from Fedora Signed-off-by: Karel Zak misc-utils/eject.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) commit 1abc33266f3e6806c0c9637bd498b1ad0de6c50d Author: Karel Zak Date: Tue Mar 27 17:36:47 2012 +0200 eject: add -X from Fedora Signed-off-by: Karel Zak include/pathnames.h | 1 + misc-utils/eject.1 | 17 +++++++- misc-utils/eject.c | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 118 insertions(+), 3 deletions(-) commit 0bcfb4891b871b30adbaf9aaba80102764d66f3d Author: Karel Zak Date: Tue Mar 27 17:09:12 2012 +0200 eject: add --manualeject from fedora Signed-off-by: Karel Zak misc-utils/eject.1 | 9 +++++++++ misc-utils/eject.c | 43 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 51 insertions(+), 1 deletions(-) commit 7ec1eca8b9fb2026ccdcf92b41e138f82e034b09 Author: Karel Zak Date: Tue Mar 27 16:34:59 2012 +0200 eject: clean up devname usage Signed-off-by: Karel Zak misc-utils/eject.c | 112 ++++++++++++++++++++------------------------------- 1 files changed, 44 insertions(+), 68 deletions(-) commit f1989b79996522ca8ca9dfa3fb65f6f3aa1f083a Author: Karel Zak Date: Tue Mar 27 16:00:46 2012 +0200 eject: clean up verbose messages Signed-off-by: Karel Zak misc-utils/eject.c | 176 ++++++++++++++++++++++++---------------------------- 1 files changed, 80 insertions(+), 96 deletions(-) commit fc5af4b45a7365df1dab406d37aeb3c25a122477 Author: Karel Zak Date: Tue Mar 27 15:01:29 2012 +0200 eject: remove unnecessary variable misc-utils/eject.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) commit c5e814e3806652c90c70fac4e05880fe6996da04 Author: Karel Zak Date: Tue Mar 27 14:59:01 2012 +0200 eject: use xstrdup() Signed-off-by: Karel Zak misc-utils/eject.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 8ccd6edd5f0ab626bf776e9bb9e098eba3341ee2 Author: Karel Zak Date: Tue Mar 27 14:53:37 2012 +0200 eject: rename handle_x_option to set_device_speed Signed-off-by: Karel Zak misc-utils/eject.c | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) commit 3bd1b6825593e1da3086a6a95abff129bf1f8b76 Author: Karel Zak Date: Tue Mar 27 14:49:59 2012 +0200 eject: clean unmount_devices() Signed-off-by: Karel Zak misc-utils/eject.c | 52 ++++++++++++++++++++++++++++++---------------------- 1 files changed, 30 insertions(+), 22 deletions(-) commit b3d62406b862e64a1251655751312efcd21a10ad Author: Karel Zak Date: Tue Mar 27 14:41:18 2012 +0200 eject: clean up umount stuff Signed-off-by: Karel Zak misc-utils/eject.c | 69 ++++++++++++++++++++++++++++----------------------- 1 files changed, 38 insertions(+), 31 deletions(-) commit dc87bd476b1083e5ce4014fa54098d4d3132b711 Author: Karel Zak Date: Tue Mar 27 14:24:42 2012 +0200 eject: clean up eject_* functions Signed-off-by: Karel Zak misc-utils/eject.c | 145 +++++++++++++++++++-------------------------------- 1 files changed, 54 insertions(+), 91 deletions(-) commit f0ade3870c8d131ee1a1950d16020f08112c03a4 Author: Karel Zak Date: Tue Mar 27 14:08:02 2012 +0200 eject: remove unnecessary function Signed-off-by: Karel Zak misc-utils/eject.c | 18 ++---------------- 1 files changed, 2 insertions(+), 16 deletions(-) commit ad5c08f017bb795c4c4587a8e1eadfb66e4838a1 Author: Karel Zak Date: Tue Mar 27 14:05:56 2012 +0200 eject: remove unnecessary checks Signed-off-by: Karel Zak misc-utils/eject.c | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 deletions(-) commit e460d12dfdfa746137b397b3a5e7b715dda88b76 Author: Karel Zak Date: Tue Mar 27 13:56:09 2012 +0200 eject: clean up argv parsing code Signed-off-by: Karel Zak misc-utils/eject.c | 154 +++++++++++++++++++++++----------------------------- 1 files changed, 68 insertions(+), 86 deletions(-) commit 805424cdde9df3ab004f743b18be7176c95894fa Author: Karel Zak Date: Tue Mar 27 13:44:09 2012 +0200 eject: cleanup usage() Signed-off-by: Karel Zak misc-utils/eject.c | 64 ++++++++++++++++++++++++++-------------------------- 1 files changed, 32 insertions(+), 32 deletions(-) commit e9b4675924aaf86c1a12d882d37811087d3bfe50 Author: Karel Zak Date: Tue Mar 27 13:41:25 2012 +0200 lslocks: minor fix in usage() Signed-off-by: Karel Zak misc-utils/lslocks.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit aa8cb034d7eed5d88c64767c20b30b08568ab7e6 Author: Karel Zak Date: Tue Mar 27 13:35:06 2012 +0200 eject: coding style fixes Signed-off-by: Karel Zak misc-utils/eject.c | 46 +++++++++++++++++----------------------------- 1 files changed, 17 insertions(+), 29 deletions(-) commit 3b66f48e23dd0e2a1d7cf318c7698fb192163728 Author: Michal Luscon Date: Wed Feb 29 17:24:40 2012 +0100 sysfs: move blkid_devno_to_wholedisk to sysfs_devno_to_wholedisk Signed-off-by: Michal Luscon include/sysfs.h | 2 + lib/sysfs.c | 129 +++++++++++++++++++++++++++++++++++++++++++++++++ libblkid/src/devno.c | 130 +------------------------------------------------- 3 files changed, 132 insertions(+), 129 deletions(-) commit e2036b6fa8a0fb0467ed3295cf06d25ede3542eb Author: Karel Zak Date: Mon Feb 13 11:16:57 2012 +0100 eject: fix compiler warnings [-Wformat] Signed-off-by: Karel Zak misc-utils/eject.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) commit aa058822d98778be154cadd352ab94c03f4fc965 Author: Karel Zak Date: Mon Feb 13 10:48:38 2012 +0100 build-sys: add eject to .gitignore Signed-off-by: Karel Zak misc-utils/.gitignore | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6154d238211095efc5e21b5b33427241a97416ef Author: Michal Luscon Date: Wed Feb 8 18:19:35 2012 +0100 eject: unification of coding style Signed-off-by: Michal Luscon misc-utils/eject.c | 221 +++++++++++++++++++++++---------------------------- 1 files changed, 100 insertions(+), 121 deletions(-) commit d36e80a7592b5d4c4c8b692a2afdaf5cf26d9b90 Author: Michal Luscon Date: Wed Feb 8 16:27:08 2012 +0100 eject: simplify find_device Signed-off-by: Michal Luscon misc-utils/eject | Bin 77201 -> 0 bytes misc-utils/eject.c | 45 --------------------------------------------- 2 files changed, 0 insertions(+), 45 deletions(-) commit 035ed966a4abe35276c1f60bfea0d31ace667e52 Author: Michal Luscon Date: Wed Feb 8 16:14:38 2012 +0100 eject: remove MountableDevice function Signed-off-by: Michal Luscon misc-utils/eject.c | 53 ---------------------------------------------------- 1 files changed, 0 insertions(+), 53 deletions(-) commit 6d45c65d076ef9c5fc7295c9dcc9051519eb21f9 Author: Michal Luscon Date: Wed Feb 8 16:01:51 2012 +0100 eject: use canonicalize_path to treat symbolic links Signed-off-by: Michal Luscon misc-utils/Makefile.am | 3 ++- misc-utils/eject.c | 40 ++-------------------------------------- 2 files changed, 4 insertions(+), 39 deletions(-) commit e731e6ddf843ff3b3a69ce775fc0a02e4a9e1d58 Author: Michal Luscon Date: Wed Feb 8 13:33:57 2012 +0100 eject: replace fprintf with err and warn Signed-off-by: Michal Luscon misc-utils/eject.c | 88 ++++++++++++++++++++------------------------------- 1 files changed, 35 insertions(+), 53 deletions(-) commit 3c242c654c2c8c051755ecb2aaf1d2eb4d300b53 Author: Michal Luscon Date: Thu Feb 2 18:29:18 2012 +0100 eject: briefer usage Signed-off-by: Michal Luscon misc-utils/eject | Bin 0 -> 77201 bytes 1 files changed, 0 insertions(+), 0 deletions(-) commit 429e321e099f027454f100933c7c43864fc382ce Author: Michal Luscon Date: Thu Feb 2 17:58:25 2012 +0100 eject: modification of parse_arg function Signed-off-by: Michal Luscon misc-utils/Makefile.am | 2 +- misc-utils/eject.c | 64 +++++++++++++++++++++-------------------------- 2 files changed, 30 insertions(+), 36 deletions(-) commit d987782347926f86adc8ee9ab93e9e27c7442279 Author: Michal Luscon Date: Thu Feb 2 16:34:20 2012 +0100 eject: use program_invocation_short_name instead of programName Signed-off-by: Michal Luscon misc-utils/eject.c | 84 ++++++++++++++++++++------------------------------- 1 files changed, 33 insertions(+), 51 deletions(-) commit b35b3b7779be8fcc1ce660c6f1ce54c09605113e Author: Michal Luscon Date: Wed Jan 18 14:19:42 2012 +0100 eject: replace CLOSE and FCLOSE macros by e_close and e_fclose functions Signed-off-by: Michal Luscon misc-utils/eject.c | 58 ++++++++++++++++++++++++++-------------------------- 1 files changed, 29 insertions(+), 29 deletions(-) commit 7f0cd3022a91d19b4fdd4af8f56d901e9ade5a3f Author: Michal Luscon Date: Tue Jan 17 18:23:40 2012 +0100 eject: clean up includes Signed-off-by: Michal Luscon misc-utils/eject.c | 30 +++++++++++------------------- misc-utils/i18n.h | 22 ---------------------- 2 files changed, 11 insertions(+), 41 deletions(-) commit 539feec175651a33cf8df5da488af7e902e6d2ee Author: Michal Luscon Date: Thu Dec 8 16:10:18 2011 +0100 eject: initial merge eject and util-linux Signed-off-by: Michal Luscon configure.ac | 10 + misc-utils/Makefile.am | 6 + misc-utils/eject.1 | 316 ++++++++++++++ misc-utils/eject.c | 1138 ++++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/i18n.h | 22 + 5 files changed, 1492 insertions(+), 0 deletions(-) commit a36e9a94087acb4f375fca000b5968623b6b58a7 Author: Karel Zak Date: Tue Mar 27 12:23:07 2012 +0200 build-sys: move obsolete lib/fsprobe to mount/ Signed-off-by: Karel Zak include/Makefile.am | 1 - include/fsprobe.h | 27 ---------- lib/fsprobe.c | 142 --------------------------------------------------- mount/Makefile.am | 2 +- mount/fsprobe.c | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++ mount/fsprobe.h | 27 ++++++++++ 6 files changed, 170 insertions(+), 171 deletions(-) commit b5b2c388dcf84c3580a056bb680250de6ea77a1a Author: Karel Zak Date: Tue Mar 27 12:13:24 2012 +0200 swapon: use directly blkid rather than fsprobe wrapper * remove dependence on lib/fsprobe.c * reuse already read swap header for --fixpgsz (don't re-read the header by libblkid) Signed-off-by: Karel Zak sys-utils/Makefile.am | 1 - sys-utils/swapon.c | 57 +++++++++++++++++++++++++++++++++++++----------- 2 files changed, 44 insertions(+), 14 deletions(-) commit d2efc7a9448981a4c30d7033bd9331b13da063b0 Author: Karel Zak Date: Tue Mar 27 12:11:53 2012 +0200 tests: add swapon tests for --fixpgsz and fix signature Signed-off-by: Karel Zak tests/expected/swapon/fixpgsz | 1 + tests/expected/swapon/fixsig | 1 + tests/ts/swapon/fixpgsz | 45 +++++++++++++++++++++++++++++++++++++++ tests/ts/swapon/fixsig | 47 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+), 0 deletions(-) commit 24d741d88a31863e82feb3f3a4516d7df006378b Author: Karel Zak Date: Mon Mar 26 13:09:27 2012 +0200 docs: mark udev and list blkid(8) output formats deprecated Signed-off-by: Karel Zak Documentation/deprecated.txt | 5 +++++ misc-utils/blkid.8 | 7 +++++-- misc-utils/blkid.c | 8 ++++---- 3 files changed, 14 insertions(+), 6 deletions(-) commit b24b8e296e68396923142b1f7e1ad423c88ef7ed Author: Karel Zak Date: Mon Mar 26 10:25:19 2012 +0200 tests: update Signed-off-by: Karel Zak tests/expected/fdisk/oddinput | 1 - tests/expected/paths/built-in | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) commit 225b804b6652902ecc0dbf2dc9311640cd55ee83 Author: Karel Zak Date: Mon Mar 26 10:08:48 2012 +0200 Revert "lib/canonicalize: always remove tailing slash" It's overkill to modify unknown paths in a generic function like canonicalize_path(). for example: mount -t fuse 'sshfs#marty@thee:/' /media/thee will be canonicalized to mount -t fuse 'sshfs#marty@thee:' /media/thee and this obvious bug. Reported-by: Martin Panter This reverts commit 28074a0952469aebf021821d95238cfb964d13ff. lib/canonicalize.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) commit 6ad533db97f66164adc1ec3d245a1e2b0dd0e47f Author: Karel Zak Date: Fri Mar 23 18:17:10 2012 +0100 hexdump: update man page for -n and -s Reported-by: Bernhard Voelker Signed-off-by: Karel Zak text-utils/hexdump.1 | 27 ++++----------------------- 1 files changed, 4 insertions(+), 23 deletions(-) commit 71cb4a4f00a2d1457c68b35c4744ba0249068e8b Author: Karel Zak Date: Wed Mar 21 19:43:49 2012 +0100 tests: update iso tests Signed-off-by: Karel Zak tests/expected/blkid/low-probe-iso | 2 ++ tests/expected/blkid/low-probe-iso-joliet | 2 ++ tests/expected/blkid/low-probe-iso-rr-joliet | 2 ++ 3 files changed, 6 insertions(+), 0 deletions(-) commit 807e40c6557ecf52a668b08df0f528bbcdcb33d4 Author: Karel Zak Date: Wed Mar 21 19:35:22 2012 +0100 hexdump: use strtosize() for -n and -s strtosize() is based on uintmax_t and supports all possible suffixes (B,M,G,T ...) Reported-by: Simon de Vlieger Signed-off-by: Karel Zak text-utils/hexdump.c | 2 +- text-utils/hexdump.h | 2 +- text-utils/hexsyntax.c | 25 ++++++++++--------------- 3 files changed, 12 insertions(+), 17 deletions(-) commit 05a9d5120c10ffc21f21db09eec685a7258b2fb4 Author: Andreas Vogel Date: Wed Mar 21 13:43:35 2012 +0100 libblkid: generate pseudo-UUID for ISO9660 image file The UUID is generated from the modification date in the ISO volume descriptor. As GRUB 2 is using this definition for the pseudo UUID for ISO9660 files libblkid would be perfectly compatible with GRUB 2. Signed-off-by: Andreas Vogel Signed-off-by: Karel Zak libblkid/src/superblocks/iso9660.c | 64 +++++++++++++++++++++++++++++++++++- 1 files changed, 63 insertions(+), 1 deletions(-) commit c7b0af96bcd7489424ff291bbbc9d14b2dda9435 Author: Dong Hao Date: Wed Mar 21 13:50:14 2012 +0800 mount: fix recursively propagation mounting Provide the recursive flag of propagation mounting. Recursive flag could be used together with propagation flag. [kzak@redhat.com: - add MS_SILENT to acceptable propagation flags, - fix new code in libmount too] Signed-off-by: Karel Zak Signed-off-by: Dong Hao libmount/src/context_mount.c | 5 +++-- mount/mount.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) commit 9895daca9cb9611b6565434d29619f0d28ea9e81 Author: Karel Zak Date: Tue Mar 6 13:56:54 2012 +0100 fsck: tiny coding style fix Signed-off-by: Karel Zak disk-utils/fsck.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 0556def4cd12ad6407232022a37e7788743bd4fe Author: Karel Zak Date: Tue Mar 6 13:36:28 2012 +0100 fsck: use gettimeofday() for real elapsed time statistic and use shorter "rss" rather than "maxrss" keyword in stats output Signed-off-by: Karel Zak disk-utils/fsck.8 | 2 +- disk-utils/fsck.c | 23 +++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) commit 5a0da00aec3ac23bcb4452a981e4966cfbd84db1 Author: Frank Mayhar Date: Tue Mar 6 13:23:08 2012 +0100 fsck: Add a -r option to report memory and runtime statistics This patch adds a "-r" option to report statistics for each fsck run. It gathers the statistics via wait4() and rusage and reports exit status, system and user CPU time, elapsed wall-clock time and the max RSS. [kzak@redhat.com: - rebase to the latest code, - report all on one line, - use "real" rather than "elapsed"] Signed-off-by: Frank Mayhar Signed-off-by: Karel Zak disk-utils/fsck.8 | 10 +++++++++- disk-utils/fsck.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 2 deletions(-) commit a7b585eac373f2b4322569b4c5deba0c4778c220 Author: Karel Zak Date: Tue Mar 6 12:36:03 2012 +0100 fsck: move to disk-utils directory Signed-off-by: Karel Zak Makefile.am | 4 - configure.ac | 3 +- disk-utils/.gitignore | 5 +- disk-utils/Makefile.am | 8 + disk-utils/fsck.8 | 453 +++++++++++++++ disk-utils/fsck.c | 1513 +++++++++++++++++++++++++++++++++++++++++++++++ fsck/.gitignore | 1 - fsck/Makefile.am | 8 - fsck/fsck.8 | 453 --------------- fsck/fsck.c | 1514 ------------------------------------------------ 10 files changed, 1978 insertions(+), 1984 deletions(-) commit ac8f2843ff9f40a08f73a7ab6579cf785c75e2d5 Author: Karel Zak Date: Mon Feb 20 22:37:56 2012 +0100 fsck: coding stype fixes (calloc, err, ...) Signed-off-by: Karel Zak fsck/fsck.c | 29 ++++++++++++----------------- 1 files changed, 12 insertions(+), 17 deletions(-) commit 7064679f57d195974b42b680cea940c2f2756859 Author: Karel Zak Date: Mon Feb 20 22:22:58 2012 +0100 fsck: don't try to call fsck for undefined fs type Signed-off-by: Karel Zak fsck/fsck.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit 5894bcd46397ff7e1f7f4baf32008353681de919 Author: Karel Zak Date: Mon Feb 20 17:44:51 2012 +0100 fsck: fix coding style Signed-off-by: Karel Zak fsck/fsck.c | 57 ++++++++++++++++++++++++++++++--------------------------- 1 files changed, 30 insertions(+), 27 deletions(-) commit 7ac166bf203ffaecb24deeb5658d312204b0af5c Author: Karel Zak Date: Mon Feb 20 17:36:54 2012 +0100 fsck: remove unnecessary fsck.h Signed-off-by: Karel Zak fsck/Makefile.am | 2 +- fsck/fsck.c | 43 +++++++++++++++++++++++++++++++++++--- fsck/fsck.h | 60 ------------------------------------------------------ 3 files changed, 40 insertions(+), 65 deletions(-) commit 67f09eae5be7f8fb084925bed69fcb2fd0b37130 Author: Karel Zak Date: Mon Feb 20 17:28:53 2012 +0100 fsck: use libmount to check for mounted filesystems Signed-off-by: Karel Zak fsck/Makefile.am | 2 +- fsck/fsck.c | 34 +++++++++++++++++++++++++++++----- fsck/fsck.h | 2 -- 3 files changed, 30 insertions(+), 8 deletions(-) commit ce22ccd08c5176ded607726020b26e2b95470c44 Author: Karel Zak Date: Mon Feb 20 17:18:11 2012 +0100 libmount: improve mnt_tables_is_mounted Signed-off-by: Karel Zak libmount/src/tab.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2a24e16e7c83f26aaefb48be1ddc6122d51794f4 Author: Karel Zak Date: Mon Feb 20 16:39:59 2012 +0100 fsck: remove string_copy() Signed-off-by: Karel Zak fsck/fsck.c | 43 ++++++++++++++++--------------------------- 1 files changed, 16 insertions(+), 27 deletions(-) commit e33b39a8c402b02b758aa54f0a3caff97f5fdbda Author: Karel Zak Date: Thu Feb 16 00:20:02 2012 +0100 fsck: replace fsprobe with libmount utils Signed-off-by: Karel Zak fsck/Makefile.am | 3 +-- fsck/fsck.c | 31 +++++++++++++++++-------------- 2 files changed, 18 insertions(+), 16 deletions(-) commit 2b5051242ec082f12126ae552d12d79d590fe86f Author: Karel Zak Date: Wed Feb 15 14:07:06 2012 +0100 fsck: use libmount for filesystem list libmount provides all necessary functionality required in fsck for work with filesystems descriptions. This patch seems large and invasive, because removes fsck_fs struct, changes: - use libmnt to parse fstab - use libmnt_fs from libmount - replace "fs->" with mnt_fs_* or fs_* functions Signed-off-by: Karel Zak fsck/Makefile.am | 9 +- fsck/fsck.c | 551 ++++++++++++++++++++++++------------------------------ fsck/fsck.h | 20 +-- 3 files changed, 254 insertions(+), 326 deletions(-) commit 947558f53fcf81c20cc27f12a26afd9384b55f89 Author: Karel Zak Date: Mon Feb 13 15:55:45 2012 +0100 fsck: don't duplicate exit code macros Signed-off-by: Karel Zak fsck/fsck.c | 35 ++++++++++++++++++----------------- fsck/fsck.h | 8 -------- 2 files changed, 18 insertions(+), 25 deletions(-) commit 70b604b827fed2c0453e5a6a076e16c3d011b839 Author: Karel Zak Date: Mon Feb 13 15:52:15 2012 +0100 include/exitcodes: clean up names, add _EX_ suffix Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 104 +++++++++++++++++++++++----------------------- disk-utils/mkfs.cramfs.c | 42 +++++++++--------- disk-utils/mkfs.minix.c | 62 ++++++++++++++-------------- include/exitcodes.h | 32 ++++++++------ 4 files changed, 122 insertions(+), 118 deletions(-) commit e50ad218388615667bffa763380fda600b0cec02 Author: Karel Zak Date: Mon Feb 13 15:37:58 2012 +0100 include/exitcodes: add FSCK_DESTRUCT alias Signed-off-by: Karel Zak include/exitcodes.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 41e32d9f8b556671ff45bd5e4b31c842814a6397 Author: Karel Zak Date: Mon Feb 13 15:30:30 2012 +0100 fsck: cosmetic changes in coding style Signed-off-by: Karel Zak fsck/fsck.c | 37 ++++++++++++++++++------------------- 1 files changed, 18 insertions(+), 19 deletions(-) commit 96f3eef55e6dab4249eee4e57fba2bccb373c866 Author: Karel Zak Date: Tue Mar 20 11:13:28 2012 +0100 fdisk: don't print confusing warning on non-partitioned disks Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=740163 Signed-off-by: Karel Zak fdisk/fdisk.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 451d76463c6afd732ae488ec23d68d7ec22d0bee Author: Karel Zak Date: Tue Mar 20 11:04:48 2012 +0100 misc: clenaup SIZE columns in lsblk and findmnt Note that lib/tt.c will never truncate columns without TT_FL_TRUNC or relative column width. So it's fine to set small width for columns with SIZEs, the defined width is minimal width. Signed-off-by: Karel Zak misc-utils/findmnt.c | 8 ++++---- misc-utils/lsblk.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) commit cd4ed46f984f59d20af62107f85988548884ac2d Author: Karel Zak Date: Tue Mar 20 10:43:29 2012 +0100 findmnt: improve --df output * don't print pseudo-filesystems (except tmpfs) * add --all to disable built-in filters * don't overwrite --df --output= with default columns Signed-off-by: Karel Zak misc-utils/findmnt.8 | 10 +++++++--- misc-utils/findmnt.c | 30 +++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 8 deletions(-) commit 1e1df43ca2e5f6a4b6faaba1595cdcbdd06b585e Author: Karel Zak Date: Tue Mar 20 10:42:47 2012 +0100 libmount: add configfs to pseudofs list Signed-off-by: Karel Zak libmount/src/utils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit a6318686396e651f2b722a09940897f5b0120e8a Author: Karel Zak Date: Tue Mar 20 10:42:03 2012 +0100 lib/tt: work more sensitive with large columns Signed-off-by: Karel Zak lib/tt.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit d7bcb2052ebef1b815556b1ad70441c7a7daa385 Author: Karel Zak Date: Tue Mar 20 09:55:24 2012 +0100 findmnt: use xasprintf() Signed-off-by: Karel Zak misc-utils/findmnt.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit 0b6198ec07101e6452b0194b3b783b956aca2776 Author: Dave Reisner Date: Sat Mar 17 23:36:31 2012 -0400 include/ttyutils.h: add include guards Signed-off-by: Dave Reisner include/ttyutils.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit eda399b9950d80a1cc83c9ac50e0262fc6772807 Author: Dave Reisner Date: Sat Mar 17 23:36:33 2012 -0400 findmnt: add -D, --df option to imitate df(1) Signed-off-by: Dave Reisner misc-utils/findmnt.8 | 3 +++ misc-utils/findmnt.c | 20 ++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) commit cb493ccb664169f4c789c7c0e344a20a3e02dfd9 Author: Dave Reisner Date: Sat Mar 17 23:36:30 2012 -0400 tunelp: remove old, now unneeded header malloc and friends are provided by stdlib.h. Signed-off-by: Dave Reisner sys-utils/tunelp.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit a85ef33b164190d3840a8eb6572ceadff54fcaba Author: Dave Reisner Date: Sat Mar 17 23:36:32 2012 -0400 findmnt: add FS size, avail, used, and use% columns Provide display of filesystem attributes from statvfs(3). These are all displayed in human readable format. Signed-off-by: Dave Reisner misc-utils/findmnt.8 | 4 +++ misc-utils/findmnt.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 1 deletions(-) commit 99d618c0eb5fc7dc0d4bb39df3ce5d680ab5b8e2 Author: Dave Reisner Date: Tue Mar 20 09:44:40 2012 +0100 checkxalloc: nudge regex, fix newfound instances Using the -w flag with grep actually fought against us here, and hid some instances where xalloc functions weren't used. Discard it in favor of an explicit word boundary as a prefix to the function name, and extend our requirements on the trailing side of the pattern. This also fixes the few new instances that were overlooked because of the regex's deficiency. [kzak@redhat.com: - fix also newfound in findmnt - remove unnecessary checks after xallocs] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak fdisk/sfdisk.c | 6 ++---- misc-utils/findmnt.c | 8 +------- sys-utils/swapon.c | 6 ++---- tools/checkxalloc.sh | 2 +- 4 files changed, 6 insertions(+), 16 deletions(-) commit 27b35a6d557c91b0ec9ef22e4ac6840766a434f3 Author: Bill Pemberton Date: Fri Mar 16 20:30:46 2012 -0400 findmnt: add -P, --pairs to the man page Signed-off-by: Bill Pemberton misc-utils/findmnt.8 | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 7c3c355faea24d066ac3d1d537739bdff14833b8 Author: Karel Zak Date: Tue Mar 20 09:28:38 2012 +0100 setsid: cleanup usage() Signed-off-by: Karel Zak sys-utils/setsid.c | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) commit 8a2f04ddca527dfbfacbe9c6504e858ef8c5c35d Author: Harald Hoyer Date: Wed Mar 14 10:07:18 2012 +0100 setsid: add option "-c" to set the controlling terminal [kzak@redhat.com: - use STDIN_FILENO rather than 0] Signed-off-by: Karel Zak sys-utils/setsid.1 | 4 ++++ sys-utils/setsid.c | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) commit d0202f1c5ab4e7a54256864484a59addb94625ab Author: Sebastian Andrzej Siewior Date: Wed Feb 29 22:26:19 2012 +0100 build-sys: make the crosscompile path for scanf_cv_alloc_modifier clever My earlier assumption was that scanf_cv_alloc_modifier is unused. This is not true as pointed out by Karel since it used befoe checking for libmount. Argh. So instead saying no I add a test to check for glibc >= 2.7 which provides %m. As of uClibc v0.9.32-rc3 the situation looks the following: | git grep _M_SPEC__ |libc/stdio/_vfprintf.c:/* #define __UCLIBC_HAS_PRINTF_M_SPEC__ */ |libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ |libc/stdio/_vfprintf.c:# ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ |libc/stdio/_vfprintf.c:# endif /* __UCLIBC_HAS_PRINTF_M_SPEC__ */ |libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ |libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ |libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ |libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ |libc/stdio/old_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ |libc/stdio/perror.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__ And other libc user have to bring their own stuff. Signed-off-by: Sebastian Andrzej Siewior configure.ac | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) commit a5ebeca527fc240de705f8ea4d3c4310379f06db Author: Karel Zak Date: Tue Mar 20 09:06:09 2012 +0100 mount: (new) add missing xalloc.h Signed-off-by: Karel Zak sys-utils/mount.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 7961acce46283a29bd9e7629e515908848f8c9e1 Author: Sami Kerola Date: Sat Mar 10 12:29:35 2012 +0100 fileutils: differentiate xmkstemp and xfmkstemp Let developer to choose, case by case, what sort of return value is best in her code. The xmkstemp() is for users who want file descriptor as return value of the function, xfmkstemp() will return FILE pointer. Proposed-By: Karel Zak CC: Davidlohr Bueso Reference: http://marc.info/?l=util-linux-ng&m=133129570124003&w=2 Signed-off-by: Sami Kerola include/fileutils.h | 16 +++++++++++++++- lib/fileutils.c | 23 ++++++++++------------- login-utils/setpwnam.c | 4 ++-- login-utils/vipw.c | 2 +- term-utils/wall.c | 2 +- 5 files changed, 29 insertions(+), 18 deletions(-) commit fd2e8c693e02c0b8ca0503e68bc9fe09dea4f0b2 Author: Sami Kerola Date: Mon Mar 5 21:39:57 2012 +0100 lslocks: use xasprintf for safe allocation Signed-off-by: Sami Kerola misc-utils/lslocks.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit bb9da58e80034425236f91ccf910ef3967688f7c Author: Sami Kerola Date: Mon Mar 5 21:28:41 2012 +0100 tools: add asprintf to checkxalloc script Reported-By: Dave Reisner Signed-off-by: Sami Kerola tools/checkxalloc.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6500ec90de0cc98c2cdbe9d77138b9c230351f39 Author: Sami Kerola Date: Sat Mar 3 20:06:13 2012 +0100 build-sys: fix chkdupexe regression Commit 2897f50a6a6d1aab653c7017f7542d26ac2a8a0b resulted breaking shebang substitution for chkdupexe. Signed-off-by: Sami Kerola configure.ac | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 6f312c89578be7b8d0a47c75a4de4cc8c190e40e Author: Sami Kerola Date: Wed Feb 29 15:54:24 2012 +0100 xalloc: use xasprintf in all files Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 2 +- lib/fileutils.c | 5 +++-- misc-utils/findmnt.c | 7 ++++--- misc-utils/lsblk.c | 2 +- misc-utils/namei.c | 2 +- partx/partx.c | 14 +++++++------- sys-utils/lscpu.c | 2 +- sys-utils/mount.c | 2 +- sys-utils/prlimit.c | 12 ++++++------ 9 files changed, 25 insertions(+), 23 deletions(-) commit eeb31db9b9727f8851ba89970c80787b420ad6d8 Author: Sami Kerola Date: Wed Feb 29 15:49:47 2012 +0100 include: add asprintf wrapper Signed-off-by: Sami Kerola include/xalloc.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 1a0708a21d19aeda1a1734fc63d2d1dfa9fe56fa Author: Sami Kerola Date: Wed Feb 29 14:24:18 2012 +0100 docs: TODO removal, ldattach usage is done Done at Nov 2011. Signed-off-by: Sami Kerola Documentation/TODO | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit 6a91958bf8c64247cb9c8a8b8ff04b3cb7c23f01 Author: Sami Kerola Date: Sat Mar 3 20:50:55 2012 +0100 pathnames: clean up various user database paths Signed-off-by: Sami Kerola include/pathnames.h | 17 ++++------------- login-utils/setpwnam.h | 2 +- tests/expected/paths/built-in | 8 -------- tests/helpers/test_pathnames.c | 9 --------- 4 files changed, 5 insertions(+), 31 deletions(-) commit 46b6bcca5f0c3fbc232da753f970e74c2b55012e Author: Sami Kerola Date: Wed Feb 29 14:09:56 2012 +0100 vipw: use xmkstemp() and lckpwdf() Get rid private locking schema and use libc instead. Signed-off-by: Sami Kerola login-utils/Makefile.am | 3 +- login-utils/setpwnam.h | 39 ++++-------------- login-utils/vipw.8 | 1 + login-utils/vipw.c | 100 ++++++++++++++++++----------------------------- 4 files changed, 49 insertions(+), 94 deletions(-) commit decd963251a33c7cfbcc8870ab8cddf6b849d528 Author: Sami Kerola Date: Wed Feb 29 12:37:51 2012 +0100 setpwnam: use xmkstemp() and lckpwdf() Get rid private locking schema and use libc instead. Signed-off-by: Sami Kerola login-utils/Makefile.am | 3 +- login-utils/setpwnam.c | 52 ++++++++++++++++------------------------------ 2 files changed, 20 insertions(+), 35 deletions(-) commit a000bbb613346617d00009e3904ce7649cc64f87 Author: Sami Kerola Date: Wed Feb 29 15:59:42 2012 +0100 wall: use xmkstemp for temporary file Signed-off-by: Sami Kerola term-utils/Makefile.am | 2 +- term-utils/wall.c | 19 +++++-------------- 2 files changed, 6 insertions(+), 15 deletions(-) commit 6b79eb38ba46a7635a635623b91c2e3aa9326c7d Author: Sami Kerola Date: Wed Feb 29 15:58:51 2012 +0100 lib: add fileutils function collection The fileutils contains xmkstemp function will create temporary file safe and reusable manner. Reference: http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO.html#TEMPORARY-FILES CC: Davidlohr Bueso Signed-off-by: Sami Kerola include/Makefile.am | 5 ++- include/fileutils.h | 6 +++++ lib/Makefile.am | 2 + lib/fileutils.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 2 deletions(-) commit c900336d8b011278822dbc4e38ff9f6419f57ac2 Author: Sami Kerola Date: Wed Feb 29 02:05:22 2012 +0100 chsh: use pathnames.h for paths Signed-off-by: Sami Kerola include/pathnames.h | 1 + login-utils/chsh.c | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) commit 8c3221890a31bad74e9fcd8d34af05522940108a Author: Sami Kerola Date: Wed Feb 29 02:03:51 2012 +0100 chfn: use pathnames.h for paths Signed-off-by: Sami Kerola login-utils/chfn.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 2ca1f4e91e82c773e95bef93847e74d764899c03 Author: Sami Kerola Date: Wed Feb 29 00:50:52 2012 +0100 docs: TODO removal, rpmatch task is done Signed-off-by: Sami Kerola Documentation/TODO | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit 4c5e1f8e7944a6e8db86066fd365517af9c3744b Author: Sami Kerola Date: Wed Feb 29 00:49:43 2012 +0100 vipw: use rpmatch to yes/no question Signed-off-by: Sami Kerola login-utils/vipw.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 041b8ab252739d43dfcc1e898a3e94483287c51b Author: Sami Kerola Date: Wed Feb 29 00:42:16 2012 +0100 mesg: use rpmatch to yes/no question Signed-off-by: Sami Kerola term-utils/mesg.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) commit 34ca51dcc7ce96e7131b110ed807df62f5216eb2 Author: Sami Kerola Date: Wed Feb 29 00:27:04 2012 +0100 sfdisk: use rpmatch to yes/no question Signed-off-by: Sami Kerola fdisk/sfdisk.c | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) commit b3f66f183a0ce19780dcca4ce50916787994b0fb Author: Sami Kerola Date: Tue Feb 28 23:24:01 2012 +0100 docs: TODO removal, login-utils error printing Error printing was fixed at November 2010. Signed-off-by: Sami Kerola Documentation/TODO | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit ba0c903004aa81caeca805472e83adeeb2269aa4 Author: Sami Kerola Date: Tue Feb 28 23:05:59 2012 +0100 docs: add deprecation comments Markup deprecation to command header to avoid people wasting time in fixing these utilities. Signed-off-by: Sami Kerola disk-utils/elvtune.c | 9 +++++++++ login-utils/last.c | 9 +++++++++ login-utils/newgrp.c | 9 +++++++++ login-utils/vipw.c | 9 +++++++++ sys-utils/arch.c | 9 +++++++++ text-utils/line.c | 9 +++++++++ 6 files changed, 54 insertions(+), 0 deletions(-) commit fed52fd5ca5d42fcc0c60532e84f7159b22237ea Author: Dave Reisner Date: Sat Mar 10 23:54:14 2012 -0500 login: add USER to initial environment Add this value from the passwd struct to the environment, as it is expected by shells, and generally useful to users. This also clarifies a poorly worded sentence in the vicinity of the manpage change. Signed-off-by: Dave Reisner login-utils/login.1 | 5 +++-- login-utils/login.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) commit abd4e8a52faee1ae9e2f9121fe69e864a156b9a2 Author: Dave Reisner Date: Fri Mar 9 13:32:43 2012 -0500 lsblk: RQ-SIZE is part of the --topology output (man page bugfix) Signed-off-by: Dave Reisner misc-utils/lsblk.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ce65b29ac4f135e5e477bd40fcc194d3ec5236a1 Author: Daniel Drake Date: Fri Mar 9 17:56:50 2012 +0000 losetup: Fix setting of sizelimit on new loop devices "losetup --offset 10 --sizelimit 20 foo.img" was producing a loop device with offset 20 and no sizelimit. Looks like a typo, fix it. Signed-off-by: Daniel Drake sys-utils/losetup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit de2174895aa2870610b2495f985dc858a3a15b92 Author: Karel Zak Date: Mon Mar 12 15:16:09 2012 +0100 build-sys: add --diable-sulogin (enabled by default) Signed-off-by: Karel Zak configure.ac | 10 +++++++++- login-utils/Makefile.am | 25 +++++++++++++++---------- 2 files changed, 24 insertions(+), 11 deletions(-) commit 29d2011abbc2b88608b77a4403667fa3be005a75 Author: Karel Zak Date: Mon Mar 12 14:53:18 2012 +0100 build-sys: note sulogin in configure help Signed-off-by: Karel Zak configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 59ef660f04fdecf46141a79ba9d1c3944ec90c4f Author: Karel Zak Date: Mon Mar 12 14:41:00 2012 +0100 sulogin: share vc initialization with agetty The virtual console initialization has been removed by Dave's commit 5ec4a799c2a8d25c4c8260772363392f805b0a54. We already use this tty initialization for agetty, so reuse the same code. Signed-off-by: Karel Zak login-utils/.gitignore | 1 + login-utils/sulogin.c | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 0 deletions(-) commit 879a7ab4708240e46cbc0df406e922f85063044e Author: Karel Zak Date: Mon Mar 12 14:39:32 2012 +0100 agetty: move vc initialization to ttyutils.h ... to make the code usable for sulogin. Signed-off-by: Karel Zak include/ttyutils.h | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++ term-utils/agetty.c | 70 +++++-------------------------------------------- 2 files changed, 80 insertions(+), 63 deletions(-) commit 7c6bc22b5c658698f6293c5c01b256dcb46841d6 Author: Karel Zak Date: Mon Mar 12 12:55:26 2012 +0100 sulogin: add note about port to util-linux to the man page Signed-off-by: Karel Zak login-utils/sulogin.8 | 10 ++++++++-- login-utils/sulogin.c | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) commit c3e706a9ba87831ad91adef578fb7754e0b622dc Author: Karel Zak Date: Mon Mar 12 12:47:37 2012 +0100 sulogin: fix selinux build Signed-off-by: Karel Zak login-utils/Makefile.am | 1 + login-utils/sulogin.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) commit 1d28b828faf43f13144ffa767039a4250f8fb8b9 Author: Karel Zak Date: Mon Mar 12 12:43:53 2012 +0100 sulogin: parse timeout more carefully Signed-off-by: Karel Zak login-utils/Makefile.am | 3 +++ login-utils/sulogin.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit 24ff2f575819190c022f8c6df6854d0587978e2e Author: Karel Zak Date: Mon Mar 12 12:36:39 2012 +0100 sulogin: initialize nls stuff Signed-off-by: Karel Zak login-utils/sulogin.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit adf97f07807896c28abd2f0f721a62b9469b5ad6 Author: Karel Zak Date: Mon Mar 12 12:32:03 2012 +0100 sulogin: check chdir and getcwd return values [-Wunused-result] sulogin.c: In function ‘sushell’: sulogin.c:338:7: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] sulogin.c:359:8: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Karel Zak login-utils/sulogin.c | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) commit 8614335f6ba1b23af5c40d4f31fa485cf7546b0d Author: Karel Zak Date: Mon Mar 12 12:23:29 2012 +0100 sulogin: add long options Signed-off-by: Karel Zak login-utils/sulogin.8 | 24 +++++++++++++++--------- login-utils/sulogin.c | 40 +++++++++++++++++++++++++++------------- 2 files changed, 42 insertions(+), 22 deletions(-) commit cd8703ade949e55100e4bb340680e9a71e6e795a Author: Karel Zak Date: Mon Mar 12 11:51:19 2012 +0100 sulogin: use EXIT_* Signed-off-by: Karel Zak login-utils/sulogin.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit d45e5dff342fa5b20e652980ed41f7de839fdba9 Author: Karel Zak Date: Mon Mar 12 11:48:33 2012 +0100 sulogin: use err.h stuff and print "Login incorrect" to stderr like login(1). Signed-off-by: Karel Zak login-utils/sulogin.c | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) commit b6506dc91484b910d3730d7a527795a86816dcbf Author: Karel Zak Date: Mon Mar 12 11:38:12 2012 +0100 sulogin: replace perror() with warx() Signed-off-by: Karel Zak login-utils/sulogin.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit adfbaecff7fc14a633abc52204f46fbddbcdb33d Author: Karel Zak Date: Mon Mar 12 11:29:09 2012 +0100 sulogin: cleanup comments Signed-off-by: Karel Zak login-utils/sulogin.c | 95 ++++++++++++++++++++++-------------------------- 1 files changed, 44 insertions(+), 51 deletions(-) commit 36e1b56db3a93bbebd1b528555ff3e2c9b651322 Author: Dave Reisner Date: Tue Feb 28 11:45:21 2012 -0500 sulogin: add i18n strings Signed-off-by: Dave Reisner login-utils/sulogin.c | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-) commit 9211be3043b0cdc3a5611b1200f399bb41334741 Author: Dave Reisner Date: Tue Feb 28 11:45:20 2012 -0500 sulogin: use a more standard usage output Signed-off-by: Dave Reisner login-utils/sulogin.c | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) commit 5fe090d8e2eff877e5cf01a37d05fee6c2856216 Author: Dave Reisner Date: Tue Feb 28 11:45:19 2012 -0500 sulogin: header/include cleanup - use our own crypt.h compile time check - remove ttydefaults.h include -- get this via termios.h, the same as agetty Signed-off-by: Dave Reisner login-utils/sulogin.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 97e04909edc836525a66b8bb4ce705e6c56c2d37 Author: Dave Reisner Date: Tue Feb 28 11:45:18 2012 -0500 sulogin: use pathnames.h for file locations This covers /etc/shadow and /etc/passwd. We don't have a define for /bin/sh -- just replace the macro with the hardcoded string as done elsewhere. Signed-off-by: Dave Reisner login-utils/sulogin.c | 26 ++++++++++++-------------- 1 files changed, 12 insertions(+), 14 deletions(-) commit b1619c88d3221d3587eea0aaf0415f2244da9a4f Author: Dave Reisner Date: Tue Feb 28 11:45:17 2012 -0500 sulogin: get rid of calls to /bin/sash This probably doesn't exist on most systems, and if the root's shell and /bin/sh fail to execute, it seems unlikely that /bin/sash will save us. Signed-off-by: Dave Reisner login-utils/sulogin.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit ffd6e1e4e04e6bf12ec6112c08d097d2edc1e658 Author: Dave Reisner Date: Tue Feb 28 11:45:16 2012 -0500 sulogin: use size_t for iterator to avoid cast Signed-off-by: Dave Reisner login-utils/sulogin.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 5ec4a799c2a8d25c4c8260772363392f805b0a54 Author: Dave Reisner Date: Tue Feb 28 11:45:15 2012 -0500 sulogin: remove USE_ONELINE and SANE_TIO defines This was only ever compiled in for a single distro, with no clear indication of why. Signed-off-by: Dave Reisner login-utils/sulogin.c | 85 +------------------------------------------------ 1 files changed, 1 insertions(+), 84 deletions(-) commit 1df0ee1f05b1cd532cc905d3153f0bab661ff9e1 Author: Dave Reisner Date: Tue Feb 28 11:45:14 2012 -0500 sulogin: remove CHECK_{DES,MD5} defines Remove these always-true defines along with their #ifdef statements. Signed-off-by: Dave Reisner login-utils/sulogin.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit 97795a73e957c0140f1ad2b67368668314ccf1b4 Author: Dave Reisner Date: Tue Feb 28 11:45:13 2012 -0500 sulogin: replace older signal() with sigaction() This provides a more reliable means of saving and restoring signal handlers and avoids ugly (invalid) function pointer assignments. This also removes the #ifdef blocking usage of a GCC attribute, which is widely used in the rest of the codebase. Signed-off-by: Dave Reisner login-utils/sulogin.c | 55 +++++++++++++++++++++++++++++++----------------- 1 files changed, 35 insertions(+), 20 deletions(-) commit 60706626649fd664135ee3b5dcde6a0c78392ef5 Author: Dave Reisner Date: Tue Feb 28 11:45:12 2012 -0500 sulogin: whitespace fixes Use a code style more inline with the rest of the project. Signed-off-by: Dave Reisner login-utils/sulogin.c | 124 ++++++++++++++++++++++++++++--------------------- 1 files changed, 71 insertions(+), 53 deletions(-) commit 6f760f3a08105a3c9792f4c80473ab4e00e9870d Author: Dave Reisner Date: Tue Feb 28 11:45:11 2012 -0500 sulogin.8: refactor manpage - Use a more standard layout using .IP macros for options - Avoid direct references to sysvinit Signed-off-by: Dave Reisner login-utils/sulogin.8 | 69 +++++++++++++++---------------------------------- 1 files changed, 21 insertions(+), 48 deletions(-) commit 7d8a8d2cd92fd41688c391cb8f7d1bf7121dec90 Author: Dave Reisner Date: Tue Feb 28 11:45:10 2012 -0500 sulogin: initial import from sysvinit Import the source and manpage of sulogin. Only the selinux #ifdef is changed to match our autotool setup. Signed-off-by: Dave Reisner login-utils/Makefile.am | 6 +- login-utils/sulogin.8 | 87 +++++++ login-utils/sulogin.c | 605 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 697 insertions(+), 1 deletions(-) commit 208848ef2710bbfd17664c04d97882bab6c08b62 Author: Dave Reisner Date: Tue Feb 28 11:45:09 2012 -0500 fstab.5: fix misspelling of deprecated Signed-off-by: Dave Reisner mount/fstab.5 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7293e97a42586ba552497bf7c8ab21e15b114541 Author: Karel Zak Date: Fri Mar 9 13:11:24 2012 +0100 libmount: fix "already mounted" detection on systems with mtab For systems with regular mtab the fs->root should be ignored in "already mounted" heuristic. Reported-by: Matt Burgess Signed-off-by: Karel Zak include/list.h | 4 +++ libmount/src/tab.c | 66 ++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 53 insertions(+), 17 deletions(-) commit 5791238768d6a2ca46bb140cde70b1fcf200afff Author: Milan Broz Date: Mon Mar 5 22:07:10 2012 +0100 lsblk: add --version switch [kzak@redhat.com: - update usage() and man page] Signed-off-by: Milan Broz misc-utils/lsblk.8 | 2 ++ misc-utils/lsblk.c | 16 +++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) commit 24df2633d3dda02be6f5b686f3347653745fdd08 Author: Milan Broz Date: Mon Mar 5 22:07:09 2012 +0100 wipefs: Fix mismatch if more -o options used. If there are more offset options specified, some could be lost. Try pvcreate /dev/sd[bcde] mdadm -C -l 5 -n4 /dev/md0 /dev/sd[bcde] mdadm --stop /dev/md0 wipefs -n -o 0x1000 -o 0x218 /dev/sdb - LVM2 signature remains there wipefs -n -o 0x218 -o 0x1010 /dev/sdb - no report about ignored signature Signed-off-by: Milan Broz misc-utils/wipefs.c | 100 ++++++++++++++++++++++++++++++--------------------- 1 files changed, 59 insertions(+), 41 deletions(-) commit bf91904c24c470a750a7efa8ceaed3f9e9996b6c Author: Dave Reisner Date: Sun Mar 4 16:08:39 2012 -0500 libmount: avoid infinite loop in child fs iteration In early userspace, the rootfs is mounted with itself as its parent. Example /proc/self/mountinfo: 1 1 0:1 / / rw - rootfs rootfs rw 14 1 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw 15 1 0:13 / /sys rw,nosuid,nodev,noexec,relatime - sysfs sys rw 16 1 0:5 / /dev rw,nosuid,relatime - devtmpfs dev rw,size=506956k 17 1 0:14 / /run rw,nosuid,nodev,relatime - tmpfs run rw,mode=755 This causes an infinite loop in mnt_table_next_child_fs, and is evidenced by a crash via infinite recursion in findmnt. Simply catch the condition where the ID of the parent is the ID of the current fs we're examining and skip over it to the next mount in the table. Signed-off-by: Dave Reisner libmount/src/tab.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 7c9c872c2bd43ba44107e63919f57db0b8be7edc Author: Karel Zak Date: Thu Mar 8 16:04:45 2012 +0100 lsblk: escape unsafe chars in parsable output Signed-off-by: Karel Zak misc-utils/lsblk.8 | 9 +++++++-- misc-utils/lsblk.c | 46 ++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 45 insertions(+), 10 deletions(-) commit a17f32645df6850242bfac1f162cd7dd63d8d033 Author: Karel Zak Date: Thu Mar 8 16:02:28 2012 +0100 script: play well with csh when invoked from within /etc/csh.login Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797888 Signed-off-by: Karel Zak term-utils/script.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 90e57677a5378be199303cd0ef09b74c347d4794 Author: Christian Wiese Date: Wed Feb 15 13:39:22 2012 +0100 fdisk: fix to build for IA32 Tested architectures: - i486 using gcc -march=i486 - i586 using gcc -march=pentium-mmx - i686 using gcc -march={pentiumpro,pentium2,pentium3,pentium-m,pentium4} Without this fix building fdisk fails for for all tested arch/cpu types emiting following error: ------------------------------------------------------------------------------ In file included from fdiskbsdlabel.c:62:0: fdiskbsdlabel.h:61:2: error: #error unknown architecture fdiskbsdlabel.c: In function 'bselect': fdiskbsdlabel.c:180:44: error: 'BSD_LABELSECTOR' undeclared (first use in this function) fdiskbsdlabel.c:180:44: note: each undeclared identifier is reported only once for each function it appears in fdiskbsdlabel.c: In function 'xbsd_write_bootstrap': fdiskbsdlabel.c:539:24: error: 'BSD_LABELSECTOR' undeclared (first use in this function) fdiskbsdlabel.c: In function 'xbsd_readlabel': fdiskbsdlabel.c:744:28: error: 'BSD_LABELSECTOR' undeclared (first use in this function) fdiskbsdlabel.c:744:60: error: 'BSD_LABELOFFSET' undeclared (first use in this function) fdiskbsdlabel.c: In function 'xbsd_writelabel': fdiskbsdlabel.c:769:32: error: 'BSD_LABELSECTOR' undeclared (first use in this function) fdiskbsdlabel.c:780:61: error: 'BSD_LABELOFFSET' undeclared (first use in this function) make[2]: *** [fdisk-fdiskbsdlabel.o] Error 1 ------------------------------------------------------------------------------ This fix was tested with following major toolchain components: binutils 2.21.53.0.2 gcc 4.6.2 glibc 2.14.1 fdisk/fdiskbsdlabel.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 540d506f717bc340b243c0baaa4e785688e8300f Author: Karel Zak Date: Wed Mar 7 14:28:52 2012 +0100 lsblk: use readlink_at from at.c Signed-off-by: Karel Zak misc-utils/lsblk.c | 33 ++++++++++++++++++++++++--------- 1 files changed, 24 insertions(+), 9 deletions(-) commit 09a71aa1d5bf373e130131b8c33066bf0542a61b Author: Peter Rajnoha Date: Tue Feb 14 09:53:16 2012 +0100 lsblk: add inverse tree support (-s) $ lsblk --inverse -o NAME /dev/dm-0 NAME luks-10d813de-fa82-4f67-a86c-23d5d0e7c30e (dm-0) └─sda6 └─sda Signed-off-by: Peter Rajnoha Signed-off-by: Karel Zak lib/sysfs.c | 5 +- misc-utils/lsblk.c | 214 +++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 163 insertions(+), 56 deletions(-) commit 205eb00283e18b414ffd86c6e20fbbe1ffeba685 Author: Karel Zak Date: Wed Mar 7 13:11:54 2012 +0100 lsblk: remove (dm-N) from NAME for raw/pair output format $ lsblk -P -o NAME /dev/dm-0 NAME="luks-10d813de-fa82-4f67-a86c-23d5d0e7c30e (dm-0)" the (dm-0) sucks in the parsable output... Reported-by: Peter Rajnoha Signed-off-by: Karel Zak misc-utils/lsblk.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 379e84390af9a352611228f166f63521558040bd Author: Karel Zak Date: Wed Mar 7 10:45:48 2012 +0100 libmount: cleanup flags usage Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 3 + libmount/src/context.c | 113 ++++++++++++++++++++++++++--------- libmount/src/context_mount.c | 10 ++-- libmount/src/context_umount.c | 42 +++++++------ libmount/src/libmount.h.in | 3 + libmount/src/libmount.sym | 3 + 6 files changed, 120 insertions(+), 54 deletions(-) commit 74fa8244de4eb4c02c31632a73b953c9388ae8d9 Author: Davidlohr Bueso Date: Fri Mar 2 14:00:06 2012 +0100 lslocks: add TYPE column By knowing the lock's type (flock or posix), the user can have more information about the lock and how it was created. [kzak@redhat.com: - rename PERSONALITY to TYPE, - rename ACCESS to MODE] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak misc-utils/lslocks.8 | 7 ++++++- misc-utils/lslocks.c | 49 ++++++++++++++++++++++++++++++------------------- 2 files changed, 36 insertions(+), 20 deletions(-) commit c6fd71b6bb2bb6a41ed22a4fa04993aa9c511017 Author: Karel Zak Date: Tue Mar 6 12:17:05 2012 +0100 tests: add lslocks to build-sys tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 1 + tests/expected/build-sys/config-all-non-nls | 1 + tests/expected/build-sys/config-audit | 1 + tests/expected/build-sys/config-core | 1 + tests/expected/build-sys/config-devel | 1 + tests/expected/build-sys/config-devel-new-mount | 1 + tests/expected/build-sys/config-non-libblkid | 1 + tests/expected/build-sys/config-non-libmount | 1 + tests/expected/build-sys/config-non-libs | 1 + tests/expected/build-sys/config-non-libuuid | 1 + tests/expected/build-sys/config-non-nls | 1 + tests/expected/build-sys/config-selinux | 1 + tests/expected/build-sys/config-slang | 1 + tests/expected/build-sys/config-static | 1 + 14 files changed, 14 insertions(+), 0 deletions(-) commit a80775093284cf13a606449049ee5e2810e1f064 Author: Karel Zak Date: Tue Mar 6 11:38:51 2012 +0100 login: minor spelling fixes Reported-by: Elan Ruusamäe Signed-off-by: Karel Zak login-utils/logindefs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 466a826729d2d5b00ec16131a0da92425a399810 Author: Elan Ruusamäe Date: Tue Mar 6 11:32:37 2012 +0100 login: minor spelling fixes Signed-off-by: Karel Zak login-utils/logindefs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4c5bbc5d7e34b16591a1dec1347492e5d10bb1ab Author: Karel Zak Date: Tue Mar 6 11:24:54 2012 +0100 libblkid: fix sysfs context usage Reported-by: Elan Ruusamäe Signed-off-by: Karel Zak include/sysfs.h | 1 + lib/sysfs.c | 6 +++--- libblkid/src/devname.c | 2 +- libblkid/src/devno.c | 2 +- libblkid/src/topology/sysfs.c | 9 +++++---- 5 files changed, 11 insertions(+), 9 deletions(-) commit 2f595c001b4528b3b9a4aea04d72b6918c434efb Author: Karel Zak Date: Mon Mar 5 16:48:38 2012 +0100 login: fix LOGIN_CHOWN_VCS code Signed-off-by: Karel Zak login-utils/login.c | 49 +++++++++++++++++++++++++------------------------ 1 files changed, 25 insertions(+), 24 deletions(-) commit e9c2b9c5ee2113efc3ff309b000542d386c58c6f Author: Karel Zak Date: Fri Mar 2 15:59:10 2012 +0100 tests: search for "none" by findmnt Signed-off-by: Karel Zak tests/ts/mount/fstab-none | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 6699e742f238d4bc15ac396dd56f0df1480bd36c Author: Karel Zak Date: Fri Mar 2 15:53:55 2012 +0100 libmount: add mnt_fs_streq_target() and export all mnt_fs_streq_* Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 4 ++- libmount/src/fs.c | 44 +++++++++++++++++++++++++++------- libmount/src/libmount.h.in | 3 ++ libmount/src/libmount.sym | 6 ++++ libmount/src/mountP.h | 1 - libmount/src/tab.c | 24 ++++++++++-------- libmount/src/tab_parse.c | 15 +++-------- sys-utils/mount.c | 2 +- 8 files changed, 65 insertions(+), 34 deletions(-) commit dab33573876270fec7550252bcc29c34e9ad3889 Author: Karel Zak Date: Fri Mar 2 14:05:26 2012 +0100 blkid: add DEVNAME= to export output format Reported-by: Balamurugan Arumugam Signed-off-by: Karel Zak misc-utils/blkid.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit fc6b879105771a4c09c80a92ebd189b2ea266739 Author: Karel Zak Date: Fri Mar 2 13:33:46 2012 +0100 tests: wait a moment between mount and umount It seems that without sleep between mount and umount are the test unstable, because kernel is not able to provide updated /proc/self/mountinfo so quickly (really?). Signed-off-by: Karel Zak tests/ts/libmount/context-utab | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit ab8c6e056931440fcd432dc7977328a4d91aab92 Author: Karel Zak Date: Fri Mar 2 13:29:39 2012 +0100 libmount: add mnt_fs_streq_srcpath() We have to be careful with "none" or another dummy sources for pseudo filesystems. These strings should be canonicalized or compared as a paths. The function is not exported by library API. Signed-off-by: Karel Zak libmount/src/fs.c | 33 +++++++++++++++++++++++---------- libmount/src/mountP.h | 1 + libmount/src/tab.c | 31 ++++++++++--------------------- libmount/src/tab_parse.c | 2 +- sys-utils/mount.c | 2 +- 5 files changed, 36 insertions(+), 33 deletions(-) commit 41d6af28c3475987a085dc085c2348e22dc7fbdd Author: Karel Zak Date: Fri Mar 2 11:23:34 2012 +0100 libmount: cosmetic changes around "none" Signed-off-by: Karel Zak libmount/src/context.c | 6 +++++- libmount/src/context_mount.c | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) commit 14ee7c0cb13851349c89c90b2f1025d7e4ef36c3 Author: Karel Zak Date: Fri Mar 2 09:57:49 2012 +0100 tests: update libmount tests Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-parse-mountinfo | 2 +- tests/expected/libmount/tabfiles-parse-mtab | 2 +- tests/expected/libmount/update-utab-mount | 2 +- tests/expected/libmount/update-utab-move | 2 +- tests/expected/libmount/update-utab-remount | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) commit d0ce7c07e66f4e458d290083fdcf62218d151883 Author: Dave Reisner Date: Thu Mar 1 22:47:00 2012 -0500 libmount: don't treat "none" differently This causes more problems than it solves. In the latest edition: # mount -t proc none foo mount: foo: mount failed: Invalid argument A check for source and target fails in mnt_context_apply_fstab() because, even though they were indeed specified on the cmdline, __mnt_fs_set_source_ptr() altered this and NULL'd out the source. If you're able to mount this device via other means, other tools start reporting oddities, such as mount's output: (null) on /foo type proc (rw,relatime) or findmnt: TARGET SOURCE FSTYPE OPTIONS /foo proc rw,relatime Simply treat "none" like any other source when passed in. [kzak@redhat.com: - don't translate NULL to "none" in mnt_fs_set_source()] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak libmount/src/fs.c | 7 ++----- libmount/src/tab.c | 7 +++---- libmount/src/tab_parse.c | 7 +------ 3 files changed, 6 insertions(+), 15 deletions(-) commit eac83fbcf6476f82aca86fe9b69f60c3a9a43d92 Author: Dave Reisner Date: Thu Mar 1 22:46:59 2012 -0500 mountpoint: account for error from in mnt_fs_get_target commit 04f087ec didn't take into consideration that mnt_fs_get_target() could return an error, and would therefore show false positives, such as: $ mkdir foo; mountpoint foo foo is a mountpoint Signed-off-by: Dave Reisner sys-utils/mountpoint.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 86ace3f407289dac85a6c1ead74461bea8775911 Author: Karel Zak Date: Thu Mar 1 15:44:04 2012 +0100 wipefs: always print devname It seems too smart to print devname according to number of devices. Signed-off-by: Karel Zak misc-utils/wipefs.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) commit c10695f8a4b23accf2f772ecc4f36242c94a5ea3 Author: Milan Broz Date: Wed Feb 29 17:16:42 2012 +0100 wipefs: support more device arguments for wipefs [kzak@redhat.com: - print devname only if more devices specified] Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/wipefs.8 | 2 +- misc-utils/wipefs.c | 59 ++++++++++++++++++++++++++++++++++---------------- 2 files changed, 41 insertions(+), 20 deletions(-) commit 0fd93af69777af550f7df7f125d8e4f894e2b16b Author: Milan Broz Date: Wed Feb 29 17:16:41 2012 +0100 wipefs: add quiet flag (-q) Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/wipefs.8 | 2 ++ misc-utils/wipefs.c | 17 +++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) commit 89d39d22170b7c5b264e270ce706a0d25f2e0d36 Author: Karel Zak Date: Thu Mar 1 14:24:04 2012 +0100 libblkid: properly reset chain in probe_do_wipe() The command wipefs is not able to remove all signatures from the device if the first detected signature is linux raid. The another superblock signatures are ignored. For example: # pvcreate /dev/sdb1 # mdadm --create md8 --metadata=0.90 --chunk=64 --level=0 \ --raid-devices=2 /dev/sdb1 /dev/sdb2 # wipefs -a /dev/sdb1 will delete the linux raid signature only. Reported-by: Milan Broz Signed-off-by: Karel Zak libblkid/src/probe.c | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) commit ee99c9cb37b60630d86492c02ea71e872b22c660 Author: Karel Zak Date: Thu Mar 1 12:30:14 2012 +0100 tests: add tests for mount --make-* stuff Signed-off-by: Karel Zak tests/expected/mount/shared-subtree | 1 + tests/expected/mount/shared-subtree-make-private | 1 + tests/expected/mount/shared-subtree-make-shared | 1 + .../expected/mount/shared-subtree-make-unbindable | 1 + tests/ts/mount/shared-subtree | 58 ++++++++++++++++++++ 5 files changed, 62 insertions(+), 0 deletions(-) commit 04f087eced451ba00ac0cf1d9b101e3c6c7a322d Author: Zhi Li Date: Wed Feb 29 16:28:49 2012 +0800 mountpoint: fix a minor bug with 0:0 devno zhi@debian-lizhi:~$ mountpoint /sys /sys is not a mountpoint zhi@debian-lizhi:~$ The problem is in mountpoint.c, function dir_to_device(), which uses 0 as an error return value, but for sysfs 0 is its device number: zhi@debian-lizhi:~$ cat /proc/self/mountinfo 14 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw 15 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw My change is on dir_to_device, seperating device number from return value. Signed-off-by: Zhi Li sys-utils/mountpoint.c | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) commit c4137d397ce5af61054ae046db511a90f9c38055 Author: Karel Zak Date: Wed Feb 29 14:26:46 2012 +0100 lslocks: add --notruncate, minor fixes in man page Signed-off-by: Karel Zak misc-utils/lslocks.8 | 11 +++++++---- misc-utils/lslocks.c | 17 +++++++++++++++-- 2 files changed, 22 insertions(+), 6 deletions(-) commit 4473c8dc8addb158797e3e5106a10e359000f0ea Author: Davidlohr Bueso Date: Wed Feb 29 14:15:01 2012 +0100 lslocks: add lslocks.8 man page Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak misc-utils/Makefile.am | 1 + misc-utils/lslocks.8 | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 0 deletions(-) commit 3dc02ef4080d5ea913a24ad759cc124ab6b514f4 Author: Davidlohr Bueso Date: Mon Feb 27 18:26:40 2012 +0100 lslocks: new command The new lslocks(8) program is meant to replace the deprecated lslk(8). It is designed for simplicity and removes unnecessary Unix legacy outputs and options: - Don't output inode number, whence and maj:min device numbers. - Don't provide nonblocking syscall options stat(2) and readlink(2) - Remove lslk's alternate default kernel name list file path (-k) The option to use nonblocking calls was previously intended for NFS partitions; however this should be transparent to utility programs considering that timeouts can occur generically (fuse - sshfs, NFS, netdevs, etc). Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak configure.ac | 5 + misc-utils/.gitignore | 2 + misc-utils/Makefile.am | 10 + misc-utils/lslocks.c | 550 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 567 insertions(+), 0 deletions(-) commit 79b128072502544e8e8ede0b46d93c052ac575a1 Author: Davidlohr Bueso Date: Wed Feb 29 12:27:41 2012 +0100 include: add /proc/locks path to pathnames Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/pathnames.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit dda92fe093f761916b49e9bd11609d2057da8d62 Author: Karel Zak Date: Tue Feb 28 18:11:23 2012 +0100 build-sys: s/ruman/ruman1/ Signed-off-by: Karel Zak configure.ac | 4 ++-- man/ru/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 7aa8bdb50e49d18ad07d708a9ccfbf0ffbfaf612 Author: Sami Kerola Date: Sun Feb 26 22:45:40 2012 +0100 docs: do not overwrite ddate.1 manual The following warning meant either english manual page overwrote ru version, or otherway around. Neither way that not intented. This patch will change ru version of the manual page to be installed to /ru/man1 directory. man/ru/Makefile.am:4: warning: mandir was already defined in condition TRUE, which includes condition BUILD_DDATE ... configure.ac:1: ... `mandir' previously defined here Signed-off-by: Sami Kerola configure.ac | 2 ++ man/ru/Makefile.am | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) commit 50d0ad9875af9e478cd2577ac42041b16170a691 Author: Raghavendra D Prabhu Date: Sun Feb 26 16:36:42 2012 +0530 mount: (new) add 'internal-only(i)' to non-root allowed options Commit ce433404 introduced the change, which causes something like mount -i to break which worked well before util-linux-2.21, now it gives message 'mount: only root can use "--internal-only" option' when that shouldn't be the case when it is already in fstab. Signed-off-by: Raghavendra D Prabhu sys-utils/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b420e279691f8ac865ccdbccb377024a55debd41 Author: Sebastian Andrzej Siewior Date: Fri Feb 24 18:16:07 2012 +0100 build-sys: add a crosscompile path for scanf_cv_alloc_modifier This allows to building the package cross again. Since the return value is not used I guess there is little loss. Signed-off-by: Sebastian Andrzej Siewior configure.ac | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 4210c47adc382815a0528add4342e5f2b3b3c101 Author: Karel Zak Date: Tue Feb 28 14:37:45 2012 +0100 tests: make output and diff dirs usage more robust Signed-off-by: Karel Zak tests/Makefile.am | 2 +- tests/functions.sh | 15 ++++++++++++--- tests/ts/build-sys/config | 11 ++++++++++- 3 files changed, 23 insertions(+), 5 deletions(-) commit f06b43285da105a1c0634b3ff0158fc93067c8f1 Author: Sami Kerola Date: Wed Feb 8 09:51:34 2012 +0100 build-sys: enhance readability of the autotools files Several horizontal lists are turned to vertical, and sorted to alphabetical order. Additionally spaces are converted to tabs where ever possible. Signed-off-by: Sami Kerola Makefile.am | 21 ++-- config/include-Makefile.am | 4 +- configure.ac | 192 +++++++++++++++++----------------- disk-utils/Makefile.am | 54 ++++++++-- fdisk/Makefile.am | 37 +++++-- hwclock/Makefile.am | 7 +- include/Makefile.am | 4 +- lib/Makefile.am | 24 +++-- libblkid/Makefile.am | 1 - libblkid/samples/Makefile.am | 7 +- libblkid/src/Makefile.am | 86 +++++++++++----- libblkid/src/partitions/Makefile.am | 33 +++--- libblkid/src/superblocks/Makefile.am | 92 ++++++++-------- libblkid/src/topology/Makefile.am | 18 ++-- libmount/src/Makefile.am | 78 +++++++++----- libuuid/Makefile.am | 1 - libuuid/man/Makefile.am | 17 +++- libuuid/src/Makefile.am | 22 +++- login-utils/Makefile.am | 41 ++++++-- misc-utils/Makefile.am | 68 ++++++++---- mount/Makefile.am | 48 ++++++--- partx/Makefile.am | 23 ++-- schedutils/Makefile.am | 5 +- sys-utils/Makefile.am | 102 ++++++++++++------ tests/Makefile.am | 9 +- tests/helpers/Makefile.am | 8 +- text-utils/Makefile.am | 28 ++++- 27 files changed, 649 insertions(+), 381 deletions(-) commit 9fbc2dffb0219a7fab638edb6eca6fc1274a336b Author: Sami Kerola Date: Wed Feb 8 09:32:55 2012 +0100 build-sys: remove unused function and header checks Signed-off-by: Sami Kerola configure.ac | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) commit 607e6b7ce8658e552fdffbb99c51cdb01828e27b Author: Karel Zak Date: Tue Feb 28 11:16:16 2012 +0100 login: support crazy shadow-utils syntax in login.defs standard syntax for FOO=data: ENV_FOO data additional syntax: ENV_FOO FOO=data Reported-by: Colin Guthrie colin@mageia.org Signed-off-by: Karel Zak login-utils/login.c | 11 ++++------- login-utils/logindefs.c | 37 +++++++++++++++++++++++++++++++++++++ login-utils/logindefs.h | 1 + 3 files changed, 42 insertions(+), 7 deletions(-) commit 7dc2009633d41bcfb21bd6d4a1b64f6ff314f46d Author: Karel Zak Date: Tue Feb 28 00:21:48 2012 +0100 test: test 'none' source for mount(8) Signed-off-by: Karel Zak tests/expected/mount/fstab-none | 1 + tests/ts/mount/fstab-none | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 0 deletions(-) commit 772cce373f693096c2ae6f156306acf9e20c09e8 Author: Karel Zak Date: Tue Feb 28 00:02:30 2012 +0100 libmount: allow empty source for mount(2) syscall Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797438 Signed-off-by: Karel Zak libmount/src/context_mount.c | 4 +++- sys-utils/mount.c | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) commit 9bf9690114b7432144caf815e149e35640bc3ad0 Author: Karel Zak Date: Mon Feb 27 16:43:12 2012 +0100 libmount: use mount. -s for NFS only Unfortunately, it seems that for example mount.cifs don't care about the API, so we need exception like the original mount(8). Signed-off-by: Karel Zak libmount/src/context_mount.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 16b73aae8cb73df2974fd75c2a42ec3b92535851 Author: Karel Zak Date: Fri Feb 24 23:03:22 2012 +0100 mount: (new) cleanup mount -a return codes New return codes: 0 : all mounted (or all ignored) 64 : some mounted, some failed 32 : all failed Note that already mounted or ignored (filtered out by -t or -O) filesystems don't affect the final return code. The original mount(8) returns 0 instead of 64, so the situation "some mounted, some failed" cannot be detected. Signed-off-by: Karel Zak sys-utils/mount.8 | 4 ++++ sys-utils/mount.c | 23 +++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) commit 6eba938376c2c870d9258ef9d7b6a3690cfa78dd Author: Karel Zak Date: Fri Feb 24 22:52:45 2012 +0100 libmount: canonicalize targets from fstab on mount -a Signed-off-by: Karel Zak libmount/src/tab.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit ea371ea30e873f553bd4666f1e8f7b0620dc5345 Author: Karel Zak Date: Fri Feb 24 21:30:22 2012 +0100 libmount: optimize for paths with tailing slash mnt_table_find_target() canonicalizes paths by libmnt cache, but it's overkill if the difference between paths is tailing slash only. Signed-off-by: Karel Zak libmount/src/tab.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 28074a0952469aebf021821d95238cfb964d13ff Author: Karel Zak Date: Fri Feb 24 21:26:11 2012 +0100 lib/canonicalize: always remove tailing slash Signed-off-by: Karel Zak lib/canonicalize.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) commit 8a0f727bf22f013819e45deb3854393efff474b5 Author: Karel Zak Date: Fri Feb 24 21:05:09 2012 +0100 tests: test non-canonical paths in fstab Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-find-target2 | 5 +++++ tests/expected/libmount/tabfiles-find-target3 | 5 +++++ tests/expected/libmount/tabfiles-parse-fstab | 5 +++++ tests/ts/libmount/files/fstab | 2 ++ tests/ts/libmount/tabfiles | 10 ++++++++++ 5 files changed, 27 insertions(+), 0 deletions(-) commit 59e32a1f240c5f6a1d64d5e71a4a357245c34eaf Author: Karel Zak Date: Fri Feb 24 20:25:43 2012 +0100 libmount: canonicalize all paths from (fs)tab Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797216 Signed-off-by: Karel Zak libmount/src/tab.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit caea4f7da616baf1583353a6b009ae6c4b05a5ef Author: Davidlohr Bueso Date: Tue Feb 14 12:13:16 2012 +0100 more: fix typos Signed-off-by: Davidlohr Bueso text-utils/more.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f9bd0858792f0ce827267cffaa9c5afded4e5e42 Author: Davidlohr Bueso Date: Tue Feb 14 12:13:14 2012 +0100 sys-utils: fix typos Signed-off-by: Davidlohr Bueso sys-utils/cytune.c | 2 +- sys-utils/ipcrm.c | 4 ++-- sys-utils/swapon.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit aec5c2a6266ba071d9312d679b87862964af0f43 Author: Davidlohr Bueso Date: Tue Feb 14 12:13:12 2012 +0100 misc-utils: fix typos Signed-off-by: Davidlohr Bueso misc-utils/findmnt.c | 2 +- misc-utils/whereis.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 26c15246f2ac40b77a429588c8ada9f03a9fa255 Author: Petr Uzel Date: Fri Feb 24 11:51:53 2012 +0100 losetup: add --detach-all to the list of options Signed-off-by: Petr Uzel sys-utils/losetup.8 | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 7cebf0bb4f3e346068a0e1196f779bd53ec308d9 Author: Sami Kerola Date: Wed Feb 22 22:28:48 2012 +0100 docs: corrections to FSF license files, and postal address The COPYING and Documentation/licenses/COPYING* files are being replaced by files from GNU web site. http://www.gnu.org/licenses/gpl-2.0.txt http://www.gnu.org/licenses/lgpl-2.1.txt Postal addresses to FSF in other files are updated to match with the address in license files. Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html Signed-off-by: Sami Kerola COPYING | 41 +++++++------- Documentation/cfdisk.txt | 6 +- Documentation/licenses/COPYING.GPLv2 | 42 +++++++------- Documentation/licenses/COPYING.LGPLv2.1 | 84 +++++++++++++---------------- disk-utils/elvtune.c | 8 +-- disk-utils/fsck.cramfs.c | 6 +- disk-utils/mkfs.cramfs.c | 6 +- fdisk/cfdisk.c | 6 +- getopt/getopt.c | 6 +- lib/path.c | 6 +- libblkid/src/blkid.h.in | 2 +- libblkid/src/partitions/blkid_parttypes.h | 2 +- libmount/src/libmount.h.in | 6 +- misc-utils/findmnt.c | 6 +- misc-utils/lsblk.c | 6 +- misc-utils/wipefs.c | 6 +- mount/mount.8 | 7 +-- mount/umount.8 | 7 +-- schedutils/chrt.1 | 7 +-- schedutils/chrt.c | 6 +- schedutils/taskset.1 | 7 +-- schedutils/taskset.c | 6 +- sys-utils/arch.c | 3 +- sys-utils/chcpu.c | 6 +- sys-utils/fallocate.c | 6 +- sys-utils/ipcmk.c | 6 +- sys-utils/lscpu.c | 6 +- sys-utils/mount.8 | 7 +-- sys-utils/mount.c | 6 +- sys-utils/mountpoint.c | 6 +- sys-utils/prlimit.c | 6 +- sys-utils/readprofile.c | 6 +- sys-utils/umount.c | 6 +- sys-utils/unshare.c | 2 +- 34 files changed, 165 insertions(+), 180 deletions(-) commit 6a0335d6cbdedeacc0afef251a53c945699ddea7 Author: Karel Zak Date: Fri Feb 24 14:09:27 2012 +0100 build-sys: don't create empty man/ru directory Reported-by: Tom Gundersen Signed-off-by: Karel Zak man/ru/Makefile.am | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit ce5f2f26772424c9bd40537b83ac9b080ab97d46 Author: Jim Meyering Date: Wed Mar 28 08:50:29 2007 +0200 Help translators include translation team's web or email address. * src/system.h (emit_bug_reporting_address): New function. * src/base64.c: Use it rather than a literal printf. * src/basename.c, src/cat.c, src/chgrp.c, src/chmod.c: * src/chown.c, src/chroot.c, src/cksum.c, src/comm.c, src/cp.c: * src/csplit.c, src/cut.c, src/date.c, src/dd.c, src/df.c: * src/dircolors.c, src/dirname.c, src/du.c, src/echo.c, src/env.c: * src/expand.c, src/expr.c, src/factor.c, src/fmt.c, src/fold.c: * src/head.c, src/hostid.c, src/hostname.c, src/id.c, src/install.c: * src/join.c, src/kill.c, src/link.c, src/ln.c, src/logname.c: * src/ls.c, src/md5sum.c, src/mkdir.c, src/mkfifo.c, src/mknod.c: * src/mv.c, src/nice.c, src/nl.c, src/nohup.c, src/od.c: * src/paste.c, src/pathchk.c, src/pinky.c, src/pr.c, src/printenv.c: * src/printf.c, src/ptx.c, src/pwd.c, src/readlink.c, src/rm.c: * src/rmdir.c, src/seq.c, src/setuidgid.c, src/shred.c, src/shuf.c: * src/sleep.c, src/sort.c, src/split.c, src/stat.c, src/stty.c: * src/su.c, src/sum.c, src/sync.c, src/system.h, src/tac.c: * src/tail.c, src/tee.c, src/test.c, src/touch.c, src/tr.c: * src/true.c, src/tsort.c, src/tty.c, src/uname.c, src/unexpand.c: * src/uniq.c, src/unlink.c, src/uptime.c, src/users.c, src/wc.c: * src/who.c, src/whoami.c, src/yes.c: Likewise. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7943f79d6b40c11a58a788387c22918279ed3194 Author: Paul Eggert Date: Sun Sep 3 02:53:16 2006 +0000 Don't include dirname.h, since system.h does it now. login-utils/su.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 5b6aef6c5c060bf7a6df5ec62b6f59ee5f132afb Author: Paul Eggert Date: Mon Aug 21 07:30:45 2006 +0000 Add a bootstrap procedure, so that the CVS version contains fewer files and we bootstrap the rest from gnulib, gettext, etc. * README-cvs: New file. * bootstrap: New file. * bootstrap.conf: New file. * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po. * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit of gnulib-tool. (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL): (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib. (gl_EARLY): Add. (gl_MACROS): Call just after gl_EARLY, just for clarity. * src/c99-to-c98.diff: Remove patch to ls.c; no longer needed. * src/kill.c (strtoimax): Remove decl. * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves. * src/wc.c: Likewise. * src/ls.c (sort_files): Rewrite to avoid need for C99-style declaration, so that we don't need to patch this file. * src/printf.c (strtoimax, strtoumax): Remove decls. * src/su.c: Include getpass.h. (getpass): remove. * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h. Include inttypes.h unconditionally; remove decls it handles. * lib/Makefile.am: include gnulib.mk, so that we can remove most of this file. (AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done for us. (noinst_LIBRARIES, LDDADD, DEFS): Remove. (libcoreutils_a_SOURCES): Trim down greatly, just to the files that aren't in gnulib. Remove defns gnulib does for us. * m4/check-decl.m4 (gl_CHECK_DECLS): Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h, time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin, getuid, lseek, malloc, memchr, realloc. Don't check for getutent, memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul, strtoull. (_gl_DECL_HEADERS): Remove; all uses removed. * m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac for the benefit of gnulib-tool. Call gl_INIT. Do not call or require macros that gnulib will handle for us. Don't check for fchmod, hasmntopt, isascii, lchown, listmntent, mempcpy, realpath, wcrtomb, tzset. (gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h, sys/mount.h. (gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT. Don't check for struct stat.st_blksize. Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T, gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T, gl_AC_TYPE_UNSIGNED_LONG_LONG. * m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO. Don't require macros that gnulib does for us. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h. Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0d4e00316a16fe5469df231f3f1be774712c53b5 Author: Jim Meyering Date: Fri Jul 21 13:32:40 2006 +0000 * src/su.c (usage): Correct typo in --help output: s/commmand/command/ Reported by Tim Waugh. Also remove the comment duplicating much of --help output. login-utils/su.c | 24 +----------------------- 1 files changed, 1 insertions(+), 23 deletions(-) commit 989f03571ced39bc39511014b8d4fea92a780d73 Author: Jim Meyering Date: Sun Mar 26 12:08:20 2006 +0000 (log_su, run_shell): Use new last_component, in place of base_name. login-utils/su.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 63f1886772fbd36d765a185b43ef56dea8fffd8f Author: Jim Meyering Date: Tue Aug 23 15:09:13 2005 +0000 Remove unnecessary parens in `#if defined (SYMBOL)' expressions. login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 7d33c6f860196adc61fa6ff058de8c133fa02ef5 Author: Jim Meyering Date: Sat May 14 07:58:31 2005 +0000 Update FSF postal mail address. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 47cf26b757a757ab253d8cb8bfeed80051789459 Author: Jim Meyering Date: Sat May 14 06:57:06 2005 +0000 Update FSF postal mail address. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0c606e84bb378db7da6f2bd690d3d0755d2c1f2f Author: Paul Eggert Date: Tue Aug 3 22:23:25 2004 +0000 (run_shell): Pass a new n_additional_args arg, so that the callee doesn't have to count 'em. All callers changed. Don't allocate more space for the arg vector than we'll need. Use memcpy to copy the args rather than rolling our own loop. Use size_t for sizes. (fast_startup, simulate_login, change_environment, log_su, correct_password, restricted_shell, main): Use bool for booleans. (longopts): Don't assume change_environment is an int. Use NULL, not 0, for pointers. (xsetenv): New function, replacing xputenv and concat. All callers changed. (elements): Remove; no longer needed. (log_su, correct_passwd, main): Prefer !x to x==NULL. (log_su): 2 -> STDERR_FILENO. (modify_environment, main): Don't assume that getenv's returned value has an indefinite lifetime. (modify_environment): Allocate a larger environ. (main): Remove an impossible 'case 0'; if it happens now, it'll get diagnosed. Don't assume getpwnam results outlive endpwent. Check for null or empty pw_name, pw_dir and for null pw_passwd. login-utils/su.c | 218 ++++++++++++++++++++++------------------------------- 1 files changed, 91 insertions(+), 127 deletions(-) commit 179a9823781870d9193e77558a2c6e843971fcae Author: Jim Meyering Date: Tue Jun 1 13:04:02 2004 +0000 (correct_password, restricted_shell, main): Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'. login-utils/su.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 12f1e56dd3f486b3cac757012c5edfd8dfedd843 Author: Jim Meyering Date: Thu Jan 22 21:00:25 2004 +0000 (usage): Use EXIT_SUCCESS, not 0, for clarity. (main): Initialize exit_failure to EXIT_FAIL. (main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE rather than roll-your-own symbols or integers. login-utils/su.c | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) commit 571b609ef977c1ccb12360148443b1dc6390ece9 Author: Jim Meyering Date: Sat Oct 18 10:05:47 2003 +0000 Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise. login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 6fa9096595853c4f0e5760f35b43e182a834b02a Author: Jim Meyering Date: Thu Sep 18 22:19:03 2003 +0000 (WRITTEN_BY): Rename from AUTHORS. Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable. login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8e5b5ee01a310a20bed77aaafa449e652beed5d9 Author: Jim Meyering Date: Wed Jul 23 07:29:54 2003 +0000 Don't include headers already included by system.h: Don't include closeout.h. login-utils/su.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit f7a168d629faf801308792129d9f0bcf78066117 Author: Jim Meyering Date: Fri Jul 18 08:38:43 2003 +0000 (usage): Don't call close_stdout here. (main): Use close_stdout via atexit. Now `su --version > /dev/full' fails, as it should. Somehow, the change of 2000-05-07 that purports to fix this was not checked in. login-utils/su.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit cf4bd2fc7c585cc81dabe7ac5b2f9665c1aabe46 Author: Jim Meyering Date: Tue Jun 17 18:13:23 2003 +0000 (main): Call initialize_main. login-utils/su.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 6c940aca732031e443e09ba227efcf1ce4b9cb54 Author: Jim Meyering Date: Fri Apr 11 10:51:56 2003 +0000 Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values and of xrealloc's first argument. login-utils/su.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 722bc0061c954ee75590b88372085d8459cc71e1 Author: Jim Meyering Date: Sat Aug 31 08:52:10 2002 +0000 Change `exit (0)' to `exit (EXIT_SUCCESS)', `exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'. login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 046582e4ba5f1b7823d36fad114f10a27dc9b926 Author: Jim Meyering Date: Fri Aug 30 23:04:53 2002 +0000 Change `error (1, ...' to `error (EXIT_FAILURE, ...'. login-utils/su.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 9fa7b2b0127205dae37f18e915196e2c39e09e4c Author: Jim Meyering Date: Thu Aug 1 09:19:24 2002 +0000 (run_shell): Exit with status 126 or 127 when execvp or execv fails, for consistency with POSIX commands like env and nice. login-utils/su.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit f691ff287500d8248888d6ac95c20719792ef16c Author: Jim Meyering Date: Tue Jul 2 09:09:10 2002 +0000 (usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9b586e5da7f66558a007f09757ba0e9d9d832bf9 Author: Jim Meyering Date: Sat Dec 15 20:46:30 2001 +0000 Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf. login-utils/su.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 7eaedbe05fb7e13d7de77cff6325a6e07a8b941f Author: Jim Meyering Date: Tue Aug 14 07:18:34 2001 +0000 (xputenv): Remove parameter's const qualifier. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 787ac7c3410b404f3e2f4deb7d008759738de679 Author: Jim Meyering Date: Sat May 12 16:05:51 2001 +0000 Include "dirname.h". (base_name): Remove decl; now in dirname.h. login-utils/su.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit 1b7813537eec2e61619f3292474c838fb413cce4 Author: Jim Meyering Date: Sun Jan 7 16:07:33 2001 +0000 back out last, prematurely-committed, change login-utils/su.c | 71 ++--------------------------------------------------- 1 files changed, 3 insertions(+), 68 deletions(-) commit 3758e1f272f7eba0d5dc602c8db2ae45c7b6b70b Author: Jim Meyering Date: Sun Jan 7 16:06:27 2001 +0000 Correct the indentation of an `#endif'. login-utils/su.c | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 68 insertions(+), 3 deletions(-) commit 55cb4d40ba0583d9ac8bbc6e0c779f468ef7bd64 Author: Jim Meyering Date: Mon Aug 7 16:50:11 2000 +0000 (xputenv): Invoke xalloc_die instead of printing our own message. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 26d6d3f836d561c414b9a0414e23be6667f2dbf5 Author: Jim Meyering Date: Sun Jul 23 16:27:13 2000 +0000 Include if HAVE_SYS_PARAM_H is defined, rather than if _POSIX_VERSION is defined. Remove declarations of getpwuid, getgrgid, and getuid, now that they're in sys2.h. login-utils/su.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) commit 73a902bb3dc421c639592a34492dce5b95ae1d47 Author: Jim Meyering Date: Sun May 7 14:48:25 2000 +0000 Include "closeout.h". (main): Call atexit with close_stdout. login-utils/su.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 3c19ad6f042099acb4c51f18ff7924fe3a6fab77 Author: Jim Meyering Date: Wed Feb 9 11:57:01 2000 +0000 (correct_password): Correct HAVE_STRUCT_* name in #if guard to go along with corrected autoconf test: Reported by G Queri. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ecf3be426964fc07a78a4f0a779165f02cb10fe6 Author: Jim Meyering Date: Sun Jan 30 22:23:58 2000 +0000 (correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'. login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 7f143c6d57e6ddecc78f0f626cecae6b701a61ab Author: Jim Meyering Date: Wed Sep 8 08:39:49 1999 +0000 Remove declaration of xstrdup. login-utils/su.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit dcdc31fb987a6680c70c7423be2717d1a320744f Author: Jim Meyering Date: Mon Aug 30 14:39:05 1999 +0000 split a long line. login-utils/su.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit aaad75e2cbfaf2e3c7df9129714b3f03befd128c Author: Jim Meyering Date: Sun Aug 22 10:53:13 1999 +0000 (run_shell): Declare with noreturn attribute. Use an explicit exit(1) rather than doing that through error. login-utils/su.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 0d6cfd6169b099e76f77ecd2c578a3b4e5ee925b Author: Jim Meyering Date: Wed Mar 31 05:52:46 1999 +0000 No longer include long-options.h. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version. login-utils/su.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 83cafa6f555379c47bc2df5945026b16afcb8403 Author: Jim Meyering Date: Wed Mar 31 04:16:08 1999 +0000 (PROGRAM_NAME, AUTHORS): Define and use. login-utils/su.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 0133410924a610792ad75d65d90b798c2f1f3d88 Author: Jim Meyering Date: Sat Mar 6 15:28:54 1999 +0000 Include long-options.h. [long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks. login-utils/su.c | 21 ++++----------------- 1 files changed, 4 insertions(+), 17 deletions(-) commit 0b66228af4993a0b752d6d61b6099c518dbb578e Author: Jim Meyering Date: Tue Feb 16 04:17:15 1999 +0000 update copyright dates login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 82fcfb1927702cf55d0c32be0448839b4e23460e Author: Jim Meyering Date: Mon Jan 25 14:33:38 1999 +0000 (usage): Remove static attribute. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 84404df6398672c08d7783d6030b3a69d68fc322 Author: Jim Meyering Date: Sat Sep 19 17:32:35 1998 +0000 update bug-reporting address login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 935e4d4aef7d9dee02167ac7162a2cf15a684201 Author: Jim Meyering Date: Sun Aug 30 03:12:22 1998 +0000 (longopts): Use corresponding short-option character in place of `1', and `NULL' in place of pointer in initialization. login-utils/su.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 8cd5e17ab9f4c12f68b7c843ea6a4ed19ce8f2d0 Author: Jim Meyering Date: Sun Dec 21 22:22:04 1997 +0000 Don't include limits.h. login-utils/su.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 3c35aec120bf667472d4bd9b61dbed954e263b58 Author: Jim Meyering Date: Wed Dec 10 10:31:25 1997 +0000 use NULL, '\0' instead of zeroes login-utils/su.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit bb677c2efba91a27ac3c93f1d68a2833e02ce436 Author: Jim Meyering Date: Wed Dec 10 10:25:46 1997 +0000 (main): Make sure pw->pw_shell is non-NULL before trying to strdup it. Patch from Dick Streefland. login-utils/su.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 012be24bdb0a5242d5a9603e6e41ee481287672e Author: Jim Meyering Date: Sat Oct 25 22:03:20 1997 +0000 Remove old-style xmalloc and xrealloc decls. login-utils/su.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 2ca4f15dbfb23c3d54ed197ba841cd35db72a9ac Author: Jim Meyering Date: Tue Oct 7 23:51:39 1997 +0000 update bug-reporting address login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d143db7aa45ec865b0903e0c6d926045dc76ca69 Author: Jim Meyering Date: Sun Jul 13 03:10:15 1997 +0000 indent login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 132449e4daddd5452885d4807134aab7a7a6d377 Author: Jim Meyering Date: Sat Jul 5 08:25:58 1997 +0000 Redefine/undef getusershell around inclusion of (via system.h) so Cray's int-returning prototype doesn't conflict with our char*-returning one. login-utils/su.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 8e07d01501d16a2fd264d66dd8eec70ec34974d2 Author: Jim Meyering Date: Tue May 27 13:55:23 1997 +0000 Use base_name, not basename. login-utils/su.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit cf407c65b6ebc05237c06554bd6b031d655654a5 Author: Jim Meyering Date: Wed Mar 19 02:56:54 1997 +0000 cpp-indent Change a few #ifdef to #if. Remove 3 spurious #ifdef that were guarding an #undef each. login-utils/su.c | 56 ++++++++++++++++++++++++----------------------------- 1 files changed, 25 insertions(+), 31 deletions(-) commit 1ae8eaf31a8ee0994ce2de80db87a64478ad1a06 Author: Jim Meyering Date: Tue Mar 18 12:49:20 1997 +0000 (log_su): Resort to getpwuid if getlogin fails. If no tty name is found, use `none' in the log message. Based on a patch from Galen Hazelwood. login-utils/su.c | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) commit 8dab0101c04217a0ee75a19c4de25116914c1677 Author: Jim Meyering Date: Sun Feb 9 04:54:16 1997 +0000 update copyrights for 1997 login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6fdfb796f1208ba9bb4756416cb2c16078f28cdf Author: Jim Meyering Date: Sat Feb 1 04:23:31 1997 +0000 bracket bug address with <> and append a period login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 89105fd3823272827c5a45facab0adc7fc965674 Author: Jim Meyering Date: Sat Feb 1 03:05:36 1997 +0000 Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call. login-utils/su.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 5c0a603f0cead69d3766f58478dde18bf8b3df6c Author: Jim Meyering Date: Thu Dec 19 04:20:53 1996 +0000 [HAVE_PATHS_H]: Include . [_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH. [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH. From Rik Faith. login-utils/su.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit c49b33707e737ccd885cc92f1eb764c75ee502d9 Author: Jim Meyering Date: Sun Nov 3 03:16:27 1996 +0000 change bug-reporting address login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f7e672073530b0468db1fb6a7e1da0bf09d634b0 Author: Jim Meyering Date: Sat Nov 2 20:44:15 1996 +0000 change bug-reporting address login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b5209f216e198978ace9205b51d6b32d860efbc0 Author: Jim Meyering Date: Sat Oct 5 16:37:57 1996 +0000 (main): update --version output to conform to coding standard login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4c3e2053dcff33c6b88a2ac068216c608f32cb98 Author: Jim Meyering Date: Mon Sep 2 15:52:45 1996 +0000 (usage): Tell where to report bugs. login-utils/su.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 5debca5cf900a8e283b448bd1f50f491ec6fe11e Author: Jim Meyering Date: Wed Apr 24 04:45:54 1996 +0000 update Copyright years for 1996 login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0dc92fd13b5f6ba78d52f82e128b263b4dbe3183 Author: Jim Meyering Date: Sun Mar 24 18:33:12 1996 +0000 Update FSF's address. login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 59b95363256156a9d2b60b901ed829f038475618 Author: Jim Meyering Date: Sun Mar 24 17:43:41 1996 +0000 Protoize and reorder functions. login-utils/su.c | 425 +++++++++++++++++++++++++----------------------------- 1 files changed, 199 insertions(+), 226 deletions(-) commit 1f79a1b215fa312f2ee19e81f3e010edd88c82d3 Author: Jim Meyering Date: Thu Mar 21 22:47:02 1996 +0000 (main): Declare to be of type int, not void. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1c851175718ffed86e9a5494b8172506ebf136b4 Author: Jim Meyering Date: Sat Mar 16 16:14:26 1996 +0000 Don't include version.h. (main): Use PACKAGE_VERSION instead of version_string. login-utils/su.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit be07a3ae649e46f6991814487bb0abd25ee703db Author: Jim Meyering Date: Tue Mar 12 23:49:29 1996 +0000 (main): Initialize for internationalized message support: call setlocale, bindtextdomain, and textdomain. login-utils/su.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 6c3b4dfbced3a13fb687746aaacd3ac13cee1169 Author: Jim Meyering Date: Sat Jan 6 06:10:08 1996 +0000 Remove NGROUPS_MAX junk. It wasn't being used. login-utils/su.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit 35511976260a6ada5eb97b7dfc75093fe8aa431a Author: Jim Meyering Date: Mon Nov 27 05:34:31 1995 +0000 s/non-zero/nonzero/g login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 7e9dc9c5e203796e08e95a2761b01764d88a48b9 Author: Jim Meyering Date: Sat Nov 18 06:17:07 1995 +0000 Indent cpp directives. login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 684cda5ebc7590d58d96f3368a0dc14762d3df79 Author: Jim Meyering Date: Tue Aug 8 04:37:34 1995 +0000 Annotate localizable strings with _(...). From Franc,ois. login-utils/su.c | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) commit a36c9ac117d70805b81bcf9ff4f55013cb56bce8 Author: Jim Meyering Date: Mon May 15 04:53:56 1995 +0000 (usage): Add one- and two-line descriptions to --help output. From Karl. login-utils/su.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 070d354484c0dee9f1f250f2978693e2d1f7d351 Author: Jim Meyering Date: Thu Mar 9 22:33:05 1995 +0000 add 1995 to Copyright dates login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 742f505ce0ad236d7074784bca4ba35549f3712b Author: Jim Meyering Date: Mon Feb 27 14:09:10 1995 +0000 (correct_password): Use memset instead of bzero. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 55eef5ace0eae440b5977e94f63cf86d02699116 Author: Jim Meyering Date: Tue Dec 20 05:26:44 1994 +0000 * src/*.c: Include "error.h" instead of simply declaring `void error ();'. login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit db90b9da09803f8e56b6e739a7fe6f9bd454db89 Author: Jim Meyering Date: Tue Oct 11 01:56:53 1994 +0000 . login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit f01499274f95aeeef45ec7311a081a106037ea38 Author: Jim Meyering Date: Sat Oct 1 02:52:05 1994 +0000 . login-utils/su.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 8303e08b4e4cd8663111588bfddf874f888a7b28 Author: Jim Meyering Date: Tue Sep 27 22:02:00 1994 +0000 merge with 1.10n2 login-utils/su.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit e34290f1feece71d9f6ad2fa4a70d79eec66f653 Author: Jim Meyering Date: Sun Sep 25 02:25:20 1994 +0000 . login-utils/su.c | 27 ++++++++++++++++----------- 1 files changed, 16 insertions(+), 11 deletions(-) commit 4214f67eb9ed834b754631aace8c666efee0d8e2 Author: Jim Meyering Date: Sun Sep 18 00:28:34 1994 +0000 . login-utils/su.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 99d439a4734277f2b275e8c649b5ed82452629fc Author: Jim Meyering Date: Wed Aug 3 15:28:30 1994 +0000 . login-utils/su.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit e3feb4f48db8a22814fb20bd3821a0b33e3614e3 Author: Jim Meyering Date: Wed Aug 3 15:21:03 1994 +0000 . login-utils/su.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 4e7c6e0ea873ec4c39db870a814c9e7490f51c89 Author: Jim Meyering Date: Tue Jul 26 03:44:37 1994 +0000 . login-utils/su.c | 30 +++++++++++++++++++++++++----- 1 files changed, 25 insertions(+), 5 deletions(-) commit 3e13ef428c3c808413d14cc8bb3068c7cb5a496d Author: Jim Meyering Date: Wed Apr 20 00:23:45 1994 +0000 . login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a7f23558549357f100a1be71a361a16d696ef273 Author: Jim Meyering Date: Tue Feb 1 14:11:50 1994 +0000 . login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9ce912900a9ac50fc54a62f716715257359c960d Author: Jim Meyering Date: Tue Nov 9 13:21:32 1993 +0000 merge with 1.9 login-utils/su.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit e41cfda26a9f201cc9ff31539515f6aa7b7c1588 Author: Jim Meyering Date: Tue Oct 26 00:11:14 1993 +0000 merge with 1.8.1i login-utils/su.c | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) commit 7af6dac930f31ed9d7d1238ffd973aa72e9488be Author: Jim Meyering Date: Sun Oct 24 21:30:08 1993 +0000 merge with 1.8.1h login-utils/su.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bc7510e02d2809f07dc543bedd8579dcf453c7e4 Author: Jim Meyering Date: Sun Oct 17 03:57:04 1993 +0000 merge with 1.8.1g login-utils/su.c | 37 +++++++++++++++++++++++++++++-------- 1 files changed, 29 insertions(+), 8 deletions(-) commit 217825fdd055d986be5326da86973cf4becb934b Author: Jim Meyering Date: Tue Oct 12 14:49:11 1993 +0000 merge with 1.8.1d login-utils/su.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 9fd214f804e02532c5e7df216077146b0003a05e Author: Jim Meyering Date: Tue Oct 12 01:52:24 1993 +0000 merge with 1.8.1b login-utils/su.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) commit b6a55b22e3e8e23e8f6da45a88dadeec25e29a73 Author: Jim Meyering Date: Wed Sep 8 18:23:12 1993 +0000 merge with 1.8.1 + partial --version and --help login-utils/su.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a261f05865d1e354e4c9b0a8db1599daf8116304 Author: Jim Meyering Date: Wed Dec 2 18:51:53 1992 +0000 Convert static declarations of struct option to use new macros from getopt.h: no_argument, required_argument, and optional_argument. login-utils/su.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit b4a5684416cf239a11344f0ffbb3e976f2ce3bbb Author: Jim Meyering Date: Thu Nov 12 04:14:54 1992 +0000 all files: make most variables static and const when possible. declare lots of functions static. login-utils/su.c | 45 +++++++++++++++++++++++---------------------- 1 files changed, 23 insertions(+), 22 deletions(-) commit 385fd9df8177be4dad7a35092e67845bd8f9c667 Author: Jim Meyering Date: Sun Nov 1 07:01:40 1992 +0000 Make still more file-scope variables `static'. login-utils/su.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 9678ebcd178c73edfcd16c160a835c378e28c64b Author: Jim Meyering Date: Sun Nov 1 05:44:29 1992 +0000 Initial revision login-utils/su.c | 519 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 519 insertions(+), 0 deletions(-) commit 07280902d9462fdd46a15b5e069de05a4c8081c6 Author: Jim Meyering Date: Sat Oct 31 20:42:48 1992 +0000 Initial revision