Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 598934 Details for
Bug 841316
init daemon uses wrong path if /etc/rndc.conf exists
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch that should fix the described problem
named.patch (text/plain), 1.24 KB, created by
Timothy
on 2012-07-18 16:34:18 UTC
(
hide
)
Description:
Patch that should fix the described problem
Filename:
MIME Type:
Creator:
Timothy
Created:
2012-07-18 16:34:18 UTC
Size:
1.24 KB
patch
obsolete
>--- /etc/init.d/named-orig 2012-07-18 18:05:49.484659911 +0200 >+++ /etc/init.d/named 2012-07-18 18:13:23.179673153 +0200 >@@ -106,18 +106,23 @@ start() > > [ -x /usr/sbin/"$named" ] || exit 5 > >- if [ ! -s /etc/rndc.key ]; then >- # Generate rndc.key if doesn't exist >- echo -n $"Generating /etc/rndc.key:" >- if /usr/sbin/rndc-confgen -a > /dev/null 2>&1; then >- chmod 640 /etc/rndc.key >- chown root.named /etc/rndc.key >- [ -x /sbin/restorecon ] && /sbin/restorecon /etc/rndc.key >- success $"/etc/rndc.key generation" >- echo >- else >- failure $"/etc/rndc.key generation" >- echo >+ >+ if [ -e /etc/rndc.conf ]; then >+ RNDCKEY_PATH=`grep include /etc/rndc.conf | grep rndc | cut -d '"' -f2` >+ echo "rndc.key is located in $RNDCKEY_PATH" >+ if [ ! -s $RNDCKEY_PATH ]; then >+ # Generate rndc.key if doesn't exist >+ echo -n $"Generating $RNDCKEY_PATH:" >+ if /usr/sbin/rndc-confgen -a > /dev/null 2>&1; then >+ chmod 640 $RNDCKEY_PATH >+ chown root.named $RNDCKEY_PATH >+ [ -x /sbin/restorecon ] && /sbin/restorecon $RNDCKEY_PATH >+ success $"$RNDCKEY_PATH generation" >+ echo >+ else >+ failure $"$RNDCKEY_PATH generation" >+ echo >+ fi > fi > fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 841316
: 598934 |
732640