On Thu, Aug 26, 2004 at 10:53:00AM +0200, Ivan IS. Sijakovski wrote:
> Yes, it is working if ftp server on Linux, but it does not work if ftp
> server is on Solaris 8.
It appears the problem is connected with MDTM command and solaris ftpd
does not implement it. Please try this patch.
--
Alexander.
Index: FileCopy.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/FileCopy.cc,v
retrieving revision 1.102
diff -u -p -r1.102 FileCopy.cc
--- FileCopy.cc 19 Mar 2004 14:20:55 -0000 1.102
+++ FileCopy.cc 31 Aug 2004 12:09:08 -0000
@@ -1314,11 +1314,11 @@ int FileCopyPeerFDStream::Do()
{
if(eof)
{
+ if(getfd()==-1)
+ return m;
if(!date_set && date!=NO_DATE && do_set_date)
{
if(date==NO_DATE_YET)
- return m;
- if(getfd()==-1)
return m;
stream->setmtime(date);
date_set=true;