Fix deletion of dhcp-options from inotify dynamic files.

These were not deleted except in the case that a dhcp-optsfile
option was coincidentally provided.
This commit is contained in:
Simon Kelley
2018-03-08 18:47:08 +00:00
parent 56f0623930
commit 4f7bb57e97
3 changed files with 94 additions and 75 deletions

View File

@@ -1511,9 +1511,6 @@ void clear_cache_and_reload(time_t now)
if (option_bool(OPT_ETHERS))
dhcp_read_ethers();
reread_dhcp();
#ifdef HAVE_INOTIFY
set_dynamic_inotify(AH_DHCP_HST | AH_DHCP_OPT, 0, NULL, 0);
#endif
dhcp_update_configs(daemon->dhcp_conf);
lease_update_from_configs();
lease_update_file(now);