<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>28415</bug_id>
          
          <creation_ts>2013-01-22 13:09:50 +0400</creation_ts>
          <short_desc>OpenNTPD не работает при старте с сбитым временем и одной записью в ntpd.conf</short_desc>
          <delta_ts>2013-01-22 13:09:50 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>openntpd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Ovcherenko">asdus</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>137113</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Ovcherenko">asdus</who>
    <bug_when>2013-01-22 13:09:50 +0400</bug_when>
    <thetext># rpm -q openntpd
openntpd-3.9p1-alt12

# grep -v &apos;^#&apos; /etc/ntpd.conf | grep -v &apos;^$&apos;
server 10.1.0.2
# date --set=&apos;1 jan 1990&apos;
Mon Jan  1 00:00:00 UTC 1990
# ntpd -d
ntp engine ready
reply from 10.1.0.2: offset 727691985.579069 delay 0.000478, next query 8s
set local clock to Tue Jan 22 08:39:56 UTC 2013 (offset 727691985.579069s)
^Cntp engine exiting
Terminating

При этом, если в ntpd.conf больше одной записи, или время не сбито, все работает нормально.

# grep -v &apos;^#&apos; /etc/ntpd.conf | grep -v &apos;^$&apos;
server 10.1.0.2
server 10.1.0.2
# date --set=&apos;1 jan 1990&apos;
Mon Jan  1 00:00:00 UTC 1990
# ntpd -d
ntp engine ready
reply from 10.1.0.2: offset 727692626.531716 delay 0.000508, next query 6s
reply from 10.1.0.2: offset 727692626.531648 delay 0.000590, next query 9s
set local clock to Tue Jan 22 08:50:31 UTC 2013 (offset 727692626.531716s)
reply from 10.1.0.2: offset -0.000241 delay 0.000263, next query 6s
reply from 10.1.0.2: offset -0.000352 delay 0.000260, next query 5s
peer 10.1.0.2 now valid
reply from 10.1.0.2: offset -0.000438 delay 0.000264, next query 9s
^Cntp engine exiting
Terminating

или

# grep -v &apos;^#&apos; /etc/ntpd.conf | grep -v &apos;^$&apos;
server 10.1.0.2
# ntpdate 10.1.0.2
22 Jan 08:51:58 ntpdate[4603]: step time server 10.1.0.2 offset 727692714.553779 sec
# ntpd -d
ntp engine ready
reply from 10.1.0.2: offset -0.000122 delay 0.000250, next query 9s
reply from 10.1.0.2: offset -0.000257 delay 0.000279, next query 8s
reply from 10.1.0.2: offset -0.000405 delay 0.000261, next query 8s
peer 10.1.0.2 now valid
reply from 10.1.0.2: offset -0.000806 delay 0.000729, next query 9s
^Cntp engine exiting
Terminating</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>