chris.ulherr | 4 Sep 00:50 2008

errors with mirror

From time to time, I get a permission denied message for some files when transferring. Below is one such reproducible example. I believe this could be fixed by having lftp change permissions on the directory before attempting to sync the files underneath it:
 
[ site a]
 
alive <at> gridctrl:/tmp$ mkdir -p a/b
alive <at> gridctrl:/tmp$ echo foo > a/b/foo.txt
alive <at> gridctrl:/tmp$ chmod 555 a/b
[ site b ]
 
oracle <at> rac1:/tmp$ mkdir -p a/b
oracle <at> rac1:/tmp$ chmod 555 a/b
 
 
[ site a ]
 
alive <at> gridctrl:/tmp/a$ lftp -u oracle rac1
Password:
lftp oracle <at> rac1:~> cd /tmp/a
cd ok, cwd=/tmp/a
lftp oracle <at> rac1:/tmp/a> mirror -eR ./ ./
mirror: Access failed: 553 foo.txt: Permission denied.
Total: 2 directories, 1 file, 0 symlinks
New: 1 file, 0 symlinks
4 bytes transferred
2 errors detected
 
Now, if you repeat the test, but this time actually have a file named foo.txt on site b under /tmp/a/b (it doesn't have to be the same file, or the same size, just so long as some file exists, it will update it without problems):
 
[ site b ]
 
oracle <at> rac1:/tmp/a$ chmod 755 b
oracle <at> rac1:/tmp/a$ echo 12345 >  b/foo.txt
oracle <at> rac1:/tmp/a$ chmod 555 b
 
 
[ site a ]
 
lftp oracle <at> rac1:~> cd /tmp/a
cd ok, cwd=/tmp/a
lftp oracle <at> rac1:/tmp/a> mirror -eR ./ ./
Total: 2 directories, 1 file, 0 symlinks
Modified: 1 file, 0 symlinks
4 bytes transferred
lftp oracle <at> rac1:/tmp/a>
 
 
Pehaps lftp can change the directory permissions to allow files to be written, and then at the end, it could set them as they exist on the source system.
Justin Piszcz | 11 Sep 00:29 2008

lftp 3.7.4 reproducible coredump: cls --sort=time -ltr

$ lftp
lftp :~> open ftp://ftp.nbu.support.veritas.com/pub/support/
lftp ftp.nbu.support.veritas.com:/> ls
total 8 
drwxr-xr-x  3 root  root  4096 Jun 04 17:06 pub
lftp ftp.nbu.support.veritas.com:/> cd pub/
lftp ftp.nbu.support.veritas.com:/pub> cd support/
lftp ftp.nbu.support.veritas.com:/pub/support> ls
total 88
drwxr-xr-x    2 30024  30024   4096 Sep 10 13:49 documentation
drwxr-xr-x  637 30024  30024  36864 Sep 05 22:58 products
lftp ftp.nbu.support.veritas.com:/pub/support> cd products/
lftp ftp.nbu.support.veritas.com:/pub/support/products> cd NetBackup_Enterprise_Server/
lftp ftp.nbu.support.veritas.com:/pub/support/products/NetBackup_Enterprise_Server> cls
--sort=time -ltr
(the output.. and then..)
Segmentation fault (core dumped)

Core was generated by `lftp'.
Program terminated with signal 11, Segmentation fault.
[New process 11863]
#0  0x000000000040dbc2 in Job::WaitDone (this=0x3331000002238360) at Job.cc:523
523     Job.cc: No such file or directory.
         in Job.cc
(gdb) bt
#0  0x000000000040dbc2 in Job::WaitDone (this=0x3331000002238360) at Job.cc:523
#1  0x0000000000408b00 in main (argc=Cannot access memory at address 0x30353739333030fd
) at lftp.cc:463
(gdb)

$ lftp --version
LFTP | Version 3.7.4 | Copyright (c) 1996-2008 Alexander V. Lukyanov

Dave Weiser | 10 Sep 22:17 2008

Compiling lftp with SSL

I’ve tried, and I’ve looked. I’m not a linux guru at any stretch of the imagination. But, to the best of my understanding, if you have SSL installed, then compile LFTP, it should include it. However, when I use a set ftp:ssl-force true command, I get ftp:ssl-force: no such variable. Use `set -a' to look at all variables. Which makes me wonder if I messed up someplace. Help me, please.

 

-Dave Weiser

Lara, Sergio | 11 Sep 16:52 2008

Problem with not waiting for 150 response on put

I need help with this problem. I read a thread that a patch was available and it was not clear to me how to apply it. I need assistance with this. Please help. I am running version 3.5.10

Regards,

Sergio Lara
Invesco
NCG Unix
713-986-9084

**************************************************************** Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ****************************************************************
lists | 12 Sep 00:03 2008
Picon

Re: lftp 3.7.4 reproducible coredump: cls --sort=time -ltr

I have found the same thing, "cls -l" and "cls -s" (others works fine)
makes lftp 3.7.4 crash for me on FreeBSD/i386 (but not FreeBSD/amd64).

FreeBSD/i386 (tried on two different machines):

> $ uname -a                                                          dentarg <at> p ~
> FreeBSD p.dentarg.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Thu Sep  4 18:03:30 CEST 2008    
dentarg <at> p.dentarg.net:/usr/obj/usr/src/sys/P  i386
> $ lftp --version                                                    dentarg <at> p ~
> LFTP | Version 3.7.4 | Copyright (c) 1996-2008 Alexander V. Lukyanov
>
> LFTP is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> There is absolutely no warranty for LFTP.  See COPYING for details.
>
> Send bug reports and questions to <lftp <at> uniyar.ac.ru>.
>
> Libraries used: Readline 5.2, Expat 2.0.1, OpenSSL 0.9.8e 23 Feb 2007,
> libiconv 1.11
> $ lftp                                                              dentarg <at> p ~
> lftp :~> open ftp.sunet.se
> lftp ftp.sunet.se:~> ls
> dr-xr-xr-x    3 0        0              96 Feb 23  2004 bin
> dr-xr-xr-x    2 0        0              72 Mar  2  2004 dev
> dr-xr-xr-x    2 0        0              48 Feb 23  2004 etc
> dr-xr-xr-x    2 0        0             120 Feb 23  2004 lib
> -rw-r--r--    1 1137     1100     938612519 Sep 11 12:03 ls-lR
> -rw-r--r--    1 1137     1100     116145653 Sep 11 12:06 ls-lR.gz
> drwxrwxr-x   37 0        1100         1272 Apr 29 21:11 pub
> dr-xr-xr-x    3 0        0              72 Feb 23  2004 usr
> lftp ftp.sunet.se:/> cls -l
> zsh: segmentation fault (core dumped)  lftp

> $ uname -a                                                      dentarg <at> xzdsa ~
> FreeBSD xzdsa.bsnet.se 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Tue Aug 26 12:26:01 CEST 2008    
root <at> xzdsa.bsnet.se:/usr/obj/usr/src/sys/GENERIC.ule  i386
> $ lftp --version                                                dentarg <at> xzdsa ~
> LFTP | Version 3.7.4 | Copyright (c) 1996-2008 Alexander V. Lukyanov
>
> LFTP is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> There is absolutely no warranty for LFTP.  See COPYING for details.
>
> Send bug reports and questions to <lftp <at> uniyar.ac.ru>.
>
> Libraries used: Readline 5.2, Expat 2.0.1, OpenSSL 0.9.8e 23 Feb 2007,
> libiconv 1.11
> $ lftp                                                          dentarg <at> xzdsa ~
> lftp :~> open ftp.sunet.se
> lftp ftp.sunet.se:~> ls
> dr-xr-xr-x    3 0        0              96 Feb 23  2004 bin
> dr-xr-xr-x    2 0        0              72 Mar  2  2004 dev
> dr-xr-xr-x    2 0        0              48 Feb 23  2004 etc
> dr-xr-xr-x    2 0        0             120 Feb 23  2004 lib
> -rw-r--r--    1 1137     1100     938612519 Sep 11 12:03 ls-lR
> -rw-r--r--    1 1137     1100     116145653 Sep 11 12:06 ls-lR.gz
> drwxrwxr-x   37 0        1100         1272 Apr 29 21:11 pub
> dr-xr-xr-x    3 0        0              72 Feb 23  2004 usr
> lftp ftp.sunet.se:/> cls -l
> zsh: segmentation fault (core dumped)  lftp
> $                                                               dentarg <at> xzdsa ~

FreeBSD/amd64:

> $ uname -a                                                      dentarg <at> genau ~
> FreeBSD genau.starkast.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Thu Sep  4 20:33:50 CEST 2008    
root <at> genau.starkast.net:/usr/obj/usr/src/sys/GENAU  amd64
> $ lftp --version                                                dentarg <at> genau ~
> LFTP | Version 3.7.4 | Copyright (c) 1996-2008 Alexander V. Lukyanov
>
> LFTP is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> There is absolutely no warranty for LFTP.  See COPYING for details.
>
> Send bug reports and questions to <lftp <at> uniyar.ac.ru>.
>
> Libraries used: Readline 5.2, Expat 2.0.1, OpenSSL 0.9.8e 23 Feb 2007,
> libiconv 1.11
> $ lftp                                                          dentarg <at> genau ~
> lftp :~> open ftp.sunet.se
> lftp ftp.sunet.se:~> ls
> dr-xr-xr-x    3 0        0              96 Feb 23  2004 bin
> dr-xr-xr-x    2 0        0              72 Mar  2  2004 dev
> dr-xr-xr-x    2 0        0              48 Feb 23  2004 etc
> dr-xr-xr-x    2 0        0             120 Feb 23  2004 lib
> -rw-r--r--    1 1137     1100     938612519 Sep 11 12:03 ls-lR
> -rw-r--r--    1 1137     1100     116145653 Sep 11 12:06 ls-lR.gz
> drwxrwxr-x   37 0        1100         1272 Apr 29 21:11 pub
> dr-xr-xr-x    3 0        0              72 Feb 23  2004 usr
> lftp ftp.sunet.se:/> cls -l
> dr-xr-xr-x     3 0        0              96 Feb 23  2004 bin
> dr-xr-xr-x     2 0        0              72 Mar  2  2004 dev
> dr-xr-xr-x     2 0        0              48 Feb 23  2004 etc
> dr-xr-xr-x     2 0        0             120 Feb 23  2004 lib
> -rw-r--r--     1 1137     1100     938612519 Sep 11 14:03 ls-lR
> -rw-r--r--     1 1137     1100     116145653 Sep 11 14:06 ls-lR.gz
> drwxrwxr-x    37 0        1100         1272 Apr 29 23:11 pub
> dr-xr-xr-x     3 0        0              72 Feb 23  2004 usr
Attachment (lftp.core.tar.gz): application/x-gzip, 193 KiB
Shlomi Fish | 13 Sep 16:09 2008
Picon

{Spam?} [BUG] lftp using SFTP cannot download a directory using mget

Hi!

This is an lftp bug report.

On my home computer:

{{{{{{{{
shlomi:~$ pwd
/home/shlomi
shlomi:~$ ls -ld .
drwxr-xr-x 200 shlomi shlomi 12288 2008-09-13 16:57 .
shlomi:~$ ls -ld sftp-test/
drwxr-xr-x 2 shlomi shlomi 51 2008-09-13 16:51 sftp-test/
shlomi:~$ ls -l sftp-test/
total 8
-rw-r--r-- 1 shlomi shlomi 612 2008-09-13 16:51 find-max-range.pl
-rw-r--r-- 1 shlomi shlomi 231 2008-09-13 16:50 trap-stdout.pl
shlomi:~$                   
}}}}}}}}

Now:

{{{{{{{{{{
shlomi:~/TEMP$ lftp sftp://inkscape-test <at> localhost/
Password:
cd ok, cwd=/
lftp inkscape-test <at> localhost:/> cd /home/shlomi
cd ok, cwd=/home/shlomi
lftp inkscape-test <at> localhost:/home/shlomi> ls sftp-test
drwxr-xr-x    2 shlomi   shlomi         51 Sep 13 16:51 .
drwxr-xr-x  198 shlomi   shlomi      12288 Sep 13 16:51 ..
-rw-r--r--    1 shlomi   shlomi        612 Sep 13 16:51 find-max-range.pl
-rw-r--r--    1 shlomi   shlomi        231 Sep 13 16:50 trap-stdout.pl
lftp inkscape-test <at> localhost:/home/shlomi> mget sftp-test
mget: Access failed: Failure (sftp-test)
lftp inkscape-test <at> localhost:/home/shlomi> exit
shlomi:~/TEMP$ rpm -q lftp
lftp-3.7.4-1mdv2009.0
}}}}}}}}}}

So SFTPing to the user inkscape-test cannot download the directory sftp-test 
inside /home/shlomi which are both owned by the user "shlomi", but all 
world-readable and world-executable.

I am able to download the directory fine using scp -r or using FileZilla's 
SFTP mode.

I'm using lftp-3.7.4-1mdv2009.0 on Mandriva Linux Cooker.

Regards,

	Shlomi Fish

-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Parody on "The Fountainhead" - http://xrl.us/bjria

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam
Spam detection software, running on the system "univ.uniyar.ac.ru", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Hi! This is an lftp bug report. On my home computer: [...]

Content analysis details:   (3.8 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 3.4 HEADER_SPAM            Bulk email fingerprint (header-based) found
 2.7 ROUND_THE_WORLD_LOCAL  Received: says mail sent around the world
                            (HELO)
-2.3 BAYES_00               BODY: Bayesian spam probability is 0 to 1%
                            [score: 0.0000]

Shlomi Fish | 15 Sep 17:00 2008
Picon

{Spam?} Fwd: Re: lftp using SFTP cannot download a directory using mget


----------  Forwarded Message  ----------

Subject: Re: lftp using SFTP cannot download a directory using mget
Date: Monday 15 September 2008
From: Shlomi Fish <shlomif <at> iglu.org.il>
To: Daniel Fazekas <fdsoft <at> gmail.com>

On Monday 15 September 2008, Daniel Fazekas wrote:
> On Sep 13, 2008, at 16:09, Shlomi Fish wrote:
> > shlomi:~$ ls -ld sftp-test/
> > drwxr-xr-x 2 shlomi shlomi 51 2008-09-13 16:51 sftp-test/
> > lftp inkscape-test <at> localhost:/home/shlomi> mget sftp-test
> > mget: Access failed: Failure (sftp-test)
> > So SFTPing to the user inkscape-test cannot download the directory
> > sftp-test
>
> mget is for plain files, not directories. See "help mget"
> What you are probably looking for is the command mirror. See "help
> mirror"

Thanks!

the "mirror" command indeed works.

In ncftp they have get which is one-size fits all - you can do get -R, etc. 
And you may wish to add a more meaningful error message when mget'ing a 
directory. See:

http://www.joelonsoftware.com/articles/customerservice.html

Regards,

	Shlomi Fish

-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://xrl.us/bjn7t

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam

-------------------------------------------------------

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam
Spam detection software, running on the system "univ.uniyar.ac.ru", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Forwarded Message Subject: Re: lftp using SFTP cannot download
   a directory using mget Date: Monday 15 September 2008 From: Shlomi Fish <shlomif <at> iglu.org.il>
   To: Daniel Fazekas <fdsoft <at> gmail.com> [...] 

Content analysis details:   (3.8 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 3.4 HEADER_SPAM            Bulk email fingerprint (header-based) found
 2.7 ROUND_THE_WORLD_LOCAL  Received: says mail sent around the world
                            (HELO)
-2.3 BAYES_00               BODY: Bayesian spam probability is 0 to 1%
                            [score: 0.0000]

Alexander V. Lukyanov | 19 Sep 08:32 2008
Picon

Re: Problem Using mirror

On Fri, Sep 19, 2008 at 08:42:14AM +0800, gio wrote:
> Uploaded directory using lftp:
> Folder                                             Permissions
> theme1                                           drwx------

Try --no-permissions option of mirror.

--

-- 
   Alexander.

gio | 19 Sep 10:44 2008

Re: Problem Using mirror

i got it i used mirror -R --no-perms

thank you.

On Fri, Sep 19, 2008 at 2:32 PM, Alexander V. Lukyanov <lav <at> netis.ru> wrote:
> On Fri, Sep 19, 2008 at 08:42:14AM +0800, gio wrote:
>> Uploaded directory using lftp:
>> Folder                                             Permissions
>> theme1                                           drwx------
>
> Try --no-permissions option of mirror.
>
> --
>   Alexander.
>

--

-- 
Regards,
Giovanni Castro
www.linkchannels.com - Web Directory

Peter Cordes | 19 Sep 23:55 2008
Picon

lftp man page: cmd:parallel is not boolean


lftp's man page has a couple bugs, in that it describes at these two
numeric options as boolean:

cmd:parallel (boolean))Number  of jobs...
cmd:queue-parallel (boolean)  Number of jobs...

 The other "boolean" options all look properly boolean to me, but I
didn't check for other things being mislabeled.

 BTW, I love lftp.  :)

 happy hacking,

--

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter <at> cor , des.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC

Gmane