]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix mount -a for cifs
authorAurelien Aptel <aaptel@suse.com>
Thu, 1 Sep 2016 11:57:42 +0000 (13:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Sep 2016 09:51:38 +0000 (11:51 +0200)
commit76d4fba2e47808264f5c4c883127b0d275e31949
treedc940371737371e051e9b0b2c659c01216a0c825
parentf20b214edc6e0c422a9a8991929fb793ee543dda
libmount: fix mount -a for cifs

when mounting a cifs share, the src is actually an UNC path which can in
in several forms:

simple:            //host/share, //host/share/
including subpath: //host/share/sub/path

to check if the cifs fs is mounted we have to extract the subpath and
compare *that* to the root.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
libmount/src/tab.c