Without the check libmount builds on systems that has older than 2.7
glibc are silently unsuccessful. The missing %ms modifier will, at
least, result on such system missing output of findmnt and lsblk
commands. If either %ms or %as modifiers are present the libmount
build is disabled.
Based on patch from: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Definition name is changed to UL_BUILD_BUG_ON_ZERO to avoid collision
with a system header.
../include/c.h:72:1: warning: "BUILD_BUG_ON_ZERO" redefined
In file included from /usr/include/sys/sysinfo.h:25,
from dmesg.c:16:
/usr/include/linux/kernel.h:34:1: warning: this is the location of the previous definition
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
The commit will will use `You must have libtool version...' message
when libtoolize is missing. Earlier the error message less helpful.
./autogen.sh: line 59: test: =: unary operator expected
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* 'manuals' of https://github.com/kerolasa/lelux-utiliteetit:
docs: align hexdump.1 with howto-man-page.txt
docs: align ul.1 with howto-man-page.txt
docs: align rev.1 with howto-man-page.txt
docs: align more.1 with howto-man-page.txt
docs: align colrm.1 with howto-man-page.txt
docs: align colcrt.1 with howto-man-page.txt
docs: align col.1 with howto-man-page.txt
docs: align wall.1 with howto-man-page.txt
docs: align scriptreplay.1 with howto-man-page.txt
docs: align script.1 with howto-man-page.txt
docs: align renice.1 with howto-man-page.txt
docs: align logger.1 with howto-man-page.txt
docs: align vipw.8 with howto-man-page.txt
docs: fix return value table in fsck.8
docs: chcpu and readprofile are sysadmin utils
* 'sys-utils-again' of https://github.com/kerolasa/lelux-utiliteetit:
cytune: fix printf type warning
docs: mention long options in cytune.8
cytune: coding style fixes
cytune: refactor main(), new function query_tty_stats()
cytune: use libc error printing facilities
cytune: check numeric user inputs
cytune: add long options and usage()
docs: restructure flock.1 manual page
flock: simplify strtotimeval()
lib: [strutils] add strtod_or_err() function
flock: use strutils.h to check numeric user input
flock: use sysexit.h for all exit values
flock: use function attributes
flock: align with howto-usage-function.txt
flock: use libc error printing facilities
flock: move long_options struct to function scope
flock: fix coding style
docs: align fallocate.1 with howto-man-page.txt
[kzak@redhat.com: - enable udev support by default
- don't check for libudev.h
- minor udev code refactoring in lsblk.c]
Signed-off-by: Ilias Mamedov <arknir@yandex.ru>
Signed-off-by: Karel Zak <kzak@redhat.com>
This fixes a segfault in mount (and possibly elsewhere) when invoked
without a -t parameter.
Broken in 7ef9fd7 when the common xalloc.h libs were introduced.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit also moves global variables to the beginning of the
file, or to function scope where they belong.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
The commit aligns manual page with howto-man-page.txt, and adds example
section which I hope makes usage of this command easier.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Additionally enhance readability of complex double "if shorthand's" by
making the segment to be few normal "if's".
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Retire global progname variable and use warn{,x} and err{,x}
functions. As a side effect of using err function the occurences of
err variable had to be converted to referrals to errno variable.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>