This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Resolving localhost on Windows 7 (for exim)
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: <cygwin at cygwin dot com>
- Date: Wed, 14 Jan 2015 09:47:03 -0500
- Subject: RE: Resolving localhost on Windows 7 (for exim)
- Authentication-results: sourceware.org; auth=none
- References: <0NHP009ITJ361TD0 at vms173009 dot mailsrvcs dot net> <20150108132353 dot GN4190 at calimero dot vinschen dot de> <003d01d02e83$1aaaf7b0$5000e710$ at ieee dot org> <20150112165130 dot GP15791 at calimero dot vinschen dot de> <20150112171413 dot GQ15791 at calimero dot vinschen dot de> <20150113103706 dot GT15791 at calimero dot vinschen dot de>
> -----Original Message-----
> From: Corinna Vinschen
> Sent: Tuesday, January 13, 2015 05:37
>
> On Jan 12 18:14, Corinna Vinschen wrote:
> > On Jan 12 17:51, Corinna Vinschen wrote:
> > > On Jan 12 11:16, Pierre A. Humblet wrote:
> > > > Now the bad news: the exim daemon crashes.
> > > >
> > > > The reason is this:
> > > > $ getent passwd exim
> > > > NT SERVICE+exim:*:376394:376394:U-NT
> > > > SERVICE\exim,S-1-5-80-3213360373-4072665756-2198108471-
> 1641386292-
> > > > 839958090:/:/sbin/nologin
> > > >
> > > > So even though I am requesting just "exim" I am getting an entry for "NT
> SERVICE+exim"
> > >
> > > That's definitely a bug and I can easily reproduce it. I'm not sure
> > > yet how this happens, but this is really not ok. I'll have a look ASAP.
> >
> > Oh darn, I especially *implemented* this behaviour, for the sake of
> > being able to fetch the "TrustedInstaller" account by name.
> >
> > And then TrustedInstaller gets the account name "NT
> SERVICE+TrustedInstaller"
> > anyway, so I'm rather puzzled what I was thinking back in November.
> >
> > Fitting: getent passwd "NT SERVICE+servicename" does *not* work,
> > except for "NT SERVICE+TrustedInstaller". Oh well.
> >
> > I'll prepare a fix today or (more likely) tomorrow.
>
> Done. I uploaded a snapshot with this change to
> https://cygwin.com/snapshots/ Please give it a try.
Works fine, thanks a lot.
Also earlier in this thread I reported that DnsQuery was sometime
failing to resolve localhost with an error (not the question/answer snafu).
What happens is that if you ask e.g. to resolve localhost for a MX record,
DnsQuery answers that localhost does not exist and it repeats that answer
even for A and AAAA record for the next 15-20 min (surely the TTL).
That's a bug I can live with (it may depend partially on the upstream
nameservers). It will be mitigated when I add functionality to
gethostbyname2 as discussed previously.
Pierre
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple