rpms/ntp/devel ntp-stable-4.2.0a-20050816-loconly.patch,NONE,1.1
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Nov 9 12:16:33 UTC 2005
- Previous message (by thread): rpms/ipsec-tools/devel ipsec-tools.spec,1.16,1.17
- Next message (by thread): rpms/gcc/devel gcc4-pr19450.patch, NONE, 1.1 gcc4-rh172652.patch, NONE, 1.1 .cvsignore, 1.114, 1.115 gcc4.spec, 1.84, 1.85 sources, 1.116, 1.117 gcc4-rh169765.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: praszyk
Update of /cvs/dist/rpms/ntp/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5372
Added Files:
ntp-stable-4.2.0a-20050816-loconly.patch
Log Message:
ntpd does not submit his local clock (if there is no peer).
ntp-stable-4.2.0a-20050816-loconly.patch:
ntp_proto.c | 6 ++++++
1 files changed, 6 insertions(+)
--- NEW FILE ntp-stable-4.2.0a-20050816-loconly.patch ---
--- ntp-stable-4.2.0a-20050816/ntpd/ntp_proto.c.rasold1 2005-11-09 13:03:04.000000000 +0100
+++ ntp-stable-4.2.0a-20050816/ntpd/ntp_proto.c 2005-11-09 13:07:00.000000000 +0100
@@ -2807,6 +2807,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.ppoll = rpkt->ppoll;
- Previous message (by thread): rpms/ipsec-tools/devel ipsec-tools.spec,1.16,1.17
- Next message (by thread): rpms/gcc/devel gcc4-pr19450.patch, NONE, 1.1 gcc4-rh172652.patch, NONE, 1.1 .cvsignore, 1.114, 1.115 gcc4.spec, 1.84, 1.85 sources, 1.116, 1.117 gcc4-rh169765.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list