www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/31/04:35:47

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=LdddcL5607ZlSimmBN0Xt8ILEuUjX309iftbFdib7zTUX9kxhXtkd
dByVQs5RGhPRG8snWVY5cQBT2hCcv86nRCeJ4XGlt4FbcmN+Pj5phyFQOslNfzw9
BkTmLv3dvresDwpDYn9Dzd2A3pDrTImj+UDl8sJ9TIvaxOAM7ht3oo=
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=J3tGsYR+HyQLVxJcSZnnNb9yCY0=; b=Ia+i/U2AdkI4GU57fAgPFjHebt9t
owMXUVPVy0+rr5NcgrhiCMPgJksfdKq5561hYUGsmBrU/v1lV7LdhZ2uU2K5NXQR
bn5vd7ukHYePYyv5MZyaHsX9n8UaNoxYR7FVzj9C9TAQQxFFwf3Qb22p8Rfdpgw/
mfm2WHQ9RJEahJw=
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-Spam-SWARE-Status: No, score=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:2575, foreign, claim, highly
X-HELO: mout.kundenserver.de
Date: Fri, 31 Aug 2018 10:34:21 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin Dirmngr and TBB for windows
Message-ID: <20180831083421.GE6350@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0d735703-6936-1b4a-74d0-f03692a8ddbd AT mail DOT com> <af86c6ad-0a31-d0b9-e8d9-e8f9371232a3 AT mail DOT com> <6064620b-7ea1-0c46-d8f8-5de024909c69 AT gmail DOT com> <20180830150725 DOT GC6350 AT calimero DOT vinschen DOT de> <5cb27938-3a8a-8f15-4a77-af7a754d8557 AT mail DOT com>
MIME-Version: 1.0
In-Reply-To: <5cb27938-3a8a-8f15-4a77-af7a754d8557@mail.com>
User-Agent: Mutt/1.9.2 (2017-12-15)

--JlJsEFsx9RQyiX4C
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 30 21:20, john doe wrote:
> On 8/30/2018 5:07 PM, Corinna Vinschen wrote:
> > On Aug 30 14:35, Marco Atzeri wrote:
> > > Am 30.08.2018 um 11:30 schrieb john doe:
> > > > On 7/11/2018 10:11 AM, john doe wrote:
> > > > > Hi,
> > > > >=20
> > > > > I'm trying to get Cygwin dirmngr to work with=C2=A0 Tor Browser f=
or Windows.
> > > > >=20
> > > > > Following some discussion on the gnupg user list it looks like th=
at
> > > > > the connect(2) function in Cygwin does not return the proper error
> > > > > code:
> > > > >=20
> > > > > https://lists.gnupg.org/pipermail/gnupg-users/2018-July/060768.ht=
ml
> > > > >=20
> > > > > On the above link one of the dev suggest that connect(2) returns
> > > > > EPERMS instead of ECONREFUSED.
> > > > >=20
> > > > > If ECONREFUSED is not returned when port 9050 is queried the
> > > > > fallback code in dirmngr will not be executed and port 9150 will
> > > > > never be used.
> > > > >=20
> > > > > Using dirmngr on Debian with TBBfor linux works as expected.
> > > > >=20
> > > > > Can anyone confirm that and subcequently make Cygwin return the
> > > > > proper error code?
> > > > >=20
> > > > > Any help is appriciated.
> > > > >=20
> > > >=20
> > > > As any one has been able to confirm that the issue is present in Cy=
gwin
> > > > code?
> > > > I didn't see anything regarding this issue in the beta version of C=
ygwin
> > > > or did I mist it?
> > >=20
> > >=20
> > > a Simple Test Case will help to verify the claim.
> >=20
> > Full ACK.
> >=20
> > > connect is not expected to return EPERM
> > > http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html
> >=20
> > Cygwin does not explicitely generate EPERM anywhere near
> > AF_INET/AF_INET6 code.  Nor does a Winsock error exist which
> > gets gonverted to EPERM.
> >=20
> > The *only* way to generate EPERM is if an underlying Winsock function
> > returns an error code not handled by Cygwin.  I never encountered
> > that case, though.  Thus, a STC is highly appreciated.
> >=20
> >=20
> > Corinna
> >=20
>=20
> Thanks both for your answer and your willingness to look into this.
>=20
> STC:
> 1)  Have Tor Browser for Windows up and running.
> 2)  Start dirmngr:
>   $ mkdir ${HOME}/try
>   $ dirmngr --homedir ${HOME}/try -vvv --debug-all --server --use-tor
>   -> KS_GET -- 0x6C6ACD6417B3ACB1

That's not a STC.  STC means a simple, self-contained piece of (ideally)
C code to reproduce the issue.  I simply don't have the time to hunt
down something in lots of foreign code.


Corinna

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

--JlJsEFsx9RQyiX4C
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAluI/Y0ACgkQ9TYGna5E
T6B5VA//dGZiK6+I3igle6lie+hgkkqwzjCzabImB8i9PNMT4tLplORT4w+n8XA0
uzEKuncVLrJRnKoSmRytJMh+z8LV5C0tqRB/aHONA25iZurgZPbM7XqsPerLMuEi
OA7dBB1fckU6Bafv+tOdydbLPC/sTpREgEPtl3iS5evY0e4Or5gESo27TH9vPfWY
1h+GiQnViEdeRkV5uu3DaWfSe8Sjh6dZJ7YzHJxWa7tOmbZONuKAy4PIrm8oTcCl
lX0i9i2EYIm3CBDV3NLjLPrdzTcnYVbw6djwgyk+ZXcumQOTeLWW5niB4namEQTa
ZK8m7jSPRTwJrr7QVEaH2RER2hiMXb6Q/oXUIYjW61CW8qCdiuwIym+Yb0R4hwjz
MH37fYWJ7Z6DDbyvBUdov0dv1vOHsL9NjclBCQHhQ/YiVoUphXJTL83cNjgKf6Md
tXnrRGBvDDeTZs29T2Re8m0hJ6smrZwdMw0tlv+xGnH1B/Mzkzu/9PTmHiGjTvSc
ZG3s+npMZLN6ukqmAnLuTr3Zbzy9+0LQa3/LqutTHFQvTWL/9er2ZyFKC94WNj8O
G1tr4QDM2o2bCDb3j06cT422mre8DOJR4JE2GJbIxT9ey+hmSG+l7zjKbUg/vl/l
CD4aAfebffvWmBicYId2ND9tJCllr4oq0WCFlMxxekKQDs78jg0=
=XK9z
-----END PGP SIGNATURE-----

--JlJsEFsx9RQyiX4C--

- Raw text -


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