statefiles: don't make hostsfile dependent on statefile
authorDavid Härdeman <david@hardeman.nu>
Sat, 8 Nov 2025 17:33:07 +0000 (18:33 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 11 Nov 2025 07:31:19 +0000 (08:31 +0100)
commit9ba4e3e0f5c5b431fa54e413b4316f3f808700cf
treea6f71826ce44ccc0608f6c6c65a3311ef89119b5
parentbe9c9f895ab4d8067b81552c2529f17881af6503
statefiles: don't make hostsfile dependent on statefile

Right now, the hosts file will only be created if the statefile is also
configured (and that fact isn't documented in the README.md, only in
commit logs (see 4bbc6e74248feeb756bd03dc500fb4f446ccfc49).

With this patch, the hostsfile is generated whether the statefile is
configured or not.

Signed-off-by: David Härdeman <david@hardeman.nu>
Link: https://github.com/openwrt/odhcpd/pull/302
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
src/statefiles.c