kernel - Do not allow the time to be set to { 0, 0 }
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Aug 2012 03:39:05 +0000 (20:39 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Aug 2012 03:39:05 +0000 (20:39 -0700)
commitf59ccd4388ba748e851dd1d7c51ddeb3e03382ef
tree3c1789ef38f0ece79300342e5d041bfe757cde0e
parent40db7aaff4d2d6be934f0d55e86c59e17b8429fd
kernel - Do not allow the time to be set to { 0, 0 }

* The settimeofday() system call now fails with EINVAL if passed
  a { 0, 0 } tv structure.

* No need to allow this case, and it may fix some weird pkgsrc bulkbuild
  issues.  For some reason something in the bulk build calls settimeofday()
  with { 0, 0 } when linux.ko/linprocfs are not loaded.
sys/kern/kern_time.c