blob: c132a00cf0869a6539fe3e41e1181533db88a677 [file] [log] [blame]
--- a/block.c
+++ b/block.c
@@ -871,7 +871,10 @@ static int exec_mount(const char *source
int err, status, pfds[2];
char errmsg[128], cmd[sizeof("/sbin/mount.XXXXXXXXXXXXXXXX\0")];
- snprintf(cmd, sizeof(cmd), "/sbin/mount.%s", fstype);
+ if (!strcmp(fstype, "ntfs"))
+ snprintf(cmd, sizeof(cmd), "/sbin/mount.%s", "ntfs-3g");
+ else
+ snprintf(cmd, sizeof(cmd), "/sbin/mount.%s", fstype);
if (stat(cmd, &s) < 0 || !S_ISREG(s.st_mode) || !(s.st_mode & S_IXUSR)) {
ULOG_ERR("No \"mount.%s\" utility available\n", fstype);