summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-04 20:22:34 +0000
committerMiles Bader <miles@gnu.org>1997-08-04 20:22:34 +0000
commitf20a48afff1d935eea20aa2c02b5fd805e85663c (patch)
treeefd869cd9de32dcc327d572d3e073756d3a4f9ad
parent7ba88361c20d8b0ae74aeaf257c7dd7a2628bd5a (diff)
(ftp_conn_unix_cont_get_stats):
If returning with an error, ignore any return from ftp_conn_finish_transfer.
-rw-r--r--libftpconn/unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libftpconn/unix.c b/libftpconn/unix.c
index f72ae855..c32a76fc 100644
--- a/libftpconn/unix.c
+++ b/libftpconn/unix.c
@@ -457,9 +457,11 @@ drwxrwxrwt 7 34 archive 512 May 1 14:28 /tmp
else
tm.tm_year = PARSE_INT () - 1900;
+#if 0 /* Avoid kernel lossage while debugging XXX */
stat->st_mtime = mktime (&tm);
if (stat->st_mtime == (time_t)-1)
return EGRATUITOUS;
+#endif
/* atime and ctime are the same as mtime. */
stat->st_atime = stat->st_ctime = stat->st_mtime;
@@ -649,6 +651,8 @@ finished:
if (err && rd > 0)
ftp_conn_abort (conn);
+ else if (err)
+ ftp_conn_finish_transfer (conn);
else
err = ftp_conn_finish_transfer (conn);