Hi!



--- src/console/console.c.orig  2009-09-29 14:44:11.000000000 +0300
+++ src/console/console.c       2009-09-29 14:52:29.000000000 +0300
@@ -927,7 +927,10 @@

     CONRES *cons;
     /* Loop over Consoles */
+   numcon = 0;
     foreach_res(cons, R_CONSOLE) {
+
+      numcon++;
        /* tls_require implies tls_enable */
        if (cons->tls_require) {
           if (have_tls) {
@@ -947,6 +950,13 @@
        }
     }

+   if (numcon == 0) {
+      Emsg1(M_FATAL, 0, _("No Console resource defined in %s\n"
+                          "Without that I don't how to speak to the 
Director(Console) :-(\n"), configfile);
+      OK = false;
+   }
+
+
     UnlockRes();

     return OK;




-- 
  Best regards, Andrei V. Lavreniyuk.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to