Subject: | ISC DHCP 4.3.5 - configure --sysconfdir option is not respected as the default location of dhcpd.conf file |
Date: | Sun, 26 Feb 2017 15:11:46 +0000 |
To: | dhcp-bugs@isc.org |
From: | "Alexey Levan" <exlevan@gmail.com> |
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