* ftpfs.c (linear_read): Unset control_connection_buzy

on EOF.
(ftpfs_fh_close): Call vfs_s_invalidate ().
This commit is contained in:
Andrew V. Samoilov 2002-05-21 17:10:50 +00:00
parent 2b3c6b8f0b
commit c5626b241c
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2002-05-21 Andrew V. Samoilov <kai@cmail.ru>
* ftpfs.c (linear_read): Unset control_connection_buzy
on EOF.
(ftpfs_fh_close): Call vfs_s_invalidate ().
* fish.c (fish_fh_open): Don't retrieve file if it is
opened for writting only.

View File

@ -1470,6 +1470,7 @@ linear_read (vfs *me, vfs_s_fh *fh, void *buf, int len)
linear_abort(me, fh);
if (!n) {
SUP.control_connection_buzy = 0;
close (FH_SOCK);
FH_SOCK = -1;
if ((get_reply (me, SUP.sock, NULL, 0) != COMPLETE))
@ -1744,6 +1745,7 @@ static int ftpfs_fh_close (vfs *me, vfs_s_fh *fh)
fh->changed = 0;
if (get_reply (me, fh->ino->SUP.sock, NULL, 0) != COMPLETE)
ERRNOR (EIO, -1);
vfs_s_invalidate (me, FH_SUPER);
}
return 0;
}