From www@isc.org Sun Feb 26 15:11:49 2017 MIME-Version: 1.0 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer) content-type: text/plain; charset="utf-8" Message-ID: Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by bugs.isc.org (Postfix) with ESMTP id B660871B5A8 for ; Sun, 26 Feb 2017 15:11:48 +0000 (UTC) Received: from iscwebprod.isc.org (iscwebprod.isc.org [IPv6:2001:4f8:1:d::16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id CFC66349314 for ; Sun, 26 Feb 2017 15:11:46 +0000 (UTC) Received: from www (uid 80) (envelope-from www@iscwebprod.isc.org) id 7b7d0b by iscwebprod.isc.org (DragonFly Mail Agent v0.11); Sun, 26 Feb 2017 15:11:46 +0000 Delivered-To: dhcp-bugs@bugs.isc.org Subject: ISC DHCP 4.3.5 - configure --sysconfdir option is not respected as the default location of dhcpd.conf file Return-Path: X-Original-To: dhcp-bugs@bugs.isc.org Date: Sun, 26 Feb 2017 15:11:46 +0000 X-Wpcf7-Content-Type: text/plain X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org X-PHP-Originating-Script: 20001:class-phpmailer.php To: dhcp-bugs@isc.org From: "Alexey Levan" X-RT-Original-Encoding: utf-8 X-RT-Interface: Email Content-Length: 992 Bug Report from www.isc.org: Name: Alexey Levan Email: exlevan@gmail.com Software Version: ISC DHCP 4.3.5 OS: Linux Subject:configure --sysconfdir option is not respected as the default location of dhcpd.conf file Bug Detail =========== When I set --sysconfdir=/etc/dhcp in configure script, I expect dhcpd to use /etc/dhcp/dhcpd.conf as a default location to look for config file. Instead, it uses a hardcoded path /etc/dhcpd.conf. This path is set as the default value in server/dhcpd.h, unless _PATH_DHCPD_CONF has been defined. The problem is, it's never defined in the configure script (unlike _PATH_DHCPD_PID and _PATH_DHCPD_DB), and thus is always set to "/etc/dhcpd.conf". This behaviour is also inconsistent with example config files installation, which are located at path, specified by --sysconfigdir option. The current workaround is to pass -D_PATH_DHCPD_CONF='"/etc/dhcp/dhcpd.conf"' option to the compiler. --- This email was received through isc.org Bug Submission Form