Page MenuHomeFreeBSD

D20151.id57019.diff
No OneTemporary

D20151.id57019.diff

Index: head/sys/kern/kern_time.c
===================================================================
--- head/sys/kern/kern_time.c
+++ head/sys/kern/kern_time.c
@@ -412,7 +412,9 @@
if (ats->tv_nsec < 0 || ats->tv_nsec >= 1000000000 ||
ats->tv_sec < 0)
return (EINVAL);
- if (!allow_insane_settime && ats->tv_sec > 8000ULL * 365 * 24 * 60 * 60)
+ if (!allow_insane_settime &&
+ (ats->tv_sec > 8000ULL * 365 * 24 * 60 * 60 ||
+ ats->tv_sec < utc_offset()))
return (EINVAL);
/* XXX Don't convert nsec->usec and back */
TIMESPEC_TO_TIMEVAL(&atv, ats);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 29, 4:34 AM (17 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26317764
Default Alt Text
D20151.id57019.diff (574 B)

Event Timeline