lftp-pre2.6.0-20020724

2002-07-24 Thread Alexander V. Lukyanov
New prerelease is available. Some bugs fixed, documentation updated. -- Alexander.

Re: little pl.po fix

2002-07-23 Thread Alexander V. Lukyanov
On Mon, Jul 22, 2002 at 05:42:18PM +0200, Arkadiusz Miskiewicz wrote: > msgid "%s: %s: %s\n" > -msgstr "%s: %s\n" > +msgstr "%s: %s: %s\n" A translation is not needed here. I have just removed _() from source. > After make update-po there will be one more thing to fix: Change applied. Thanks!

Re: lftp-pre2.6.0

2002-07-23 Thread Alexander V. Lukyanov
On Mon, Jul 22, 2002 at 08:25:02PM +0200, Piotr Krukowiecki wrote: > 'set net:limit-rate 5' doesn't work. (it should set the same rate for > both down and up) Here is the fix. --- ResMgr.cc 2002/07/18 09:13:49 1.43 +++ ResMgr.cc 2002/07/23 08:25:16 @@ -854,6 +854,7 @@ const char *Res

Re: Bug in put -c ?

2002-07-22 Thread Alexander V. Lukyanov
On Mon, Jul 22, 2002 at 12:12:51PM +0200, Nicolas Noble wrote: > Well, if the server is configured to not allow Overwrite but to allow > Append, then the REST command would make the difference, wouldn't it? But REST 0 is the default. Please check if it would help. -- Alexander.

Re: Bug in put -c ?

