tests: add function ts_check_prog

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: consolidate some checks for commands

Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was
not always checked so far).

There are some positive side-effects. We are using always $PATH now
instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want
to change this again, we should do this generically in ts_init.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: check for mkfs.ext{2,3,4}

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
lslogins(1): skeleton and argparsing for a new utility

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: move to login-utils

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
login: extract get_hushlogin_status

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add functionality

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: store users in a tree

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: use thread-safe functions

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: make it work

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add readtump.h header
lslogins: also add readutmp.c
lslogins: pretty printing and extended -l,-g
lslogins: add support for multiple time formats

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add option --iso

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: comment-in an expensive realloc

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add option --time-format

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: fix option exclusivity

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: mention --time-format in usage

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: cleanup fill_table()

 * check xasprintf() return code is unnecessary
 * just check all scols_line_set_data() return codes on one place

Signed-off-by: Karel Zak <kzak@redhat.com>