ports/139251: [PATCH] /usr/ports/sysutils/bacula-server (fix Check of a configuration)
Andrei Lavreniyuk
andy.lavr at reactor-xg.kiev.ua
Wed Sep 30 12:40:04 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list