cfdisk: fix possible memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
cfdisk: make code more readable for analyzers [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
docs: improve the formatting and wording of two man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
docs: improve the wording and conventions in the man-page howto

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
build-sys: harmonize some indentation

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
lib/colors: remove memory leak

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
fallocate: avoid unnecessary computation

Where POSIX_FADV_SEQUENTIAL and HAVE_POSIX_FADVISE are not available it
is waste of resources to have variables that are meaningful only for
posix_fadvise().  Also initialize the variables immediately to correct
values, and since cachesz is never changed mark it read only.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
fstrim: avoid TOCTOU race

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
docs: bring four more man pages closer to standard formatting

In the IPC man pages strictly adhere to the memory, queue, semaphore
order, to reduce disorientation.  And for 'ipcmk', the arguments for
-M and -S and -p are not optional.  Add --version for 'mountpoint'.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
lib/loopdev: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/procutils: check fgets() return value [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount: add missing assert()

Signed-off-by: Karel Zak <kzak@redhat.com>
last: fix is_phantom() logic [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
sulogin: check result of the open() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
sulogin: don't use uninitialized struct sigaction [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
findmnt: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
fstrim: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
umount: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
wall: add fallback for failed sysconf()

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