Fix Bug #1475625. Patch submitted by Victor Chen.

This commit is contained in:
braga
2006-04-25 01:11:38 +00:00
parent 7c999b0ee4
commit 880039aea7

View File

@@ -763,7 +763,7 @@ static int ftpfs_opt_proc(void* data, const char* arg, int key,
case FUSE_OPT_KEY_NONOPT:
if (!ftpfs.host) {
const char* prefix = "";
if (strncmp(arg, "ftp://", 6)) {
if (strncmp(arg, "ftp://", 6) && strncmp(arg, "ftps://", 7)) {
prefix = "ftp://";
}
ftpfs.host = g_strdup_printf("%s%s%s", prefix, arg,