Modify and propagate changed lease.

If hostname is reset on existing lease, propagate such change to leases
file and script.
This commit is contained in:
Petr Menšík
2021-07-02 16:58:48 +01:00
committed by Simon Kelley
parent cb6d06bb54
commit 0c95a5ff53

View File

@@ -1021,6 +1021,7 @@ void lease_set_hostname(struct dhcp_lease *lease, const char *name, int auth, ch
}
kill_name(lease_tmp);
lease_tmp->flags |= LEASE_CHANGED; /* run script on change */
break;
}
}