summaryrefslogtreecommitdiff
path: root/daemon/gvfsftpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/gvfsftpfile.c')
-rw-r--r--daemon/gvfsftpfile.c2
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;