X-Git-Url: https://git.librecmc.org/?p=librecmc%2Flibrecmc.git;a=blobdiff_plain;f=package%2Fnetwork%2Fservices%2Fdnsmasq%2Fpatches%2F210-dnssec-improve-timestamp-heuristic.patch;fp=package%2Fnetwork%2Fservices%2Fdnsmasq%2Fpatches%2F210-dnssec-improve-timestamp-heuristic.patch;h=2f854d490b2405f7bab9830177fb0199c0a589d9;hp=ca5a8066964b9214841efc7fc0eff0a6e919b8e7;hb=92a7239b3635e36e21d34e742d3c7e332bc133d6;hpb=b33db6ea9483fb1236bd82c3a89331ea61d7d858 diff --git a/package/network/services/dnsmasq/patches/210-dnssec-improve-timestamp-heuristic.patch b/package/network/services/dnsmasq/patches/210-dnssec-improve-timestamp-heuristic.patch index ca5a806696..2f854d490b 100644 --- a/package/network/services/dnsmasq/patches/210-dnssec-improve-timestamp-heuristic.patch +++ b/package/network/services/dnsmasq/patches/210-dnssec-improve-timestamp-heuristic.patch @@ -35,13 +35,13 @@ Signed-off-by: Steven Barth + if (difftime(now, base) >= 0 && difftime(timestamp_time, now) <= 0) { /* time already OK, update timestamp, and do key checking from the start. */ - if (utime(daemon->timestamp_file, NULL) == -1) + if (utimes(daemon->timestamp_file, NULL) == -1) @@ -493,7 +500,7 @@ int setup_timestamp(void) close(fd); -- timestamp_time = timbuf.actime = timbuf.modtime = 1420070400; /* 1-1-2015 */ -+ timestamp_time = timbuf.actime = timbuf.modtime = base; - if (utime(daemon->timestamp_file, &timbuf) == 0) - goto check_and_exit; - } +- timestamp_time = 1420070400; /* 1-1-2015 */ ++ timestamp_time = base; /* 1-1-2015 */ + tv[0].tv_sec = tv[1].tv_sec = timestamp_time; + tv[0].tv_usec = tv[1].tv_usec = 0; + if (utimes(daemon->timestamp_file, tv) == 0)