Hi Alfonso,

Why configure didn't find an lpr (lp) command?

Try this patch.

Jean-Louis

On Mon, Nov 18, 2002 at 10:16:10AM -0000, Alfonso Armenta wrote:
> Hi everybody;
> 
> Maybe I am 'unusual' user here, but I got my backups and recover working 100% 
>fine... Just a little detail that I definitely don't like:
> 
> FAILURE AND STRANGE DUMP SUMMARY:
> 
> amreport: FINISH no printer command defined
> 
> I know that data is being dumped properly and that amrecover works grand... But why 
>can I not show my boss a report without the word failure written in caps? :)
> 
> Apologies if this is somewhat obvious or trivial for some of you, but I've read 
>manpages and FAQs as well as list archives cannot find an answer to this.
> 
> Thanks in advance,
> 
> Alfonso
> 

-- 
Jean-Louis Martineau             email: [EMAIL PROTECTED] 
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7        Fax: (514) 343-5834
--- amanda-2.4.3.orig/server-src/reporter.c     Wed Nov 13 09:26:02 2002
+++ amanda-2.4.3/server-src/reporter.c  Mon Nov 18 12:18:08 2002
@@ -544,7 +544,7 @@
            printer_cmd = vstralloc(LPRCMD, NULL);
 #endif
 
-       if ((strcmp(tp->lbl_templ, "")) != 0)
+       if ((strcmp(tp->lbl_templ, "")) != 0) {
 #ifdef LPRCMD
            if ((postscript = popen(printer_cmd, "w")) == NULL) {
                curlog = L_ERROR;
@@ -564,6 +564,7 @@
            handle_error();
            amfree(curstr);
 #endif
+       }
     }
 
     amfree(subj_str);

Reply via email to