References: https://github.com/karelzak/util-linux/issues/116
Signed-off-by: Karel Zak <kzak@redhat.com>
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 */
}
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 */