On Mon, Sep 12, 2005 at 05:21:47PM +0400, Alexander V. Lukyanov wrote:
> On Sun, Sep 11, 2005 at 04:06:38PM +0200, Michael Bakker wrote:
> > --- <script> ---
> > slot A
> > open ftp1
> > cd /my/dir/
> > slot B
> > open ftp2
> > repeat 1m mirror --continue --ignore-size --no-symlinks --no-perms 
> > --no-umask /mirror/ slot:B
> > --- </script> ---
> >
> > Is it somehow possible, that this /mirror dir is not created on ftp1 and
> > just the subdirectories in /mirror e.g.:
> 
> Either add . to /mirror/ as workaround (i.e. it would be "/mirror/."),
> or apply this patch.
> 
> --
>    Alexander.

> Index: MirrorJob.cc
> ===================================================================
> RCS file: /home/lav/cvsroot/lftp/src/MirrorJob.cc,v
> retrieving revision 1.126
> diff -u -p -r1.126 MirrorJob.cc
> --- MirrorJob.cc      5 Aug 2005 08:54:22 -0000       1.126
> +++ MirrorJob.cc      12 Sep 2005 13:19:21 -0000
> @@ -1458,7 +1458,7 @@ CMD(mirror)
>           }
>           target_dir=alloca_strdup(target_url.path);
>        }
> -      if(last_char(target_dir)=='/' && basename_ptr(target_dir)[0]!='/')
> +      if(last_char(arg)=='/' && basename_ptr(arg)[0]!='/')
>        {
>           // user wants source dir name appended.
>           const char *base=basename_ptr(source_dir);

Hello Alexander,

great, thank you!

-- 
Greets,
Michael Bakker

Reply via email to