Fix Bug #1475625. Patch submitted by Victor Chen.
This commit is contained in:
2
ftpfs.c
2
ftpfs.c
@@ -763,7 +763,7 @@ static int ftpfs_opt_proc(void* data, const char* arg, int key,
|
|||||||
case FUSE_OPT_KEY_NONOPT:
|
case FUSE_OPT_KEY_NONOPT:
|
||||||
if (!ftpfs.host) {
|
if (!ftpfs.host) {
|
||||||
const char* prefix = "";
|
const char* prefix = "";
|
||||||
if (strncmp(arg, "ftp://", 6)) {
|
if (strncmp(arg, "ftp://", 6) && strncmp(arg, "ftps://", 7)) {
|
||||||
prefix = "ftp://";
|
prefix = "ftp://";
|
||||||
}
|
}
|
||||||
ftpfs.host = g_strdup_printf("%s%s%s", prefix, arg,
|
ftpfs.host = g_strdup_printf("%s%s%s", prefix, arg,
|
||||||
|
Reference in New Issue
Block a user