summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_mount.c
diff options
context:
space:
mode:
authorKarel Zak2014-08-21 14:58:40 +0200
committerKarel Zak2014-08-21 14:58:40 +0200
commite4ea53de0b6bc31303fdfc9ebb546bce4527c5d6 (patch)
treef713c4bb9af456eb6ce3f6a1968bf6280d786c5d /libmount/src/context_mount.c
parenttests: apply travis clang PATH workaround (diff)
downloadkernel-qcow2-util-linux-e4ea53de0b6bc31303fdfc9ebb546bce4527c5d6.tar.gz
kernel-qcow2-util-linux-e4ea53de0b6bc31303fdfc9ebb546bce4527c5d6.tar.xz
kernel-qcow2-util-linux-e4ea53de0b6bc31303fdfc9ebb546bce4527c5d6.zip
libmount: use -t for type.subtype in helpers API
References: https://github.com/karelzak/util-linux/issues/116 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r--libmount/src/context_mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 015171e3c..71a4e85f9 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -580,7 +580,9 @@ static int exec_helper(struct libmnt_context *cxt)
args[i++] = "-o"; /* 8 */
args[i++] = o; /* 9 */
}
- if (type && !endswith(cxt->helper, type)) {
+ if (type
+ && strchr(type, '.')
+ && !endswith(cxt->helper, type)) {
args[i++] = "-t"; /* 10 */
args[i++] = type; /* 11 */
}