summaryrefslogtreecommitdiffstats
path: root/abs/core/openntpd/sync_fix_with_adjtime.patch
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-16 03:36:25 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-16 03:36:25 (GMT)
commit32602a0e190aaa952845b41d03cef45e6f05398f (patch)
tree7adcdcb3022e69940900492e8dc1ff51d4763266 /abs/core/openntpd/sync_fix_with_adjtime.patch
parent98a17f32113b9127244f4e126cfe0defde4ecd66 (diff)
downloadlinhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.zip
linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.tar.gz
linhes_pkgbuild-32602a0e190aaa952845b41d03cef45e6f05398f.tar.bz2
openntpd: initial include - replace ntp?
Diffstat (limited to 'abs/core/openntpd/sync_fix_with_adjtime.patch')
-rw-r--r--abs/core/openntpd/sync_fix_with_adjtime.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/abs/core/openntpd/sync_fix_with_adjtime.patch b/abs/core/openntpd/sync_fix_with_adjtime.patch
new file mode 100644
index 0000000..4b9956b
--- /dev/null
+++ b/abs/core/openntpd/sync_fix_with_adjtime.patch
@@ -0,0 +1,24 @@
+Index: ntp.c
+===================================================================
+RCS file: /storage/1/mirror/openbsd/src/usr.sbin/ntpd/ntp.c,v
+retrieving revision 1.91
+diff -u -r1.91 ntp.c
+--- ntp.c 1 Jul 2006 18:52:46 -0000 1.91
++++ ntp.c 15 Jul 2006 07:50:05 -0000
+@@ -1,4 +1,4 @@
+-/* $OpenBSD: ntp.c,v 1.91 2006-07-01 18:52:46 otto Exp $ */
++/* $OpenBSD: ntp.c,v 1.91 2006/07/01 18:52:46 otto Exp $ */
+
+ /*
+ * Copyright (c) 2003, 2004 Henning Brauer <[EMAIL PROTECTED]>
+@@ -315,8 +315,10 @@
+ for (s = TAILQ_FIRST(&conf->ntp_sensors); s != NULL;
+ s = next_s) {
+ next_s = TAILQ_NEXT(s, entry);
+- if (s->next <= time(NULL))
++ if (s->next <= time(NULL)) {
+ sensor_query(s);
++ priv_adjtime();
++ }
+ }
+ }