DragonFly BSD
DragonFly commits List (threaded) for 2012-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Aug 2012 20:55:40 -0700 (PDT)

commit f59ccd4388ba748e851dd1d7c51ddeb3e03382ef
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]