From f20a48afff1d935eea20aa2c02b5fd805e85663c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 4 Aug 1997 20:22:34 +0000 Subject: (ftp_conn_unix_cont_get_stats): If returning with an error, ignore any return from ftp_conn_finish_transfer. --- libftpconn/unix.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3