mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-09 11:54:12 +03:00
* ftpfs.c (dir_load): Don't handle empty remote_path in special
way.
This commit is contained in:
parent
67068ff0d2
commit
a3668cd14a
@ -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.
|
||||
|
10
vfs/ftpfs.c
10
vfs/ftpfs.c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user