Bug 104820 - ntpd initscript mangles firewall
Summary: ntpd initscript mangles firewall
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ntp
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-22 16:16 UTC by Curtis Doty
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-10-08 11:55:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Curtis Doty 2003-09-22 16:16:39 UTC
Description of problem:
During startup, the sed cruft that creates the list of timeservers does not 
properly parse a valid ntp.conf.

How reproducible:
use the full server syntax in ntp.conf:
server 10.10.10.10      minpoll 7       maxpoll 12

This is untested, but all that sed madness could probably be replaced with 
something a bit more simple and direct like this:

awk '/[[:blank:]]+127\./{next}/^[[:blank:]]*(server|peer)[[:blank:]]+/{print 
$2}' ntp.conf

Also, upon review, it looks to me like you have another bug. You don't allow 
any host with 127 followed by any character in its name.


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