delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/07/04:41:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=wsXMpcHttJ9MrKtDvgOKc8U/Q/dh9ARRIw/Eh8CQraQGw8f0uc2w0
VlOGlO1W80aPD8F8g707frgeJ/YBuMymnDPnaD57c/yeziUHLEW5ZW5mK6a/fKvx
/qVA2dUMi2LjYXAZ1++mXuM50zF7cmbePUrJxQT+AjQj1btAUbedvs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=jNltJ9/HCbc1M/afkfvDYVXIOek=; b=llkvzZ5U7yqtwz5xOXymubxBgmlV
Y/AwcZ/H0PyveEMil9px+FtFW/PJlYdDP+K95ZnNFXVYV9KfPEcuQdng6+mpKlnM
PPj+gXAwGboZfekIWIo3yFTKkHpjGrlaX2iO655G7t7kZHUMaAnx6kkkZhar7rbn
+EbQf7pCPZ4Wpbk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 7 Jul 2014 10:41:10 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Minires truncates host names
Message-ID: <20140707084110.GF1803@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <028c01cf9974$ad507120$07f15360$@alum.mit.edu>
MIME-Version: 1.0
In-Reply-To: <028c01cf9974$ad507120$07f15360$@alum.mit.edu>
User-Agent: Mutt/1.5.23 (2014-03-12)

--1y/7ip9Z0l6NTTti
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jul  6 19:47, Pierre A. Humblet wrote:
> > -----Original Message-----
> > From: D. Boland
> > Sent: Sunday, July 06, 2014 03:08
> >=20
> > Thanks for the swift reply!
> >=20
> > I looked at Sendmails' source code. Here's the snippet which produces=
=20
> > the output from my first email. It's taken from the file
> sendmail/domain.c:
> >=20
> >                         sm_dprintf("dns_getcanonname: trying %s.%s
> (%s)\n",
> >                                 host, *dp, # if NETINET6
> >                                 qtype =3D=3D T_AAAA ? "AAAA" :
> > # endif /* NETINET6 */
> >                                 qtype =3D=3D T_A ? "A" :
> >                                 qtype =3D=3D T_MX ? "MX" :
> >                                 "???");
> >                 errno =3D 0;
> >                 ret =3D res_querydomain(host, *dp, C_IN, qtype,
> >                                       answer.qb2, sizeof(answer.qb2));
> >=20
> >=20
> > As you can see, it first prints the host to be looked up, and then=20
> > passes the string unaltered to res_querydomain.
> >=20
>=20
> You are right, there is a bug in res_querydomain,=20
> Line 737 *(ptr++ - 1) =3D '.';   should be
> *ptr++ =3D '.';
>=20=20
> I would also add a debug printf at the top of the function:
> DPRINTF(statp->options & RES_DEBUG, "querydomain \"%s\"  \"%s\" type %d\n=
",
> Name, DomName, Type);
>=20
> Unfortunately I am not setup to build Cygwin so I can't test the above nor
> submit a proper patch.

I've checked that in.  I also changed the debug output to print
"Resolv" instead of "Minires" to make sure that people don't think
they are stil using the external Minres lib.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--1y/7ip9Z0l6NTTti
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTul0mAAoJEPU2Bp2uRE+gXM0QAJRO97JzDO6De5NR6qA8ize9
yI6vMxGmLQMIT6J68TBWD08sdFAwkPpZK8cyWhe0HtaslB5tLGoPwB7W4j0RP/PO
L7OLKWrbSqOtie2zgmd4uCaLfUzEpm9aVQVDTezAzuktEYAC+MLcYJ4dY/3/6ck+
+WDAUY3PlQZWj8rpygHtHZUnD00kjgjulEopITsJJ7UT2pwb1MzvhCGZJArgg8KR
GNm7q+RxufDcvm0R2QKvrVqf7cdoUmvKhzniZdAAz7D/k9Up8BzlhglucPY7NoYa
QEwe8hF4Og4Y/kc2QrFK/ewPcFuFeJ9Di76Dnn8PtUbq80+kFeeBUniFBK4g0ktd
EeUQ3BoPtJgECTeNnWyMlkBGkzFUIuuvVo0Wt4stOwGhg4cH08I3NjiOYshrzRWM
w7S6nS7CRBFBxB/815CEdNlru7hgR/Kjj8ay4w6oIVLq8s3r+8rUiDM9hCBfxniq
/4knyJ/dgTknHXc9/MbfvomwdlIP5ODJZlw8X07MrlgyE0Zrx91CzQjiaX4eRalZ
PDWLp8aLyqiUgMVHACKyN8VJ5uOEQF2u8TQ+E1W9ZKuFZn3TiPzfr4iCnCkIT7pG
elqEKaiYdDwDyttAhWiG9IEMz/5tsksElHXNrJgz7EPUWo/qRzXnusXc/9bSZnKa
0JRM+BJbY3v/iM22+S9Q
=CQFn
-----END PGP SIGNATURE-----

--1y/7ip9Z0l6NTTti--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019