On Sun, Feb 22, 2004 at 06:47:47PM +0000, Heng Liu wrote:
> I want to chmod a dir recursively, but no matter whether I specify -R option
> to chmod or not, lftp only chmod the dir, refusing descend into subdirs.

It is a bug. Here is one linear patch.

--
   Alexander.
Index: ChmodJob.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ChmodJob.cc,v
retrieving revision 1.7
diff -u -p -r1.7 ChmodJob.cc
--- ChmodJob.cc 24 Jul 2002 11:09:55 -0000      1.7
+++ ChmodJob.cc 24 Feb 2004 07:47:29 -0000
@@ -52,6 +52,7 @@ ChmodJob::~ChmodJob()
 void ChmodJob::Recurse()
 {
    set_maxdepth(-1);
+   Need(FileInfo::TYPE);
 }
 
 int ChmodJob::GetMode(const FileInfo *fi) const

Reply via email to