diff options
author | Benjamin Otte <otte@gnome.org> | 2009-06-04 18:40:53 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-06-11 10:05:40 +0200 |
commit | 5e3ce10bd814834731ac70e584a90b64ab2860fe (patch) | |
tree | 86a4fd2f15004e4722c448fcad7d2fd2f045ad7d /daemon/gvfsftpfile.c | |
parent | 06e0e082a174b9fd4405af93ca66e8bfc9b888b9 (diff) | |
download | gvfs-5e3ce10bd814834731ac70e584a90b64ab2860fe.tar.gz |
[FTP] do not add double slashes when constructing relative to root
Diffstat (limited to 'daemon/gvfsftpfile.c')
-rw-r--r-- | daemon/gvfsftpfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsftpfile.c b/daemon/gvfsftpfile.c index 7f0b45ee..f72c0fac 100644 --- a/daemon/gvfsftpfile.c +++ b/daemon/gvfsftpfile.c @@ -171,7 +171,7 @@ g_vfs_ftp_file_new_child (const GVfsFtpFile *parent, const char *display_name, G return NULL; } - new_path = g_strconcat (parent->gvfs_path, "/", display_name, NULL); + new_path = g_strconcat (parent->gvfs_path, parent->gvfs_path[1] == 0 ? "" : "/", display_name, NULL); child = g_vfs_ftp_file_new_from_gvfs (parent->backend, new_path); g_free (new_path); return child; |