http://bugzilla.novell.com/show_bug.cgi?id=542098 Summary: NTP init script fails if keysdir defined in ntp.conf Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: juha.mustonen@eads.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729) NTP init script uses incorrect awk regular expression when attempting to find the name of NTP symmetric keys file. The expression matches both "keys" and "keysdir" keywords, when only the first was intended. See patch below. --- /etc/init.d/ntp.orig 2009-09-25 12:31:02.000000000 +0300 +++ /etc/init.d/ntp 2009-09-25 12:31:15.000000000 +0300 @@ -55,7 +55,7 @@ NTPDC_BIN="/usr/sbin/ntpdc" -NTP_KEYS=$(awk '/^keys/ { print $2 }' $NTP_CONF) +NTP_KEYS=$(awk '/^keys[[:blank:]]/ { print $2 }' $NTP_CONF) NTP_KEYID=$(awk '/^requestkey[[:blank:]]/ { print $2 }' $NTP_CONF) NTP_PASSWD=$(test -n "$NTP_KEYS" -a -n "$NTP_KEYID" -a -r "$NTP_KEYS" && awk '$0 ~ key { print $3 }' key="^[[:blank:]]*$NTP_KEYID[[:blank:]]" $NTP_KEYS) Reproducible: Always Steps to Reproduce: 1. Add line "keysdir /etc/ntp" to /etc/ntp.conf with appropriate parameters. 2. Restart ntp. Actual Results: Init scripts complains "NTP key id not defined" and fails to restart ntp. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.