diff --git a/ndhc/leasefile.c b/ndhc/leasefile.c index 99a40eb..4dc8d57 100644 --- a/ndhc/leasefile.c +++ b/ndhc/leasefile.c @@ -74,4 +74,6 @@ void write_leasefile(struct in_addr ipnum) ret = safe_write(leasefilefd, ip, strlen(ip)); if (ret == -1) log_warning("Failed to write ip to lease file.\n"); + else + fsync(leasefilefd); }