File ntp-stable-4.2.0a-20050816-loconly.patch of Package ntp
diff -ru ntpd-using_wrong_group//ntpd/ntp_proto.c ntp-stable-4.2.0a-20050816-loconly//ntpd/ntp_proto.c
--- ntpd-using_wrong_group//ntpd/ntp_proto.c 2008-09-25 17:18:45.000000000 +0200
+++ ntp-stable-4.2.0a-20050816-loconly//ntpd/ntp_proto.c 2008-09-25 17:22:15.000000000 +0200
@@ -2870,6 +2870,12 @@
xpkt.li_vn_mode = PKT_LI_VN_MODE(sys_leap,
PKT_VERSION(rpkt->li_vn_mode), xmode);
xpkt.stratum = STRATUM_TO_PKT(sys_stratum);
+ if (xpkt.stratum == 0 && sys_peer == NULL) {
+ sys_leap = LEAP_NOWARNING;
+ xpkt.li_vn_mode = PKT_LI_VN_MODE (sys_leap, PKT_VERSION (rpkt ->li_vn_mode), xmode);
+ get_systime (&sys_reftime);
+ xpkt.stratum = 1;
+ }
xpkt.refid = sys_refid;
xpkt.rootdelay = HTONS_FP(DTOFP(sys_rootdelay));
xpkt.rootdispersion =
Nur in ntp-stable-4.2.0a-20050816-loconly//ntpd: ntp_proto.c.orig.