mount: improve --move docs

Signed-off-by: Karel Zak <kzak@redhat.com>
lslogins: cleanup after error [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
lslogins: free after error [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
textual: use angular brackets around each individual argument

In usage texts each word that is an argument should be marked
separately with angular brackets.  Also add a translator comment.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: "ambivalent" applies to intentions, "ambiguous" to results

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: use a somewhat clearer and more standard failure message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: add a comma for clarity, plus some other tweaks

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: not using angular brackets around literal arguments

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: grammarize an error message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: using angular brackets around individual arguments

And separate short and long options with the standard comma.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: grammarize another error message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: angular brackets around a non-literal argument, singular

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
textual: there may be no space between option and optional =arg

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
libmount: don't return root if path contains // or ending /

If the path fx. is /foo/bar/ the initial stripoff will replace the last slash
with \0 and return a pointer to that exact \0 character. The same thing will
happen if the path contains // somewhere.

Signed-off-by: Søren Holm <sgh@sgh.dk>
tests: fix the ipcs test for shmall being too big to show

Based on hints from Adam Sampson, Ruediger Meier and Sami Kerola.

Signed-off-by: Karel Zak <kzak@redhat.com>
su: print proper core dump message when killed

An example is, in one terminal "sudo su -; echo $$", and in
another terminal, "kill -9  $PID" (the pid of the su -). It
should not print "(core dumped)", unless the kill signal
specified so, e.g. kill -7 or kill -11.

Signed-off-by: pcpa <paulo.cesar.pereira.de.andrade@gmail.com>
cfdisk: don't modify ncurses LINES and COLS

On Sun, Sep 28, 2014 at 01:48:38AM -0700, pv4 wrote:
 If ncurses is build with --enable-reentrant, building
 util-linux-2.25.1 fails with the folllowing error:

     disk-utils/cfdisk.c: In function 'resize':
     disk-utils/cfdisk.c:202:9: error: lvalue required as left operand of assignment
        LINES = ws.ws_row;
              ^
     disk-utils/cfdisk.c:203:8: error: lvalue required as left operand of assignment
        COLS = ws.ws_col;
             ^

 man COLS gives the following:

     Depending on the configuration, these may be actual variables,
     or macros (see curs_threads(3X)) which provide read-only
     access to curses's state.  In either case, applications should
     treat them as read-only to avoid confusing the library.

Addresses: https://github.com/karelzak/util-linux/issues/125
Signed-off-by: Karel Zak <kzak@redhat.com>
swapon: align available columns section in usage()

Commit 5db57cfc469b45ada0162a64d627ce25a3d2431f missed doing this change.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
docs: update deprecation banners

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
hexdump: remove deprecation message

Message 'calling hexdump as od has been deprecated in favor of GNU
coreutils od' has informed the hexdump not to be used like that for three
and half years, and five releases.  It is time to get rid of notice.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>