2002-07-22 Thread Alexander V. Lukyanov
On Mon, Jul 22, 2002 at 11:38:19AM +0200, Nicolas Noble wrote: > > ---> STOR Trigun.sfv > > <--- 425 Permission Denied. File Exists. > > Humm... I always heard that a REST 0 should never be used. But maybe this > can be useful here, no? Maybe have to try with a flag somewhere > (ftp:rest-zero=yes

Re: lftp-pre2.6.0

2002-07-18 Thread Alexander V. Lukyanov
On Thu, Jul 18, 2002 at 11:24:42PM +0900, Ayamura KIKUCHI wrote: > > lftp-pre2.6.0 is available for testing: > > Compilation errors occur on IRIX 6.5.16f with MIPSpro Compilers 7.3.1.3m. Thanks! The fix is to remove the `return'. -- Alexander.

Re: please: net:limit-rate separately for downloads and uploads!

2002-07-18 Thread Alexander V. Lukyanov
On Fri, Jul 05, 2002 at 08:43:28PM +0200, Tillmann Steinbrecher wrote: > On Fri, 2002-07-05 at 11:33, Piotr Krukowiecki wrote: > > This is a feature that i need badly... > > Usually i could download much faster than upload... but i have to limit > > upload speed, which limits download speed too..

lftp-pre2.6.0

2002-07-18 Thread Alexander V. Lukyanov
lftp-pre2.6.0 is available for testing: ftp://lftp.yar.ru/lftp/devel/lftp-pre2.6.0.tar.gz News: * separated rate limitations for download and upload (set limit-rate 200:100). * added SSL certificate support and several SSL related settings. * connection slot support. Now you can switch sessi

Re: shelving misc patches

2002-07-18 Thread Alexander V. Lukyanov
On Thu, Jul 18, 2002 at 04:18:06AM -0400, Glenn Maynard wrote: > On Thu, Jul 18, 2002 at 11:01:33AM +0400, Alexander V. Lukyanov wrote: > > I think you are right. Here is another patch. > > This fixes the "repeat 0 foo" problem, but "repeat 0 !echo hi" stil

Re: shelving misc patches

2002-07-17 Thread Alexander V. Lukyanov
On Wed, Jul 17, 2002 at 06:09:23PM -0400, Glenn Maynard wrote: > "repeat 0s foo" often requires multiple ^Cs to stop. It seems that > the CmdExec within SleepJob is being run by the scheduler first, not > doing anything with the SIGINT (since it's not interactive), and then > clearing it in exec_

Re: shelving misc patches

2002-07-17 Thread Alexander V. Lukyanov
On Wed, Jul 10, 2002 at 10:07:58PM -0400, Glenn Maynard wrote: > Try: > repeat 0s !echo hi > A ^C gets eaten by the child job; you have to mash ^C to stop it. I'm > not sure there's a clean way to fix this. (Repeat shouldn't stop if its > command exits with an error; perhaps it should exit if th

Re: speedometer [lftp 2.5.1]

2002-07-17 Thread Alexander V. Lukyanov
On Sun, Jul 14, 2002 at 10:12:49PM +0200, Arkadiusz Miskiewicz wrote: > Now the fix in such case would be: start time (speed related) counter when > first data reaches client because afaik this is current speed counter > (not average one). How about this patch? -- Alexander. Index: Speedome

Re: shelving misc patches

2002-07-17 Thread Alexander V. Lukyanov
On Sat, Jul 13, 2002 at 12:00:09AM -0400, Glenn Maynard wrote: > You left out the rest of the stuff in that file, too ... What did I forget? > The repeat problem isn't completely contrived, by the way; it also happens > when any filters are used (ie. repeat 0s zcat file). There is a way to solv

Re: chdir : problem

2002-07-17 Thread Alexander V. Lukyanov
On Fri, Jul 12, 2002 at 02:54:02PM -0400, Glenn Maynard wrote: > The colon special casing for VMS/DOS causes a lot of problems for real > servers: I have added setting ftp:device-prefix (default off) to turn on the device prefixes explicitly. -- Alexander.

Re: shelving misc patches

2002-07-12 Thread Alexander V. Lukyanov
On Wed, Jul 10, 2002 at 10:07:58PM -0400, Glenn Maynard wrote: > On Wed, Jul 10, 2002 at 03:15:02PM +0400, Alexander V. Lukyanov wrote: > > I have committed it to cvs, without commented out test code. > > Normally I'd bash on this a bit more before sending it in, but sinc

Re: status % fix

2002-07-12 Thread Alexander V. Lukyanov
On Thu, Jul 11, 2002 at 04:11:16AM -0400, Glenn Maynard wrote: > CopyJob.cc: fix format string error. Applied. Thanks! -- Alexander.

Re: lftp 2.5.4 core dump

2002-07-12 Thread Alexander V. Lukyanov
On Thu, Jul 11, 2002 at 01:37:52PM -0400, Glenn Maynard wrote: > On Thu, Jul 11, 2002 at 06:31:35PM +0200, Piotr Krukowiecki wrote: > > Got core dump today. This is second in few days, but i don't have > > bt from previous one (but *iirc* last was ArgV::getnext() too) > > Try the attached. Appl

Re: shelving misc patches

2002-07-10 Thread Alexander V. Lukyanov
On Tue, Jul 09, 2002 at 06:00:42PM -0400, Glenn Maynard wrote: > On Tue, Jul 09, 2002 at 01:58:53PM +0400, Alexander V. Lukyanov wrote: > > > OutputJob. It's useful, fixes the cls bug, and makes buffered outputting > > > trivial from any job, but it's still a b

Re: fd leak fix

2002-07-10 Thread Alexander V. Lukyanov
On Tue, Jul 09, 2002 at 06:24:19PM -0400, Glenn Maynard wrote: > "repeat 0 (foo)" results in a minor memory leak and a major FD leak; fix > for the FD leak attached. I havn't found the memory leak yet. (It's an > annoying one since I often use "repeat 0 (command)" to search for memory > leaks in

Re: shelving misc patches

2002-07-09 Thread Alexander V. Lukyanov
On Mon, Jul 08, 2002 at 07:46:25PM -0400, Glenn Maynard wrote: > Some stuff in my tree I'm shelving: > > OutputJob. It's useful, fixes the cls bug, and makes buffered outputting > trivial from any job, but it's still a bit overcomplicated and I havn't > had the interest in it recently to nail dow

Re: lftp <= 2.5.4 remote queue bug?

2002-07-07 Thread Alexander V. Lukyanov
On Sat, Jul 06, 2002 at 07:26:32PM -0400, Glenn Maynard wrote: > 07:07pm [EMAIL PROTECTED]/1 [~ftp/t] chmod 0 a > > lftp 0:/t> mir > mirror: Access failed: 550 /t/a: Permission denied > [0] mirror & > lftp 0:/t> jobs > [0] mirror > \mirror b > \transfer test > `test' at 0 (0%) [Connecti

Re: 2.5.4 and HP-UX C++ compiler

2002-07-06 Thread Alexander V. Lukyanov
On Fri, Jul 05, 2002 at 06:53:06PM -0500, Albert Chin wrote: > Shoud line 55 of src/ChmodJob.h be: > ~ChmodJob(); Thanks! I have applied this change. -- Alexander.

Re: lftp master site

2002-06-23 Thread Alexander V. Lukyanov
On Sun, Jun 23, 2002 at 07:14:12AM +1000, Grant Bayley wrote: > I am :) > > It failed on the lookup a few hours ago. Then probably your resolver library returns wrong error code for temporary errors. It should return h_errno==TRY_AGAIN. -- Alexander.

Re: lftp master site

2002-06-22 Thread Alexander V. Lukyanov
On Sat, Jun 22, 2002 at 05:34:36PM +1000, Grant Bayley wrote: > Just wondering, because the mirroring scripts for lftp are obviously > failing in the absence of contactable hosts :) If you were using lftp for mirroring, it would not fail ;) -- Alexander. | http://www.yar

Re: Build failure

