mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-23 19:52:12 +03:00
1999-10-07 Miguel de Icaza <miguel@gnu.org>
* ftpfs.c (linear_read): Applied patch from Alexander V. Lukyanov <lav@yars.free.net> that makes the code compliant to RFC959
This commit is contained in:
parent
cf94f9ae21
commit
7db5c96a00
@ -1,3 +1,8 @@
|
||||
1999-10-07 Miguel de Icaza <miguel@gnu.org>
|
||||
|
||||
* ftpfs.c (linear_read): Applied patch from Alexander V. Lukyanov
|
||||
<lav@yars.free.net> that makes the code compliant to RFC959
|
||||
|
||||
1999-08-30 Miguel de Icaza <miguel@gnu.org>
|
||||
|
||||
* ftpfs.c (insert_dots): Use g_new here.
|
||||
|
@ -1644,12 +1644,13 @@ linear_read (struct direntry *fe, void *buf, int len)
|
||||
linear_abort(fe);
|
||||
|
||||
if (!n) {
|
||||
close (fe->data_sock);
|
||||
fe->data_sock = 1;
|
||||
|
||||
if ((get_reply (qsock (fe->bucket), NULL, 0) != COMPLETE)) {
|
||||
my_errno = EIO;
|
||||
n=-1;
|
||||
}
|
||||
close (fe->data_sock);
|
||||
fe->data_sock = -1;
|
||||
}
|
||||
ERRNOR (errno, n);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user