On Thu, Jan 12, 2012 at 05:28:14PM +0100, Hidalgo Eguiagaray, Rafael wrote:
> We are having problems when sending under ssh a file with the –a switch.

Please try this patch.

--
   Alexander.
diff --git a/src/FileCopy.cc b/src/FileCopy.cc
index f07a8c2..b093064 100644
--- a/src/FileCopy.cc
+++ b/src/FileCopy.cc
@@ -1561,6 +1561,10 @@ int FileCopyPeerFDStream::Get_LL(int len)
       {
         SetDate(st.st_mtime);
         SetSize(st.st_size);
+#ifndef NATIVE_CRLF
+        if(ascii)
+           SetSize(NO_SIZE);
+#endif
       }
    }
 
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to