2002-05-17 Thread Alexander V. Lukyanov
> src/Makefile.am:19: variable `MODULES_LA_STATIC' not defined Now I have committed the rest of changes. You have to install gettext-0.11.2, BTW. -- Alexander.

Re: LFTP_PROG_CXXLINK change for gcc 3.1

2002-05-17 Thread Alexander V. Lukyanov
On Sun, May 12, 2002 at 12:44:02AM +0200, Arkadiusz Miskiewicz wrote: > Small change to LFTP_PROG_CXXLINK required to properly compile > whole lftp without linking it with libstdc++ I have applied the patch. Thanks! -- Alexander.

Re: A bug in lftp 2.5.1

2002-05-13 Thread Alexander V. Lukyanov
On Mon, May 13, 2002 at 12:39:44PM -0400, Glenn Maynard wrote: > On Mon, May 13, 2002 at 06:46:48PM +0400, Alexander V. Lukyanov wrote: > > Thanks! I have applied the patch. I wonder, how this condition can be true? > > Is it related to dns server reply forgery? > > Did you

Re: A bug in lftp 2.5.1

2002-05-13 Thread Alexander V. Lukyanov
On Sun, May 12, 2002 at 02:19:00AM +0400, Solar Designer wrote: > Alexander, -- I don't remember whether we have submitted other fixes > we have in the lftp package on Owl. I've attached the important > security fix now, don't know if it's still relevant to 2.5.1 (sorry; > just ignore it if it is

Re: list caching

2002-04-27 Thread Alexander V. Lukyanov
On Fri, Apr 26, 2002 at 09:13:23PM -0400, Glenn Maynard wrote: > Here's a patch to allow caching empty lists; it defaults off, to > maintain current behavior. Patch applied. Thanks! -- Alexander.

Re: Hoi, succesfull compile lftp on darwin (bsd4.4)

2002-04-26 Thread Alexander V. Lukyanov
On Fri, Apr 26, 2002 at 12:40:17AM +0200, Joeri van Dooren wrote: > After some tweaking here and there a managed to get it working on darwin mac > os X, > > Dlopen and stuff is still getting compiled (so I deleted it from the source) > but I think it is easy solved by adding #ifdef... Bla bla (I

Re: lftp-2.5.1 high speed bandwidth test && moments of lag

2002-04-23 Thread Alexander V. Lukyanov
On Tue, Apr 23, 2002 at 08:09:15AM -0400, Justin Piszcz wrote: > It varies. > 5,10,15% > sometimes it jumps to 40%. How much cpu does lftp consume? What transfer speed do other programs show? -- Alexander.

Re: lftp-2.5.1 high speed bandwidth test && moments of lag

2002-04-23 Thread Alexander V. Lukyanov
On Mon, Apr 22, 2002 at 11:03:16PM -0400, Justin Piszcz wrote: > machine specs = Athlon 1.2GHZ & 512MB of ram, the HD does 30MB/s > any idea why it pauses/etc, yet the shell/other sessions are fine? > the priority (nice level on lftp) is 0 (standard). > from mrtg: Current In: 5202 kB/s (41.6%) >

Re: minor patch, bugs

2002-04-18 Thread Alexander V. Lukyanov
On Wed, Apr 17, 2002 at 04:12:30PM -0400, Glenn Maynard wrote: > Job.cc: Free waiting on dtor. Applied. > Job.h: Make SetParentFg also Bg the job if the parent is Bg'd; in other > words, make it always copy the fg/bg state from the parent, not > just if the parent is Fg'd. Did you mean: --- Jo

Re: TreatFileJob

2002-04-15 Thread Alexander V. Lukyanov
On Sun, Apr 14, 2002 at 11:21:02PM -0400, Glenn Maynard wrote: >TreatCurrent(d,fi); > - return PRF_LATER; > + if(session->IsOpen()) > +return PRF_LATER; > } > int res=session->Done(); > if(res==FA::IN_PROGRESS) > > Is that return needed at all? Can a session

Re: OutputJob

2002-04-14 Thread Alexander V. Lukyanov
On Fri, Apr 12, 2002 at 10:32:23PM -0400, Glenn Maynard wrote: > It could also simply be removed. Both gzip and bzip2 permit concatenating > files. (In other words, remove for_each and make zcat and bz2cat regular > filters.) Very nice. I did not know that. > The obvious loss is that it stops

Re: BUG: cls redirection

2002-04-09 Thread Alexander V. Lukyanov
On Sun, Apr 07, 2002 at 05:05:10PM -0400, Glenn Maynard wrote: > Oops. I fixed this in my tree, but since it's among a bunch of > OutputJob changes I forgot to send it in. Sorry about that. > > FileSetOutput.cc: fix output width instead of aborting. Thanks. I have applied the patch, and to 2.4

Re: Satellite [NetGain 2000] [Corruption]

2002-04-09 Thread Alexander V. Lukyanov
On Tue, Apr 09, 2002 at 02:55:25PM +0200, Hrvoje Niksic wrote: > It seems so. But I really find it strange that there would be an FTP > server that fails in this scenario. I've only heard of such proxy > failures, and that's not applicable to your case. I think it is tcp layer bug. Does the Net

Re: Satellite [NetGain 2000] [Corruption]

2002-04-02 Thread Alexander V. Lukyanov
On Tue, Apr 02, 2002 at 09:27:36AM -0500, Justin Piszcz wrote: > My question is: would a 5-10KB rollback fix this problem? AFAIK, rollback is only needed to workaround broken http proxies, which output error message after valid data if a transfer error happens. -- Alexander.

Re: Satellite [NetGain 2000] [Corruption]

2002-04-01 Thread Alexander V. Lukyanov
On Mon, Apr 01, 2002 at 06:43:49AM -0500, Justin Piszcz wrote: > PROBLEM: With lftp, many of my downloads get corrupted. > This is because the connection between my satellite link, and > my ISP > gets severed, therefore causing FTP to resume. Regular > connection > brea

Re: no current job

2002-03-25 Thread Alexander V. Lukyanov
On Sun, Mar 24, 2002 at 02:38:36PM -0500, Glenn Maynard wrote: > lftp localhost:/> que mir > lftp localhost:/> get not.doc & > [2] get not.doc & > lftp localhost:/> > [2] Done (get not.doc) > 51712 bytes transferred in 3 seconds (19.4K/s) > lftp localhost:/> jobs > [0] queue (ftp://localho

Re: build failure with 2.4.10a on Tru64 UNIX 5.1

2002-03-18 Thread Alexander V. Lukyanov
On Mon, Mar 18, 2002 at 10:48:29AM -0600, Albert Chin wrote: >if(now >= try_time+interval) > > My fix was to cast to time_t: > if(now >= (time_t)(try_time+interval)) I have changed it to time_t(now) >= etc. Thanks! It seems that C++ compilers have different view on implicit casting and ti

Re: CPU being consumed...

2002-03-15 Thread Alexander V. Lukyanov
On Fri, Mar 15, 2002 at 01:51:34PM +1100, Grant Bayley wrote: > I can confirm that lftp consumes the CPU > > cd /target/directory > lftp -e 'o http://netgroup-serv.polito.it/windump/ && mirror --delete --verbose && >quit' Thanks! I could reproduce it. Here is the fix. -- Alexander.

Re: 100% CPU USAGE During Mirror

2002-03-14 Thread Alexander V. Lukyanov
On Wed, Mar 13, 2002 at 01:55:57PM -0500, Justin Piszcz wrote: > It's on a Slack 8.0 box, lftp-2.5.0. > Any http or ftp site which directories that go deep. can anybody reproduce it? -- Alexander.

Re: man page

2002-03-13 Thread Alexander V. Lukyanov
On Wed, Mar 13, 2002 at 07:22:43PM +0100, Wojtek wrote: > Since you announced the 2.5.0 version today i'm interested whether the > manual page for this version shall be updated soon. As far as i know the > man page for lftp 2.4.0 is most up to date. I have changed the man page for 2.5.0, but fo

lftp-2.5.0a - reliable command line driven ftp client

2002-03-13 Thread Alexander V. Lukyanov
sl for http and ftp, fxp transfers. Keywords: ftp client, readline, reliable, background, parallel, http Author: [EMAIL PROTECTED] (Alexander V. Lukyanov) Maintained-by: [EMAIL PROTECTED] (Alexander V. Lukyanov) Primary-site: ftp.yars.free.net /pub/software/unix/net/

Re: 100% CPU USAGE During Mirror

2002-03-13 Thread Alexander V. Lukyanov
On Wed, Mar 13, 2002 at 10:25:39AM -0500, Justin Piszcz wrote: > When doing a mirror (no parallel gets), lftp freezes up on me and takes up > 100% CPU. Which lftp version? What server do you mirror, so I can reproduce it? -- Alexander. | http://www.yars.free.net/~lav/

Re: FA crash

2002-03-12 Thread Alexander V. Lukyanov
On Tue, Mar 12, 2002 at 06:06:07PM -0500, Glenn Maynard wrote: > lftp b:~> cd . > cd: b: Unknown host > lftp :~> cd . > zsh: 2426 segmentation fault ./lftp Thanks. I have fixed it. -- Alexander.

Re: missing va_copy macros in tarball

2002-03-12 Thread Alexander V. Lukyanov
On Wed, Mar 13, 2002 at 12:52:55AM +0100, Arkadiusz Miskiewicz wrote: > Simple patch for m4/Makefile.am. Please apply. Thanks. I wonder why `make distcheck' did not catch it. -- Alexander.

