diff options
-rw-r--r-- | sbin/adjkerntz/adjkerntz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c index 85584ac..7716f2a 100644 --- a/sbin/adjkerntz/adjkerntz.c +++ b/sbin/adjkerntz/adjkerntz.c @@ -212,8 +212,8 @@ again: stz = &tz; } - /* if init, don't touch RTC at all */ - if (init) { + /* if init and something will be changed, don't touch RTC at all */ + if (init && (stv != NULL || kern_offset != offset)) { mib[0] = CTL_MACHDEP; mib[1] = CPU_DISRTCSET; len = sizeof(disrtcset); |