Группа :: Сети/Передача файлов
Пакет: lftp
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: lftp-3.5.1-cr.patch
--- lftp-3.5.1/src/commands.cc 7 Jul 2006 05:15:31 -0000 1.255
+++ lftp-3.5.1/src/commands.cc 10 Jul 2006 07:55:17 -0000
@@ -1343,6 +1343,7 @@ CMD(ls)
bool re=false;
int mode=FA::LIST;
const char *op=args->a0();
+ bool ascii=true;
if(strstr(op,"nlist"))
nlist=true;
if(!strncmp(op,"re",2))
@@ -1355,6 +1356,7 @@ CMD(ls)
return 0;
}
nlist=true;
+ ascii=false;
mode=FA::QUOTE_CMD;
if(!strcmp(op,"site"))
args->insarg(1,"SITE");
@@ -1392,6 +1394,8 @@ CMD(ls)
FileCopy *c=FileCopy::New(src_peer,dst_peer,false);
c->DontCopyDate();
c->LineBuffered();
+ if(ascii)
+ c->Ascii();
CopyJob *j=new CopyJob(c,a,op);
if(!output || output->usesfd(1))