Fix . and .. in ftpfs directories.

This commit is contained in:
Pavel Machek 2000-08-04 12:15:46 +00:00
parent 68e2b7a1e5
commit 127611ec77
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2000-08-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz> 2000-08-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c (dir_load): add . and .. to ftpfs listings, courtesy of
Roland.Mainz@informatik.med.uni-giessen.de
* util-alone.c (message_1s1d): added missing function * util-alone.c (message_1s1d): added missing function
2000-08-03 Pavel Roskin <proski@gnu.org> 2000-08-03 Pavel Roskin <proski@gnu.org>

View File

@ -1255,6 +1255,7 @@ dir_load(vfs *me, vfs_s_inode *dir, char *remote_path)
vfs_s_insert_entry(me, dir, ent); vfs_s_insert_entry(me, dir, ent);
} }
vfs_s_add_dots(me, dir, NULL);
close(sock); close(sock);
me->verrno = E_REMOTE; me->verrno = E_REMOTE;
if ((get_reply (me, SUP.sock, NULL, 0) != COMPLETE) || !num_entries) if ((get_reply (me, SUP.sock, NULL, 0) != COMPLETE) || !num_entries)