Fixed vfs_class->fill_names() functions (Fish, Ftpfs, Smbfs) for return URL-like paths
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
родитель
a0b48d9b4e
Коммит
ef676d3244
@ -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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user