From 62920100054a87ce1acc725488028c61ab886706 Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 19 Jul 2011 06:26:52 +0000 Subject: [PATCH] Temp fix for bugzilla 73119, chown root:named to /var/lib/named dir, which is the default DNS working dir on SLES. This is just a temp workaround in xcat code before we get response from SuSE. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10114 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 4c86bbea2..19ca3b39b 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -517,6 +517,8 @@ sub get_dbdir { } elsif (-d "/var/named") { return "/var/named/"; } elsif (-d "/var/lib/named") { + # Temp fix for bugzilla 73119 + chown(scalar(getpwnam('root')),scalar(getgrnam('named')),"/var/lib/named"); return "/var/lib/named/"; } else { mkpath "/var/named/";