summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/context_umount.c')
-rw-r--r--libmount/src/context_umount.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index 220f28bc6..73e8214c8 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -559,9 +559,11 @@ static int exec_helper(struct libmnt_context *cxt)
args[i++] = "-v"; /* 6 */
if (mnt_context_is_rdonly_umount(cxt))
args[i++] = "-r"; /* 7 */
- if (type && !endswith(cxt->helper, type)) {
+ if (type
+ && strchr(type, '.')
+ && !endswith(cxt->helper, type)) {
args[i++] = "-t"; /* 8 */
- args[i++] = (char *) type; /* 9 */
+ args[i++] = (char *) type; /* 9 */
}
args[i] = NULL; /* 10 */