Re: lftp-pre2.5.0-20020227

2002-03-03 Thread Alexander V. Lukyanov
On Sat, Mar 02, 2002 at 01:16:42AM +0900, Ayamura KIKUCHI wrote: > checking whether va_lists can be copied by value... no I have fixed the test for by-value copying and released 20020303 snapshot. -- Alexander.

Re: [alchemyx@uznam.net.pl: Re: [Micha?? Margula ] Fw: Feature request]

2002-03-03 Thread Alexander V. Lukyanov
On Thu, Feb 28, 2002 at 05:01:26PM -0500, Glenn Maynard wrote: > Orbs is useless (they filter *way* too freely); I'd strongly recommend not > using it, or any other blacklists (though orbs has a particularly bad > reputation) or DUL lists. Getting some spam is much better than losing > real mail.

lftp-pre2.5.0-20020227

2002-02-27 Thread Alexander V. Lukyanov
I have released new development snapshot. I think it is tested well enough, and will be released as 2.5.0 in a week. Please test. Authors of translations are encouraged to update the translations. Thanks. -- Alexander.

Re: [lftp-2.4.9] Compilation errors on Solaris 8

2002-02-27 Thread Alexander V. Lukyanov
On Wed, Feb 27, 2002 at 05:00:24PM +0900, Ayamura KIKUCHI wrote: > No compilation errors occur on Solaris 8 if the patch given below is > applied. Thanks. I have applied the patch. -- Alexander.

