Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2009 12:39:31 GMT
From:      Andrei Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139251: [PATCH] /usr/ports/sysutils/bacula-server (fix Check of a configuration)
Message-ID:  <200909301239.n8UCdV2D061933@www.freebsd.org>
Resent-Message-ID: <200909301240.n8UCe30T009565@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         139251
>Category:       ports
>Synopsis:       [PATCH] /usr/ports/sysutils/bacula-server (fix Check of a configuration)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 30 12:40:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Andrei Lavreniyuk
>Release:        FreeBSD 8.0-RC1
>Organization:
Technica-03, Inc.
>Environment:
FreeBSD datacenter.technica-03.local 8.0-RC1 FreeBSD 8.0-RC1 #0: Tue Sep 22 23:45:29 EEST 2009     root@datacenter.technica-03.local:/usr/obj/usr/src/sys/SMP64  amd64
>Description:

 /usr/ports/sysutils/bacula-server (fix Check of a configuration)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- 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;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909301239.n8UCdV2D061933>