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:
Miguel de Icaza 1999-10-07 05:24:54 +00:00
parent cf94f9ae21
commit 7db5c96a00
2 changed files with 8 additions and 2 deletions

View File

@ -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.

View File

@ -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);
}