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: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Tue, 1 May 2001 12:21:26 -0400 From: Christopher Faylor To: Christopher Faylor Subject: Re: WSASocketA returns WSAEPROVIDERFAILEDINIT Message-ID: <20010501122126.A18213@redhat.com> Reply-To: cygwin-apps AT cygwin DOT com Mail-Followup-To: Christopher Faylor References: <2415739582 DOT 20010430214824 AT logos-m DOT ru> <20010430215921 DOT M24200 AT cygbert DOT vinschen DOT de> <12786583109 DOT 20010501172908 AT logos-m DOT ru> <3AEED4C8 DOT 5E7B8D7 AT reversion DOT ca> <3AEED8E0 DOT D7FD6731 AT yahoo DOT com> <11594817860 DOT 20010501194623 AT logos-m DOT ru> <20010501115731 DOT B17671 AT redhat DOT com> <15596567807 DOT 20010501201533 AT logos-m DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <15596567807.20010501201533@logos-m.ru>; from deo@logos-m.ru on Tue, May 01, 2001 at 08:15:33PM +0400 On Tue, May 01, 2001 at 08:15:33PM +0400, egor duda wrote: >Tuesday, 01 May, 2001 Christopher Faylor cgf AT redhat DOT com wrote: >>>it's certainly set by default. the problem is that spawnlpe (and >>>execle, for that matter), create process with new, constructed >>>environment, and if programmer won't include SystemRoot in this >>>constructed environment, new process won't have it. this may break >>>some standard windows components, including winsock. > >CF> Should we add SystemRoot by default regardless of the passed in CF> >environment? That's certainly doable by modifying the winenv() CF> >function. > >probably yes. i think %SystemDrive% is also good candidate to be added >regardless. looks like it's also used in couple of system dlls. On reflection, my only vague reluctance to doing this is that I can imagine that it might just be possible that someone would want to set up an environment where they had absolute control over what was in the environment. If we arbitrarily add things then we would destroy this scenario. cgf