1
1

Fixed vfs_class->fill_names() functions (Fish, Ftpfs, Smbfs) for return URL-like paths

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
Slava Zanko 2011-06-22 10:51:39 +03:00
родитель a0b48d9b4e
Коммит ef676d3244
3 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -1521,8 +1521,9 @@ fish_fill_names (struct vfs_class *me, fill_names_f func)
}
name =
g_strconcat ("/#sh:", super->path_element->user, "@", super->path_element->host, flags,
"/", super->path_element->path, (char *) NULL);
g_strconcat (vfs_fish_ops.prefix, VFS_PATH_URL_DELIMITER,
super->path_element->user, "@", super->path_element->host, flags, "/",
super->path_element->path, (char *) NULL);
func (name);
g_free (name);
}

Просмотреть файл

@ -2215,8 +2215,9 @@ ftpfs_fill_names (struct vfs_class *me, fill_names_f func)
char *name;
name =
g_strconcat ("/#ftp:", super->path_element->user, "@", super->path_element->host, "/",
super->path_element->path, (char *) NULL);
g_strconcat (vfs_ftpfs_ops.prefix, VFS_PATH_URL_DELIMITER, super->path_element->user,
"@", super->path_element->host, "/", super->path_element->path,
(char *) NULL);
func (name);
g_free (name);
}

Просмотреть файл

@ -119,7 +119,7 @@ typedef struct
/*** file scope variables ************************************************************************/
static const char *const IPC = "IPC$";
static const char *const URL_HEADER = "/#smb:";
static const char *const URL_HEADER = "smb" VFS_PATH_URL_DELIMITER;
static int my_errno;
static uint32 err;