mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* ftpfs.c (linear_read): Unset control_connection_buzy
on EOF. (ftpfs_fh_close): Call vfs_s_invalidate ().
This commit is contained in:
parent
2b3c6b8f0b
commit
c5626b241c
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user