Hi,
thanks for the patch, it solved the problem for me :-)
Regards Stefan
Alexander V. Lukyanov wrote:
> On Tue, Aug 20, 2002 at 10:14:24AM +0200, Stefan Johansson wrote:
>
>>I'm using lftp(2.6.1a) for mirroring some files between a Solaris
>>and a Windows2000 host. The problem I have is that the Windows2000 host
>>doesn't like that lftp try to remove directories with the DELE command
>>(Solaris and Linux don't have a problem with that).
>>
>>This is from the debug file:
>>[792] www.foo.net ---> CWD /alles/mirror_test/v1
>>[792] www.foo.net <--- 250 CWD command successful.
>>[792] www.foo.net ---> DELE v1.2
>>[792] www.foo.net <--- 550 v1.2: Access is denied.
>>
>
> On Wed, Aug 28, 2002 at 05:18:51PM +0200, Marc Muehlfeld wrote:
>
>>rm -r directory
>>it deletes all files in this directory and subdirectories, but it don`t
>>deletes the subdirectories.
>>
>
> This patch may fix the problems.
>
> --
> Alexander.
>
>
> ------------------------------------------------------------------------
>
> Index: rmJob.cc
> ===================================================================
> RCS file: /home/lav/cvsroot/lftp/src/rmJob.cc,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -u -p -r1.7 -r1.8
> --- rmJob.cc 2001/12/11 14:37:46 1.7
> +++ rmJob.cc 2002/08/29 07:01:51 1.8
> @@ -18,7 +18,7 @@
> * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
> */
>
> -/* $Id: rmJob.cc,v 1.7 2001/12/11 14:37:46 lav Exp $ */
> +/* $Id: rmJob.cc,v 1.8 2002/08/29 07:01:51 lav Exp $ */
>
> #include <config.h>
>
> @@ -39,6 +39,7 @@ void rmJob::Recurse()
> {
> set_maxdepth(-1);
> Need(FileInfo::TYPE);
> + recurse=true;
> }
>
> void rmJob::SayFinal()
>
--
Stefan Johansson Net Insight AB
System Administrator Box 42093, SE-126 14 STOCKHOLM, SWEDEN
Phone: +46-8-685 04 81 Visiting address: V�stberga All� 9
Fax: +46-8-685 04 20 http://www.netinsight.net
The Box said: "Requires Windows 95, NT or better", so i installed Unix