git: kernel - Do not allow the time to be set to { 0, 0 }

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Aug 23 20:55:40 PDT 2012


commit f59ccd4388ba748e851dd1d7c51ddeb3e03382ef
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Aug 23 20:39:05 2012 -0700

    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.

Summary of changes:
 sys/kern/kern_time.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f59ccd4388ba748e851dd1d7c51ddeb3e03382ef


-- 
DragonFly BSD source repository





More information about the Commits mailing list