diff options
author | Thomas Nordin <nordin@cvs.openbsd.org> | 2002-07-25 22:18:28 +0000 |
---|---|---|
committer | Thomas Nordin <nordin@cvs.openbsd.org> | 2002-07-25 22:18:28 +0000 |
commit | d9bfc760e5f8614b88c80d2d82c1b408e25bfba2 (patch) | |
tree | 5102c9dc619a41f977498078f3c9c2afb8079c1b /sys/compat/sunos/sunos_misc.c | |
parent | 35f479f1c8c53ca3d8d1694d020433a09a70909a (diff) |
Avoid time wrap at securelevel 2. ok millert@ fgsch@
Diffstat (limited to 'sys/compat/sunos/sunos_misc.c')
-rw-r--r-- | sys/compat/sunos/sunos_misc.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c index 69e0cd7c05e..a0cf2d5b6d6 100644 --- a/sys/compat/sunos/sunos_misc.c +++ b/sys/compat/sunos/sunos_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos_misc.c,v 1.37 2002/03/14 20:31:31 mickey Exp $ */ +/* $OpenBSD: sunos_misc.c,v 1.38 2002/07/25 22:18:27 nordin Exp $ */ /* $NetBSD: sunos_misc.c,v 1.65 1996/04/22 01:44:31 christos Exp $ */ /* @@ -1169,10 +1169,6 @@ sunos_sys_ostime(p, v, retval) void *v; register_t *retval; { - /* - * XXX - settime() is private to kern_time.c so we just lie. - */ -#if 0 struct sunos_sys_ostime_args /* { syscallarg(int) time; } */ *uap = v; @@ -1184,11 +1180,8 @@ sunos_sys_ostime(p, v, retval) tv.tv_sec = SCARG(uap, time); tv.tv_usec = 0; - settime(&tv); - return(0); -#else - return(EPERM); -#endif + error = settime(&tv); + return (error); } /* |