b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/block.c |
| 2 | +++ b/block.c |
| 3 | @@ -871,7 +871,10 @@ static int exec_mount(const char *source |
| 4 | int err, status, pfds[2]; |
| 5 | char errmsg[128], cmd[sizeof("/sbin/mount.XXXXXXXXXXXXXXXX\0")]; |
| 6 | |
| 7 | - snprintf(cmd, sizeof(cmd), "/sbin/mount.%s", fstype); |
| 8 | + if (!strcmp(fstype, "ntfs")) |
| 9 | + snprintf(cmd, sizeof(cmd), "/sbin/mount.%s", "ntfs-3g"); |
| 10 | + else |
| 11 | + snprintf(cmd, sizeof(cmd), "/sbin/mount.%s", fstype); |
| 12 | |
| 13 | if (stat(cmd, &s) < 0 || !S_ISREG(s.st_mode) || !(s.st_mode & S_IXUSR)) { |
| 14 | ULOG_ERR("No \"mount.%s\" utility available\n", fstype); |