--- orig/CmdExec.cc	2011-04-29 06:58:27.000000000 +0200
+++ patched_lftp-4.2.3/src/CmdExec.cc	2011-05-24 09:52:34.000000000 +0200
@@ -251,6 +251,7 @@
    if(new_job->jobno<0)
       new_job->AllocJobno();
    new_job->SetParentFg(this,!background);
+   exit_code=0;
    AddWaiting(new_job);
    if(background) {
       Roll(new_job);
