Minires truncates host names

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jul 7 08:45:00 GMT 2014


On Jul  7 07:27, D. Boland wrote:
> Hi Pierre,
> 
> "Pierre A. Humblet" wrote:
> > 
> > You are right, there is a bug in res_querydomain,
> > Line 737 *(ptr++ - 1) = '.';   should be
> > *ptr++ = '.';
> > 
> > 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);
> > 
> > Unfortunately I am not setup to build Cygwin so I can't test the above nor
> > submit a proper patch.
> 
> I downloaded the source code from your site:
> 
> ftp://ftp.franken.de/pub/support/win32/develop/gnuwin32/cygwin/porters/Humblet_Pierre_A/V1.5/minires-0.97-src.tar.gz

You're in the wrong spot.  The minres code has been folded into the
Cygwin DLL years ago, with the switch from Cygwin 1.5 to 1.7.  There's
no external resolver lib in the Cygwin distro anymore since then.  The
Minires package is only provided by the 32 bit distro for backward
compatibility with very old packages.  Don't try to link against this
DLL at all for new packages:  -lresolv will link your resolver calls
to the Cygwin DLL's resolver calls.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140707/1c5fad3b/attachment.sig>


More information about the Cygwin mailing list