delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/06/15/08:45:56

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT saght DOT tessag DOT com>
To: "Cygwin-Apps" <cygwin-apps AT cygwin DOT com>
Cc: "egor duda" <cygwin-apps AT cygwin DOT com>
Subject: AW: AW: accept() failed message on kde 1.1.2 ??
Date: Fri, 15 Jun 2001 14:47:08 +0200
Message-ID: <000501c0f599$49f41bf0$6e032bb7@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-reply-to: <4378734854.20010615133643@logos-m.ru>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal

Hi!
>
> Friday, 15 June, 2001 Ralf Habacker Ralf DOT Habacker AT saght DOT tessag DOT com wrote:
>
> >> > The only change we had in the accept() code between 1.1.8 and
> >> > 1.3.2 was Egor's patch to support secure connections on AF_UNIX
> >> > sockets. Is it possible that the security check fails under
> >> > some circumstances here?
>
> you can apply this to cygwin sources, rebuild cygwin1.dll and see if
> it helps. this disables security checks i've added to AF_UNIX socket
> code. if it helps, then there may be some problem with my code.
>
> Index: net.cc
> ===================================================================
> RCS file: /cvs/src/src/winsup/cygwin/net.cc,v
> retrieving revision 1.57
> diff -u -p -1 -r1.57 net.cc
> --- net.cc      2001/06/03 22:18:19     1.57
> +++ net.cc      2001/06/15 09:27:01
> @@ -765,2 +765,3 @@ cygwin_connect (int fd,
>          }
> +#if 0
>        if (sock->get_addr_family () == AF_UNIX)
> @@ -793,2 +794,3 @@ cygwin_connect (int fd,
>          }
> +#endif
>      }
> @@ -902,3 +904,3 @@ cygwin_accept (int fd, struct sockaddr *
>        res = accept (sock->get_socket (), peer, len);  // can't
> use a blocking call inside a lock
> -
> +#if 0
>        if (sock->get_addr_family () == AF_UNIX)
> @@ -934,3 +936,3 @@ cygwin_accept (int fd, struct sockaddr *
>          }
> -
> +#endif
>        SetResourceLock (LOCK_FD_LIST, WRITE_LOCK|READ_LOCK, "accept");
>
I have applied the patch and as i see on short tests it works without
errors. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Next week I think we have to figure out, whats going wrong

Thanks for helping and I whish you a good weekend.






- Raw text -


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