[Bug 542098] New: NTP init script fails if keysdir defined in ntp.conf
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.
http://bugzilla.novell.com/show_bug.cgi?id=542098 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |varkoly@novell.com |ovo.novell.com | -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=542098 User varkoly@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=542098#c1 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #1 from Peter Varkoly <varkoly@novell.com> 2009-10-16 03:38:24 MDT --- fixed for head -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=542098 Yaroslav Ravlinko <yaroslav.ravlinko@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|VERIFIED |REOPENED CC| |yaroslav.ravlinko@gmail.com Resolution|FIXED |--- --- Comment #2 from Yaroslav Ravlinko <yaroslav.ravlinko@gmail.com> --- I can reproduce the same issue at latest openSuSE 13.2 Can somebody verify it? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com