losetup: fix -f on systems without /dev/loop-control

Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Merge branch 'tests-known' of https://github.com/rudimeier/util-linux

* 'tests-known' of https://github.com/rudimeier/util-linux:
  tests, script/race is known to fail
  tests: script/race would work with variable loop count
  tests: ipcs/limits2 is known to fail
  tests: fix hexdump for big endian
  tests, add missing output for hexdump
  tests: fix hexdump, add ts_finalize
  tests: fix "KNOWN FAILED" for subtests
tests: add .BE hexdump test results (from s390)

Signed-off-by: Karel Zak <kzak@redhat.com>
Merge branch 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux

* 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux:
  travis-ci: enable root checks
  travis-ci: minor cleanup and speedup
  tests: introduce TS_CMD_UUIDGEN (never use installed one)
  tests, don't write TS_DEVICE to stdout anymore
  tests: ts_scsi_debug_init must not run in a subshell
  tests: cleanup ts_scsi_debug_init
  tests: some more tests need loop support
  tests: ts_device_init requires loop support
  tests: use ts_check_losetup in losetup test
  tests: add function ts_check_losetup
  tests: ts_device_init remove useless error handling
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>