From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 30 12:40:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05B7F1065694 for ; Wed, 30 Sep 2009 12:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9810E8FC1A for ; Wed, 30 Sep 2009 12:40:03 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8UCe3vQ009566 for ; Wed, 30 Sep 2009 12:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8UCe30T009565; Wed, 30 Sep 2009 12:40:03 GMT (envelope-from gnats) Resent-Date: Wed, 30 Sep 2009 12:40:03 GMT Resent-Message-Id: <200909301240.n8UCe30T009565@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrei Lavreniyuk Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F41CC1065670 for ; Wed, 30 Sep 2009 12:39:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E24658FC1A for ; Wed, 30 Sep 2009 12:39:31 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8UCdVlP061940 for ; Wed, 30 Sep 2009 12:39:31 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n8UCdV2D061933; Wed, 30 Sep 2009 12:39:31 GMT (envelope-from nobody) Message-Id: <200909301239.n8UCdV2D061933@www.freebsd.org> Date: Wed, 30 Sep 2009 12:39:31 GMT From: Andrei Lavreniyuk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/139251: [PATCH] /usr/ports/sysutils/bacula-server (fix Check of a configuration) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2009 12:40:04 -0000 >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: