From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3884 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: dn_expand() confuses postfix Date: Tue, 13 Aug 2013 14:38:17 -0400 Message-ID: <20130813183816.GF221@brightrain.aerifal.cx> References: <20130814021920.7e719d8f@sibserver.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1376419106 7954 80.91.229.3 (13 Aug 2013 18:38:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 18:38:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3888-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 13 20:38:30 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V9JUE-0000tk-AM for gllmg-musl@plane.gmane.org; Tue, 13 Aug 2013 20:38:30 +0200 Original-Received: (qmail 18331 invoked by uid 550); 13 Aug 2013 18:38:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 18323 invoked from network); 13 Aug 2013 18:38:29 -0000 Content-Disposition: inline In-Reply-To: <20130814021920.7e719d8f@sibserver.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3884 Archived-At: On Wed, Aug 14, 2013 at 02:19:20AM +0800, orc wrote: > musl's dn_expand() confuses postfix - always returns 0, then postfix's > libdns.a gets wrong shifts and gives up with something like: > > ../test_dns_lookup: lookup yandex.ru type MX flags 2 > ../test_dns_lookup: dns_query: yandex.ru (MX): OK > ../test_dns_lookup: warning: dns_get_fixed: bad class: 30722 > ../test_dns_lookup: fatal: Name service error for name=yandex.ru type=MX: Malformed or unexpected name server reply > > If someone will face same error with postfix & musl, then get portable > dn_expand.c from > http://tclsysdns.googlecode.com/svn/trunk/unix/dn_expand.c and put it > in src/dns (edit Makefile.in to include src & obj). Cleaning up this code is part of the roadmap for 0.9.13, but I wasn't aware that it was returning the wrong value. Thanks for bringing that to my attention. > (btw running whole LAMP/FTP stack with musl - some issues appear like > iconv need to be replaced with libiconv to make some CMS happy, so I > have some compatibility experience here. Do you know what problems they hit with iconv? It's my intention that iconv not need to be replaced. My guess is that the issue is failure to automatically detect UTF-16 endianness via BOM, or missing charset aliases for some charset strings. > Musl much more perfect than I > expected) Great to hear. :-) Rich