mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +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>
|
2002-08-19 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow.
|
* 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 */
|
/* Wu-ftpd produces strange output for '/' if 'LIST -la .' used */
|
||||||
sock = open_data_connection (me, super, "LIST -la", 0, TYPE_ASCII, 0);
|
sock = open_data_connection (me, super, "LIST -la", 0, TYPE_ASCII, 0);
|
||||||
else {
|
else {
|
||||||
/* Trailing "/." is necessary if remote_path is a symlink
|
/* Trailing "/." is necessary if remote_path is a symlink */
|
||||||
but don't generate "//." */
|
char *path = concat_dir_and_file (remote_path, ".");
|
||||||
char *path = (*remote_path) ? concat_dir_and_file (remote_path, ".")
|
|
||||||
: NULL;
|
|
||||||
|
|
||||||
sock = open_data_connection (me, super, "LIST -la", path, TYPE_ASCII, 0);
|
sock = open_data_connection (me, super, "LIST -la", path, TYPE_ASCII, 0);
|
||||||
if (path)
|
g_free (path);
|
||||||
g_free (path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sock == -1)
|
if (sock == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user