Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/kern_time.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/kern_time.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.36 retrieving revision 1.36.8.1 diff -u -p -r1.36 -r1.36.8.1 --- src/sys/kern/kern_time.c 1998/08/18 06:27:01 1.36 +++ src/sys/kern/kern_time.c 1999/06/21 01:24:03 1.36.8.1 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_time.c,v 1.36 1998/08/18 06:27:01 thorpej Exp $ */ +/* $NetBSD: kern_time.c,v 1.36.8.1 1999/06/21 01:24:03 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -50,6 +50,9 @@ #include #include +#include +#include + #if defined(NFS) || defined(NFSSERVER) #include #include @@ -344,6 +347,10 @@ sys_adjtime(p, v, retval) error = copyin(SCARG(uap, delta), &atv, sizeof(struct timeval)); if (error) return (error); + if (SCARG(uap, olddelta) != NULL && + uvm_useracc((caddr_t)SCARG(uap, olddelta), sizeof(struct timeval), + B_WRITE) == FALSE) + return (EFAULT); /* * Compute the total correction and the rate at which to apply it.