]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount: Do not call mnt_pretty_path() on net file systems.
authorStanislav Brabec <sbrabec@suse.cz>
Tue, 5 Feb 2019 23:07:54 +0000 (00:07 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Feb 2019 10:56:47 +0000 (11:56 +0100)
commit8487dbee9f68b2fc9b92a955a5f0f18d60975640
tree9be0b74480288609577ba87dc819d4553d44b136
parentcc06250f116d899f656b0c8415cd955c01ef63a1
mount: Do not call mnt_pretty_path() on net file systems.

Calling mnt_pretty_path() on network file systems can cause mangling of
the output:
root# mount | grep nfs
nfs.example.com:/home on /home type nfs4 ...
root# mkdir -p nfs.example.com:/home
root# mount | grep nfs
/root/nfs.example.com:/home on /home type nfs4 ...

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
sys-utils/mount.c