diff options
Diffstat (limited to 'lib/libftp/FtpCopy.c')
-rw-r--r-- | lib/libftp/FtpCopy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libftp/FtpCopy.c b/lib/libftp/FtpCopy.c index d09fd364c0d0..db582d2ab7d2 100644 --- a/lib/libftp/FtpCopy.c +++ b/lib/libftp/FtpCopy.c @@ -2,9 +2,9 @@ Library for ftpd clients.(libftp) Copyright by Oleg Orel All rights reserved. - -This library is desined for free, non-commercial software creation. -It is changeable and can be improved. The author would greatly appreciate + +This library is desined for free, non-commercial software creation. +It is changeable and can be improved. The author would greatly appreciate any advises, new components and patches of the existing programs. Commercial usage is also possible with participation of it's author. @@ -21,19 +21,19 @@ STATUS FtpCopy (FTP * ftp1 , FTP * ftp2 ,char *in , char * out) if (!*out) out=in; - if ( FtpTestFlag(ftp1,FTP_REST) && FtpTestFlag(ftp2,FTP_REST) + if ( FtpTestFlag(ftp1,FTP_REST) && FtpTestFlag(ftp2,FTP_REST) && (size=FtpSize(ftp1,in))>0 && FtpCommand(ftp1,"REST 0",0,0,EOF)==350 && FtpCommand(ftp2,"REST 0",0,0,EOF)==350 ) ftp1->seek=ftp2->seek=size; else ftp1->seek=ftp2->seek=0; - + FtpAssert(ftp1,FtpData(ftp1,"RETR %s",in,"r")); FtpAssert(ftp2,FtpData(ftp2,"STOR %s",out,"w")); while ((size=FtpReadBlock(ftp1,buffer,FTPBUFSIZ))>0) { - if (FtpWriteBlock(ftp2,buffer,size)!=size) + if (FtpWriteBlock(ftp2,buffer,size)!=size) return EXIT(ftp2,QUIT); } |