diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 35b6fc6f3..b90801d85 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2006-03-06 Arpad Gereoffy (A'rpi) + + * ftpfs.c (ftpfs_dir_load): Remove redundant call to + `ftpfs_translate_path'. + 2006-02-23 Pavel Roskin * Makefile.am: Add fish.h. diff --git a/vfs/ftpfs.c b/vfs/ftpfs.c index 116088b5c..40b6fddf4 100644 --- a/vfs/ftpfs.c +++ b/vfs/ftpfs.c @@ -1209,17 +1209,11 @@ ftpfs_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path cd_first ? _("(chdir first)") : ""); if (cd_first) { - char *p; - - p = ftpfs_translate_path (me, super, remote_path); - - if (ftpfs_chdir_internal (me, super, p) != COMPLETE) { - g_free (p); + if (ftpfs_chdir_internal (me, super, remote_path) != COMPLETE) { ftpfs_errno = ENOENT; print_vfs_message (_("ftpfs: CWD failed.")); return -1; } - g_free (p); } gettimeofday (&dir->timestamp, NULL);