Bug 82714 - rc.d script does not handle version keywork correctly
rc.d script does not handle version keywork correctly
Status: CLOSED DUPLICATE of bug 82713
Product: Red Hat Linux
Classification: Retired
Component: ntp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-01-25 01:32 EST by John Mellor
Modified: 2008-01-17 12:49 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 13:51:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Mellor 2003-01-25 01:32:23 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030115

Description of problem:
Older NTP servers and peers not using the latest NTP protocol (such as almost
all SCO unix sites) must be specified using the version keyword.  This keyword
is being passed through the firewall punching code in /etc/rc.d/init.d/ntp
script, causing a failed firewall rule attempt for "version".

For example, from my /etc/ntp.conf:

    server xenitec.xenitec.on.ca version 2

is perfectly legal, but incorrectly parsed in 2 identically coded places in the
ntp startup script (start and stop functions).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Use an ntp.conf with a version keyword

Expected Results:  keywords after the servername should be parsed out and ignored.

Additional info:
Comment 1 John Mellor 2003-01-25 01:36:17 EST
bug 82713 (not punching peers through the firewall) should also handle
additional keywords the same way as the server keyword needs to do.
Comment 2 John Mellor 2003-02-22 23:04:10 EST
Still not fixed in Phoebe 3 release.

Suggested code fix:

replace the sed script assignment of timeserver (2 places) with:

timeservers=`/usr/bin/awk '$1=="peer"||$1=="server"{print $2}' $ntpconf`

This change also fixes bug 82713 correctly.
Comment 3 Harald Hoyer 2003-03-10 09:50:48 EST

*** This bug has been marked as a duplicate of 82713 ***
Comment 4 Red Hat Bugzilla 2006-02-21 13:51:23 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.