* ftpfs.c (dir_load): Don't handle empty remote_path in special

way.
This commit is contained in:
Andrew V. Samoilov 2002-08-21 08:22:33 +00:00
parent 67068ff0d2
commit a3668cd14a
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2002-08-21 Andrew V. Samoilov <sav@bcs.zp.ua>
* ftpfs.c (dir_load): Don't handle empty remote_path in special
way.
2002-08-19 Pavel Roskin <proski@gnu.org>
* direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow.

View File

@ -1271,14 +1271,10 @@ again:
/* Wu-ftpd produces strange output for '/' if 'LIST -la .' used */
sock = open_data_connection (me, super, "LIST -la", 0, TYPE_ASCII, 0);
else {
/* Trailing "/." is necessary if remote_path is a symlink
but don't generate "//." */
char *path = (*remote_path) ? concat_dir_and_file (remote_path, ".")
: NULL;
/* Trailing "/." is necessary if remote_path is a symlink */
char *path = concat_dir_and_file (remote_path, ".");
sock = open_data_connection (me, super, "LIST -la", path, TYPE_ASCII, 0);
if (path)
g_free (path);
g_free (path);
}
if (sock == -1)