Package: dhis-tools-dns
Version: 5.0-6.1
Severity: important
Dear Maintainer,
dhis-register-[pq] generated host entries including '\t' to the letter as
following:
1001 {
\thostname\ttest.example.com
hostpass xxxxxxxx
\tcontact\t\tSomeone
\temail\t\[email protected]
\tservice\t\tdns
}
/bin/echo does not interpret backslash escapes anymore in default. Attached
patches use printf instead and seem to work fine.
-- System Information:
Debian Release: 7.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.8.4-x86_64-linode31 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dhis-tools-dns depends on:
ii bind9 1:9.8.4.dfsg.P1-6+nmu2
ii dhis-dns-engine 5.3-1
ii dhis-server 5.3-2.1
ii dhis-tools-genkeys 5.0-6.1
ii libc6 2.13-38
dhis-tools-dns recommends no packages.
dhis-tools-dns suggests no packages.
-- no debconf information
--- dhis-register-p.orig 2013-05-18 14:14:42.000000000 +0900
+++ dhis-register-p 2013-05-18 14:11:33.000000000 +0900
@@ -14,7 +14,7 @@
exit 1
fi
-temp_pass==`mktemp -p $TEMP pass.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
+temp_pass=`mktemp -p $TEMP pass.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
temp_id=`mktemp -p $TEMP id.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
temp_nsupdate=`mktemp -p $TEMP nsupdate.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
# Remove Files on exit
@@ -27,11 +27,11 @@
#
echo "" >> $DBFILE
echo `cat $temp_id | awk '{ print $2 }'`" {" >> $DBFILE
-echo "\thostname\t$1" >> $DBFILE
+printf "\thostname\t%s\n" $1 >> $DBFILE
cat $temp_pass >> $DBFILE
-echo "\tcontact\t\t$2" >> $DBFILE
-echo "\temail\t\t$3" >> $DBFILE
-echo "\tservice\t\tdns" >> $DBFILE
+printf "\tcontact\t\t%s\n" $2 >> $DBFILE
+printf "\temail\t\t%s\n" $3 >> $DBFILE
+printf "\tservice\t\tdns\n" >> $DBFILE
echo "}" >> $DBFILE
kill -HUP `cat $DHISD_PID`
--- dhis-register-q.orig 2011-03-17 12:17:53.000000000 +0900
+++ dhis-register-q 2013-05-18 14:13:36.000000000 +0900
@@ -14,7 +14,7 @@
exit 1
fi
-temp_keys==`mktemp -p $TEMP keys.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
+temp_keys=`mktemp -p $TEMP keys.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
temp_id=`mktemp -p $TEMP id.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
temp_nsupdate=`mktemp -p $TEMP nsupdate.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
@@ -28,11 +28,11 @@
#
echo "" >> $DBFILE
echo `cat $temp_id | awk '{ print $2 }'`" {" >> $DBFILE
-echo "\thostname\t$1" >> $DBFILE
+printf "\thostname\t%s\n" $1 >> $DBFILE
cat $temp_keys >> $DBFILE
-echo "\tcontact\t\t$2" >> $DBFILE
-echo "\temail\t\t$3" >> $DBFILE
-echo "\tservice\t\tdns" >> $DBFILE
+printf "\tcontact\t\t%s\n" $2 >> $DBFILE
+printf "\temail\t\t%s\n" $3 >> $DBFILE
+printf "\tservice\t\tdns\n" >> $DBFILE
echo "}" >> $DBFILE
kill -HUP `cat $DHISD_PID`