Re: CharReader fix

2002-02-12 Thread Alexander V. Lukyanov
On Mon, Feb 11, 2002 at 10:40:34PM -0500, Glenn Maynard wrote: > > I think I've fixed this. CharReader::Do wasn't checking EINTR properly. > > Alex, did you get this mail? It's a fairly straightforward fix. I was going to fix it other way, but forgot to do that. Here is my patch. Note that set

Re: [lftp-2.4.9] Compilation errors on Solaris 8

2002-02-01 Thread Alexander V. Lukyanov
On Fri, Feb 01, 2002 at 03:13:06AM +0900, Ayamura KIKUCHI wrote: > I got following errors when trying to compile lftp-2.4.9 on Solaris 8 > with gcc 2.95.3. > > ./configure --disable-nls -with-ssl I think locale.h should not include libintl.h. > gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../inclu

Re: OutputJob

2002-01-24 Thread Alexander V. Lukyanov
On Wed, Jan 23, 2002 at 03:48:45PM -0500, Glenn Maynard wrote: > I'm thinking of something like an OutputFilter derivation to do just > for_each handling. Maybe for_each could be avoided at all if lftp would be linked with libz and libbz2. -- Alexander.

Re: segfaults when resolving host names (?)

2002-01-21 Thread Alexander V. Lukyanov
On Mon, Jan 21, 2002 at 11:02:35AM +0100, Piotr Krukowiecki wrote: > #0 0x145a00 in ?? () > #1 0x1461d3 in ?? () > #2 0x1e6293 in ?? () > #3 0x26552b in ?? () > #4 0x25b032 in ?? () > #5 0x80fdaa1 in gethostbyname2_r () at FtpDirList.cc:316 > #6 0x80fd8bb in gethostbyname2 () at FtpDirList.

Re: uploading with SSL encryption

2002-01-21 Thread Alexander V. Lukyanov
On Sat, Jan 19, 2002 at 04:46:08PM +0100, Kjartan ?s??rsson wrote: > Has uploading with data channel encrypted been tested in lftp? My > uploads stop after sending just small part of the file. Downloading > works fine. Do you know any ssl enabled ftp server on which I can try uploading? -- Al

Re: OutputJob

2002-01-21 Thread Alexander V. Lukyanov
On Tue, Jan 15, 2002 at 09:45:35PM -0500, Glenn Maynard wrote: > Remove NewEcho (replaced by EchoJob.) Is EchoJob any better? > I've explained the usage of OutputJob in comments, so I won't repeat > everything here. A few things could be simplified with external help (a > way to tell FDSt

Re: pre2.4.6: core dump with 'open foo:'

2002-01-14 Thread Alexander V. Lukyanov
On Mon, Jan 14, 2002 at 08:12:04AM -0200, Fr?d?ric L. W. Meunier wrote: > update the whole system...), but noticed LFTP generates a > core dump in lpwd when I issue a command like the following: > > % open ftp: > open: : no such tcp service This patch should fix it. -- Alexander. Index: Re

Re: segmentation fault in "mirror -R"

2002-01-12 Thread Alexander V. Lukyanov
On Sat, Jan 12, 2002 at 11:03:05PM +0100, Kjartan ?s??rsson wrote: > #0 0x400e01a7 in strcmp () from /lib/libc.so.6 > #1 0x80c60e8 in StringPool::Get (s=0x0) at StringPool.cc:37 This patch should fix it. -- Alexander. Index: StringPool.cc ==

Re: queue wait bug

2002-01-10 Thread Alexander V. Lukyanov
On Sat, Jan 05, 2002 at 08:22:50AM +0100, Lethal Weapon wrote: > start lftp go on some ftp site, and type: > queue wait 3 > queue wait 3 > queue wait 3 > queue wait 3 Should be fixed in cvs. lftp can detect wait loops now. -- Alexander.

Re: FileCopyPeerFDStream and pipes

2002-01-10 Thread Alexander V. Lukyanov
On Wed, Jan 09, 2002 at 07:51:19PM -0500, Glenn Maynard wrote: > > I don't quite like the error message `Broken pipe' when exiting pager (less) > > before end-of-file. Maybe it can be handled as a special case. > > How's this? Good. Patch applied. Thanks! -- Alexander. |

Re: MDTM

