]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix fs pattern usage in mount --all
authorKarel Zak <kzak@redhat.com>
Tue, 6 Mar 2018 13:44:23 +0000 (14:44 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Mar 2018 13:44:23 +0000 (14:44 +0100)
commit76de2157cf579c98620535c2d6352096063aa2b1
treeefdfbd194661d4722d890a5f074310a963e132b0
parentdcb673937faa2c3249f6f4482a3ca32da7155105
libmount: fix fs pattern usage in mount --all

The command "mount -a -t <pattern>" uses the -t as pattern to filter
fstab entries. And "mount -t <type>" is used to specify FS type.

Unfortunately libmount does not care about this difference when it
calls standard mount functionality. The original pattern is still in
the library control struct and mnt_do_mount() tries to use it as FS
type.

This patch is just bugfix. Maybe the long term solution would be to
differentiate between the pattern and type in the library API. Now the
library follows mount(8) command line and it's little bit messy.

Reported-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c