]> code.ossystems Code Review - openembedded-core.git/commitdiff
bind: fix typo chown->chmod
authorTing Liu <ting.liu@freescale.com>
Thu, 22 Jan 2015 02:39:59 +0000 (10:39 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Jan 2015 21:22:21 +0000 (21:22 +0000)
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/bind/bind/conf.patch
meta/recipes-connectivity/bind/bind/generate-rndc-key.sh

index 57dbd4e155735c9dae700e67780a77df8e6d9961..aad345f9fcfdfe000e41189cc14b69b6eb0dd637 100644 (file)
@@ -277,7 +277,7 @@ diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d
 +      modprobe capability >/dev/null 2>&1 || true
 +      if [ ! -f /etc/bind/rndc.key ]; then
 +          /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom
-+          chown 0640 /etc/bind/rndc.key
++          chmod 0640 /etc/bind/rndc.key
 +      fi
 +      if [ -f /var/run/named/named.pid ]; then
 +          ps `cat /var/run/named/named.pid` > /dev/null && exit 1
index c2e88bf127d60f15d06d04dc7d262a324d7bf860..db201270fad9684333a18b72fb598d45f2192409 100644 (file)
@@ -3,5 +3,5 @@
 if [ ! -s /etc/bind/rndc.key ]; then
     echo -n "Generating /etc/bind/rndc.key:"
     /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom
-    chown 0640 /etc/bind/rndc.key
+    chmod 0640 /etc/bind/rndc.key
 fi