Hi Gerrit,

Gerrit Pape wrote (25 Oct 2011 08:02:09 GMT) :
> On Fri, Oct 21, 2011 at 08:29:34PM +0200, intrigeri wrote:
>> Shall I prepare a patch?
> That would be great, thanks.

Please find, attached, a patch against your debian-experimental branch.
Tested, works for me.

Bye,
-- 
  intrigeri <intrig...@boum.org>
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc
  | Every now and then I get a little bit restless
  | and I dream of something wild.

>From 0a5bb2c8c4058c9244d76f7ba58181d0cc2efad7 Mon Sep 17 00:00:00 2001
From: intrigeri <intrig...@boum.org>
Date: Tue, 25 Oct 2011 19:40:29 +0200
Subject: [PATCH]   * debian/tinydns-run.postinst: do not rely on English
 locales when     parsing netstat output (closes: #586350).

---
 debian/changelog            |    8 ++++++++
 debian/tinydns-run.postinst |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f38f7cd..3986ac8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+djbdns (1:1.05-9~exp0.1) experimental; urgency=low
+
+  * Non-maintainer upload.
+  * debian/tinydns-run.postinst: do not rely on English locales when
+    parsing netstat output (closes: #586350).
+
+ -- intrigeri <intrigeri+deb...@boum.org>  Tue, 25 Oct 2011 20:31:58 +0200
+
 djbdns (1:1.05-9~exp0) experimental; urgency=low
 
   * tinydns-run/*, debian/tinydns-run.*, debian/po/: new binary package
diff --git a/debian/tinydns-run.postinst b/debian/tinydns-run.postinst
index 0992a07..32d5aa3 100755
--- a/debian/tinydns-run.postinst
+++ b/debian/tinydns-run.postinst
@@ -24,7 +24,7 @@ while :; do
 
   test -z "$IP" || test "$IP" != "$(head -n1 /etc/sv/tinydns/env/IP)" || break
 
-  GOOD=$(netstat -ie |grep -F " inet addr:$IP " || :)
+  GOOD=$(LC_ALL=C netstat -ie |grep -F " inet addr:$IP " || :)
   USED=$(netstat -ln |grep -F " $IP:53 " || :)
 
   case "$IP,$GOOD,$USED" in
-- 
1.7.7

Reply via email to