]> git.ipfire.org Git - thirdparty/util-linux.git/commit
namei: align missing files with rest of the print out
authorSami Kerola <kerolasa@iki.fi>
Wed, 20 Nov 2013 00:57:04 +0000 (00:57 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Dec 2013 09:59:27 +0000 (10:59 +0100)
commitcd80445017fcc845eebed534782c6e7f13ef8480
treea0e7eb7b22ca3a45b00eecf6e69ccbad7ad4eaf7
parentf614b73c0eb18b554e950df487f66ed6e13ca0fc
namei: align missing files with rest of the print out

This change should make namei output more readable when multiple
arguments are supplied.

The old:

$ namei -l /usr/foo
f: /usr/foo
drwxr-xr-x root root /
drwxr-xr-x root root usr
foo - No such file or directory

The new:

$ namei -l /usr/foo
f: /usr/foo
drwxr-xr-x root root /
drwxr-xr-x root root usr
                     foo - No such file or directory

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/namei.c
tests/expected/namei/logic