]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #14: contrib/unbound.init: Fix wrong comparison judgment
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 27 Feb 2019 06:58:10 +0000 (06:58 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 27 Feb 2019 06:58:10 +0000 (06:58 +0000)
  before copying.

git-svn-id: file:///svn/unbound/trunk@5124 be551aaa-1e26-0410-a405-d3ace91eadb9

contrib/unbound.init
doc/Changelog

index 747f94e932ddf72d136ee0e03f1e08e0cf42bb2f..cccadeccf5b70a79287a451e67451b4391348538 100644 (file)
@@ -39,13 +39,13 @@ start() {
     # setup root jail
     if [ -s /etc/localtime ]; then 
        [ -d ${rootdir}/etc ] || mkdir -p ${rootdir}/etc ;
-       if [ ! -e ${rootdir}/etc/localtime ] || /usr/bin/cmp -s /etc/localtime ${rootdir}/etc/localtime; then
+       if [ ! -e ${rootdir}/etc/localtime ] || /usr/bin/cmp -s /etc/localtime ${rootdir}/etc/localtime; then
            cp -fp /etc/localtime ${rootdir}/etc/localtime
        fi;
     fi;
     if [ -s /etc/resolv.conf ]; then
        [ -d ${rootdir}/etc ] || mkdir -p ${rootdir}/etc ;
-       if [ ! -e ${rootdir}/etc/resolv.conf ] || /usr/bin/cmp -s /etc/resolv.conf ${rootdir}/etc/resolv.conf; then
+       if [ ! -e ${rootdir}/etc/resolv.conf ] || /usr/bin/cmp -s /etc/resolv.conf ${rootdir}/etc/resolv.conf; then
            cp -fp /etc/resolv.conf ${rootdir}/etc/resolv.conf
        fi;
     fi;
index 12634deb90f02a6eac1d2b968e66c4dc24c357b0..65faf7420b058816278d0ab03a620d403076d0fe 100644 (file)
@@ -1,6 +1,8 @@
 27 February 2019: Wouter
        - Fix #4229: Unbound man pages lack information, about access-control
          order and local zone tags, and elements in views.
+       - Fix #14: contrib/unbound.init: Fix wrong comparison judgment
+         before copying.
 
 25 February 2019: Wouter
        - Fix #4227: pair event del and add for libevent for tcp_req_info.