Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 incorrect url prefixing for ftps

closed-accepted
None
5
2006-04-25
2006-04-24
Wei-Yin Chen
No

In ftpfs.c, function ftpfs_opt_proc, near
case FUSE_OPT_KEY_NONOPT:
if (!ftpfs.host) {
const char* prefix = "";
if (strncmp(arg, "ftp://", 6)) {
prefix = "ftp://";
}

This causes an error when the url begins with "ftps://".
The patch is quite simple:

- if (strncmp(arg, "ftp://", 6)) {
+ if ((strncmp(arg, "ftp://", 6)!=0) &&
(strncmp(arg, "ftps://", 7)!=0)) {

Discussion

    • assigned_to: nobody --> braga
    • status: open --> closed-accepted
     
  • Logged In: YES
    user_id=307089

    Committed to CVS. Thanks.