On Wed, Oct 07, 2009 at 11:00:17PM -0700, stucky wrote:
> SCEA_FR_up.csv: no files found
> [cfern...@redford dev_test]$ echo $?
> 0

Please try this patch.

--
   Alexander.
Index: mgetJob.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/mgetJob.cc,v
retrieving revision 1.29
diff -u -p -r1.29 mgetJob.cc
--- mgetJob.cc  27 Apr 2009 07:54:59 -0000      1.29
+++ mgetJob.cc  9 Oct 2009 13:32:38 -0000
@@ -123,6 +123,7 @@ void mgetJob::LocalGlob(const char *p)
    if(pglob.gl_pathc==0)
    {
       fprintf(stderr,_("%s: no files found\n"),p);
+      errors++;
       return;
    }
    for(i=0; i<(int)pglob.gl_pathc; i++)
@@ -190,6 +191,7 @@ int mgetJob::Do()
    if(rg->Error())
    {
       fprintf(stderr,"rglob: %s\n",rg->ErrorText());
+      errors++;
       goto next;
    }
 
@@ -202,6 +204,7 @@ int mgetJob::Do()
    if(files->get_fnum()==0)
    {
       fprintf(stderr,_("%s: no files found\n"),rg->GetPattern());
+      errors++;
       goto next;
    }
    do {

Reply via email to