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=lXzdt8Ib4LY2FHvVM+dD9qXmn502Rkavy1qDAsB/TTRcansyZKjUR uF+Ig6bb+BwoCFIHPo+P0e4yJSgHJvVCNk54Rx0OvEBB9vyMGx4Arkr6EVMvd8LY TAQak+JhSsu/FgroVf4ebExqrlG8uQVZ8PY2RNNLNbi+9TWJ8oVeVg= 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=Nbg/i+0LHVz8SmF6nkZbDPzTAF0=; b=vPhDS8VyJCS/Kq5zpCwAwntR4/KJ 1hmQZWww7xupujj5diFRdXizZwP9yCdk1c4cTb+X8xEtWs52UrqPqKaRCpuW/Fa1 U2IjDF68Tq9HyNfSwxYUtIMx4iyoO0JfiJjPklDJ322uhMg/X2u36F7LaRemlNwA Cm2SOzEv+IZ/oM8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Fri, 24 Oct 2014 13:02:09 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.33-0.1 Message-ID: <20141024110209.GJ20607@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/0U0QBNx7JIUZLHm" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --/0U0QBNx7JIUZLHm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Oct 23 20:06, Denis Excoffier wrote: > On 2014-10-22 11:23, Corinna Vinschen wrote: > >=20 > > - Drop the current working directory from the default DLL search path in > > favor of Cygwin's /bin dir. > I'm not so comfortable with this one. >=20 > I use > PATH=3D/my/dir/bin:/usr/bin /my/otherdir/myprog >=20 > There is no DLL at all in /my/otherdir (this is the very first place > for Windows to look for DLL's, and i think that this cannot change). > In /my/dir/bin, there is an updated version of a library also > located in /usr/bin, for example an updated cygstdc++-6.dll (from GCC 4.9= .1). >=20 > Does this mean that, under this change, cygstdc++-6.dll will be found > in /usr/bin and not in /my/dir/bin ? In fact, this is what i can > observe personnally. >=20 > Also, i don't remember that the CWD has an impact on where DLL is found (= apart > from being in PATH, and apart from being the dir where the exe resides). >=20 > For a test i have commented out in cygheap.cc the line > 'wcpncpy (installation_dir, ...' (and also the next one) > and the old behaviour is now back. >=20 > It seems to me that this change is a regression. Could someone please arg= ue? Hmm. It's hard to do the right thing here, I guess. I can see how this is a regression in your scenario. OTOH, your scenario is not stable. The directories in $PATH are the last ones in the DLL search order. So, your scenario already wouldn't work if your CWD is /bin (or /usr/bin). =46rom Cygwin's POV {/usr}/bin is a system dir. For security reasons it makes sense that the system DLLs in /bin cannot be overridden, unless it's an installation issue which should be covered by looking into the application installation dir first. Having said that, moving your DLLs into the application dir is really not an option? Does anybody else have a similar scenario to cover, which doesn't work anymore with this change? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --/0U0QBNx7JIUZLHm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUSjGwAAoJEPU2Bp2uRE+g9ToP/jJI6FcX6Tla/x4rrwuaFMuZ CEEwkB4WVn8azpjSesfcz6wdEijTd2KyRhMaaB+fOBlhnX+7OYwUoSuVdFUFqJfS gPmMQ/euZHKxzfixRziPQWqUYsP1UW4TlxLRZXK2QjF9QClFGvYDJVAHf47Lvaif 3Pk0O5EWYdkvHyhmFzB9GJzRlC7Ru/h018gTX6nEhaQCk0VQScsF4LxM7dmkZgxo it/eFdMZgYJgpTQ+5fX+mCsUKPdYla3Y03qfX6WCcjfEBntLmoNbJbcz0HFXTlrf 1C3m9vhwI/lcEPO1zLJQ6lf5SXMa39jBkkG3uIXF7b22SjeJxaQw/HY3dVTB9YJe KlvlIukkFowjINWSNgAd5W2GCAxWyr86JV/OgSUni6jDz4/c/xqYtXDSdiKSSgfm upH+b3krTURZXxJf9H9ya56twC/cerHY5YzX6kZst1koNHyFZjT4a/93S1CizFz5 1UZh1PKq9QWo+fKPhczgpyZaoJIIvUgg0TyToGvyNYg5Vt9X2ZxyEps+dbsO/LLf /f1QpzQABopc5ztYYMiOnxHVhSjYtqSUassbAg5+0EzXn3pI6auIQUAid+CJZlXU tp6oJV+gvi0HjTMEjm1no/YrQ54w5x/6QF1DkEYkIEV2fY4EMLJbCT3hMQHovXU1 fV49/ma5Jhhbe5nAYo1t =xGf/ -----END PGP SIGNATURE----- --/0U0QBNx7JIUZLHm--