2002-01-10 Thread Alexander V. Lukyanov
On Wed, Jan 09, 2002 at 05:39:38PM -0500, Glenn Maynard wrote: > something. Depending on the error, I think lftp will disable mdtm > per-site automatically. (It can't for 550; it might be able to for 501.) It does that only for 500 and 502 replies. 500 Syntax error, command unrecognized. 502 C

Re: FileCopyPeerFDStream and pipes

2002-01-09 Thread Alexander V. Lukyanov
On Tue, Jan 08, 2002 at 06:54:34PM -0500, Glenn Maynard wrote: > You have FileCopyPeerFDStream::Done(); FileCopyPeer::Done() wasn't > virtual (before this patch.) > > bool FileCopyPeerFDStream::Done() I have removed this method and added a boolean member `done'. Your version of FileCopyPeerFA::D

Re: OutputFilter

2002-01-04 Thread Alexander V. Lukyanov
On Thu, Jan 03, 2002 at 12:51:27AM -0500, Glenn Maynard wrote: > Calling OutputFilter::Done() closes OutputFilter::second. > > Calling OutputFilter::Done() calls second->Done(). > > So, if an OutputFilter has another OutputFilter as a second, it'll end > up closing the second. It looks like zmo

Re: lftp-2.4.8 and current CVS off by one xmalloc bug

2002-01-03 Thread Alexander V. Lukyanov
On Thu, Jan 03, 2002 at 05:06:16PM +, jfaith wrote: > Hi, just found a nasty little bug. > > In the srv/resource.cc file. > In the OrderValidate function, line 120 is currently:- >char *fixed=(char*)xmalloc(strlen(s1)); > but this does not provide space for the null terminator it should b

Re: moving to background when no current dir

2002-01-03 Thread Alexander V. Lukyanov
On Tue, Jan 01, 2002 at 08:08:21PM +0100, Piotr Krukowiecki wrote: > Hi > > lftp> jobs > Warning: chdir(/home/piotr/fr) failed: No such file or directory > No directory to execute commands in - terminating > [19962] Moving to background to complete transfers... > [piotr@pingu piotr]$ > > :( > >

Re: lftp-2.4.8 doesn't support persistent connections

2001-12-31 Thread Alexander V. Lukyanov
On Mon, Dec 31, 2001 at 01:10:22PM +0100, Marc A. Lehmann wrote: > On Tue, Dec 25, 2001 at 02:05:19PM +0300, "Alexander V. Lukyanov" ><[EMAIL PROTECTED]> wrote: > > It seems I did not read RFC well enough. The attached patch should fix it > > (untest

Re: lftp-2.4.8 doesn't support persistent connections

2001-12-25 Thread Alexander V. Lukyanov
On Mon, Dec 24, 2001 at 11:44:02PM +0100, Marc A. Lehmann wrote: > The problem with http://anime.plan9.de and persistency is that lftp > closes the persistent connection for no good reason: > > Connecting to anime.plan9.de (195.27.202.202) port 80 > Sending request... >--->

Re: nlist errors

2001-12-24 Thread Alexander V. Lukyanov
On Mon, Dec 24, 2001 at 04:13:34AM -0500, Glenn Maynard wrote: > I need to know if the output is a TTY and the width. The output might > be not stdout but still a TTY (ie. > /dev/tty5; or a dup of stdout.) I think it is very rare case. The width is not very important, because intermediate filte

Re: nlist errors

2001-12-23 Thread Alexander V. Lukyanov
On Fri, Dec 21, 2001 at 06:47:28AM -0500, Glenn Maynard wrote: > On Thu, Dec 20, 2001 at 02:46:16PM +0300, Alexander V. Lukyanov wrote: > > Patch applied with some changes. BTW, I have finally got rid of takeover_time. > > Filter.cc: Add getfd2() to FDStream, to get the other sid

Re: weird bug in lftp

2001-12-23 Thread Alexander V. Lukyanov
On Mon, Dec 24, 2001 at 02:32:18AM +0100, Piotr Krukowiecki wrote: > Finally started thinking and used 'quote' ;) > > lftp [EMAIL PROTECTED]:/pub> quote CWD X > ---> CWD X > <--- 250 Changed directory successfully to '/pub/X'. Be warned that lftp won't restore current directory in case of reconn

Re: Debian Bug report - #122005

2001-12-23 Thread Alexander V. Lukyanov
> >In fact lftp works well if I initialize LC_ALL to "fr_FR" but not if I let > >LC_ALL to C and only initialize LC_CTYPE to "fr_FR" which is IMHO not the > >correct behaviour. FYI, LC_ALL overrides LC_CTYPE. Unset LC_ALL, then LC_CTYPE will have effect. -- Alexander.

Re: weird bug in lftp

2001-12-23 Thread Alexander V. Lukyanov
On Sat, Dec 22, 2001 at 08:53:08PM +0100, Piotr Krukowiecki wrote: > lftp [EMAIL PROTECTED]:/test> ls > ---> PASV > <--- 227 Entering Passive Mode (127,0,0,1,7,150). > Connecting data socket to (127.0.0.1) port 1942 > ---> LIST > <--- 150 Opening ASCII mode data connection for /bin/ls. >

Re: mirror http://, find wishlist

2001-12-23 Thread Alexander V. Lukyanov
On Sat, Dec 22, 2001 at 09:01:39PM +0100, Piotr Krukowiecki wrote: > Yes, script. lftp doesn't have good logging support :(. Even > 'queue find / > file' doesn't work, 'queue mirror - sth > file' > probably neither :( queue "find / > file" should work. Note the quotes. -- Alexander.

Re: ls in http:// doesn't show all files

2001-12-20 Thread Alexander V. Lukyanov
On Thu, Dec 20, 2001 at 03:16:06PM +0100, Piotr Krukowiecki wrote: > http://anime.plan9.de/anime/movies/Slayers > There are three files, but 'ls' shows only two of them (.avi) > 'ls ' shows shows all of them, mirror should get them all too. This patch fixes that. --- HttpDir.cc 2001/12/15 15:27

Re: nlist errors

2001-12-20 Thread Alexander V. Lukyanov
Patch applied with some changes. BTW, I have finally got rid of takeover_time. -- Alexander.

Re: can_seek

2001-12-19 Thread Alexander V. Lukyanov
On Tue, Dec 18, 2001 at 08:57:58PM -0500, Glenn Maynard wrote: > GetFileInfo.cc, GetFileInfo.h: Use GetArrayInfo as a last-ditch effort > to get information. Add most (hopefully all) branches of the basic > logic. (It doesn't list cases where cache is wrong--that can happen > just about anywhere

Re: can_seek

2001-12-18 Thread Alexander V. Lukyanov
On Mon, Dec 17, 2001 at 01:21:00PM -0500, Glenn Maynard wrote: > Should mkdirJob::Reuse() call super::Reuse()? No, it should not. It is not virtual. Maybe it should be renamed to avoid name collision. > I'm still bashing on OutputJob. It's working well now. It should be > possible, eventually,

Re: can_seek

2001-12-17 Thread Alexander V. Lukyanov
On Mon, Dec 17, 2001 at 12:24:08PM -0500, Glenn Maynard wrote: > > You seem to assume that if a file name is not in directory listing, > > then the file does not exist. It is not so in case of http. Even > > ftp servers sometimes hide .* files from dir listings, but these > > files do exist and ca

Re: can_seek

2001-12-17 Thread Alexander V. Lukyanov
On Sat, Dec 15, 2001 at 08:58:12PM -0500, Glenn Maynard wrote: > GetFileInfo.cc, GetFileInfo.h: Make sure the Done portion is > always done, including on all errors. Changed comment. I have just moved SetCwd(origdir) to destructor. Anyway, in case of ^C no code except destructor is run. result t

Re: list_info->UseCache(FileInfo::SIZE);

2001-12-17 Thread Alexander V. Lukyanov
On Sat, Dec 15, 2001 at 03:50:50PM -0500, Glenn Maynard wrote: >list_info->UseCache(FileInfo::SIZE); > > Er, I don't think that's what you meant to do. I cannot find such a line anywhere in lftp source. -- Alexander.

Re: Patch to 2.4.8 for ANSI scoping rule

2001-12-14 Thread Alexander V. Lukyanov
On Fri, Dec 14, 2001 at 09:38:51PM +0300, Alexander V. Lukyanov wrote: > On Fri, Dec 14, 2001 at 12:23:32PM -0600, Albert Chin-A-Young wrote: > > On Wed, Dec 12, 2001 at 01:19:59AM -0600, [EMAIL PROTECTED] wrote: > > > 7. HP-UX 11.00, with the aCC compiler, gives: &g

Re: Patch to 2.4.8 for ANSI scoping rule

2001-12-14 Thread Alexander V. Lukyanov
On Fri, Dec 14, 2001 at 12:23:32PM -0600, Albert Chin-A-Young wrote: > On Wed, Dec 12, 2001 at 01:19:59AM -0600, [EMAIL PROTECTED] wrote: > > 7. HP-UX 11.00, with the aCC compiler, gives: > > Error 221: "FtpDirList.h", line 32 # Member 'EPLF' not declared in class > > FtpDirList ["

Re: Patch to 2.4.8 for ANSI scoping rule

2001-12-14 Thread Alexander V. Lukyanov
On Fri, Dec 14, 2001 at 12:38:16PM -0500, Glenn Maynard wrote: > Any reason pty.m4 isn't in m4/Makefile.am? (I assume this is deliberate, > since you pulled out the extra pty stuff from the patch but didn't add > pty.m4 to the Makefile ...) Forgot to do that. Now it is in Makefile.am. -- Ale

Re: mirror http://, find wishlist

2001-12-14 Thread Alexander V. Lukyanov
On Fri, Dec 14, 2001 at 07:03:49PM +0100, Piotr Krukowiecki wrote: > On Fri, 14 Dec 2001, Alexander V. Lukyanov wrote: > > lftp can pipeline HEAD requests if server supports HTTP/1.1. > > How do i enable it? I'm not sure what that 'pipeline HEAD' means, but in >

Re: Patch to 2.4.8 for ANSI scoping rule

2001-12-14 Thread Alexander V. Lukyanov
On Wed, Dec 12, 2001 at 01:19:59AM -0600, [EMAIL PROTECTED] wrote: > Attached is a patch to turn on -LANG:ansi-for-init-scope=ON on the > IRIX C++ compiler to grok ANSI scoping rules. BTW, -LANG:std enables > more C++ compliance in the IRIX compiler (we build with -LANG:std so > have no need for -

Re: FinderJob

2001-12-14 Thread Alexander V. Lukyanov
On Thu, Dec 13, 2001 at 04:07:08PM -0500, Glenn Maynard wrote: > 03:55pm [EMAIL PROTECTED]/6 [~/lftp/src] ./lftp http://www.google.com > cd ok, cwd=/ > lftp www.google.com:/> cls > 3.html about.html ads/ advanced_search images/ language_tools > news/ preferences services/ > lftp www.google.

Re: mirror http://, find wishlist

2001-12-14 Thread Alexander V. Lukyanov
On Thu, Dec 13, 2001 at 01:48:28PM +0100, Piotr Krukowiecki wrote: > When mirroring http:// url, lftp sends HEAD command: > ---> HEAD /anime/manga/Love%20Hina/lh02-016e.jpg HTTP/1.1 > > I'm not sure if this is really needed. It must know already which files > are avaiable, so it could just use GET

Re: mirror http://, find wishlist

2001-12-14 Thread Alexander V. Lukyanov
On Thu, Dec 13, 2001 at 02:38:04PM -0500, Glenn Maynard wrote: > On Thu, Dec 13, 2001 at 01:48:28PM +0100, Piotr Krukowiecki wrote: > > For 'find' command i'd like to see option to list files, ie display file > > size, date etc > > That's ls's job, not find's. why not? Plain find has the option -

Re: FinderJob

2001-12-13 Thread Alexander V. Lukyanov
On Tue, Dec 11, 2001 at 02:01:35PM -0500, Glenn Maynard wrote: > depth_first: I changed this because it's confusing; it seems that if > this is false, it'll be a breadth-first traversal (which it's not, of > course.) This is the term find(1) uses - -depth option. > GetFileInfo should probably fa

Re: FinderJob

2001-12-13 Thread Alexander V. Lukyanov
On Tue, Dec 11, 2001 at 10:47:44PM -0500, Glenn Maynard wrote: > Okay, I understand this better now. A suggestion: instead of delaying > the job for a second, make it wait until the session has been idle for a It won't be idle. Before the connection is taken over, the data transfer is going on.

Re: (fwd) Re: lftp

2001-12-13 Thread Alexander V. Lukyanov
On Thu, Dec 13, 2001 at 01:11:55PM +0100, Piotr Krukowiecki wrote: > I still don't know what's the final decision? Are there gonna be 4 (or > more) switches to match only files/dirs? Or is it going to stay as it is > now? Or ...? I'm going to separate file/directory matching. Maybe I'll add multi

Re: FinderJob

2001-12-11 Thread Alexander V. Lukyanov
On Mon, Dec 10, 2001 at 03:15:57PM -0500, Glenn Maynard wrote: > On Mon, Dec 10, 2001 at 01:31:09PM +0300, Alexander V. Lukyanov wrote: > > This is because url_session is not given with foreground priority. > > Since you have replaced rm, I'll not bother with fixing it,

Re: FinderJob

2001-12-10 Thread Alexander V. Lukyanov
On Mon, Dec 10, 2001 at 01:30:57AM -0500, Glenn Maynard wrote: > > rm and chmod no longer work with urls. I'll try to add URL support to > > FinderJob. > > Tried this, but hit some problems that also happen with URLs with other > commands. ie: > > lftp :~> o 0 > lftp 0:/> mkdir abc ftp://0/abc f

Re: FinderJob

2001-12-10 Thread Alexander V. Lukyanov
On Sun, Dec 09, 2001 at 03:00:40AM -0500, Glenn Maynard wrote: > I've finally managed to get FinderJob working the way I've been trying. > (It needs more testing before I send a patch, and I'll wait for you to > finish with the last one first anyway.) Nice. Send the patch. > rm and chmod no long

Re: misc

2001-12-10 Thread Alexander V. Lukyanov
On Sat, Dec 08, 2001 at 05:03:58PM -0500, Glenn Maynard wrote: > On Tue, Dec 04, 2001 at 09:01:15PM +0300, Alexander V. Lukyanov wrote: > > BTW, what do you think about caching in LsCache result of CHANGE_DIR? > > I've implemented this. Patch applied. I don't quite

Re: Problem with rm in lftp 2.4.7

2001-12-05 Thread Alexander V. Lukyanov
On Wed, Dec 05, 2001 at 08:09:54PM +0200, Liviu Daia wrote: > The rm command seems to be broken in lftp 2.4.7: It is fixed in recently released 2.4.8. -- Alexander.

Re: misc

2001-12-05 Thread Alexander V. Lukyanov
On Tue, Dec 04, 2001 at 07:33:15PM -0500, Glenn Maynard wrote: > BUGS: Update. (Maybe remove old glob comment?) removed. > configure.in, new m4/gnu-source.m4: #define _GNU_SOURCE early. (This > doesn't introduce a GNU dependency; it just makes sure GNU extensions > are used if available, includ

Re: misc

2001-12-05 Thread Alexander V. Lukyanov
On Tue, Dec 04, 2001 at 06:14:17PM -0500, Glenn Maynard wrote: > That's what it looked like it was trying to do. The implementation is > confusing, though: > > if(takeover_time!=NO_DATE && takeover_time+1-priority>now > && connection_limit>0 && > connection_limit

<    1   2   3   4   5   6   7   >