X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0	tests=AWL,BAYES_20,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RCVD_IN_SORBS_WEB,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
From: "James Johnston" <JamesJ@motionview3d.com>
To: <cygwin@cygwin.com>
References: <loom.20120821T114938-389@post.gmane.org> <50337A02.8070809@redhat.com> <loom.20120821T153030-47@post.gmane.org>
In-Reply-To: <loom.20120821T153030-47@post.gmane.org>
Subject: RE: /etc/profile
Date: Tue, 21 Aug 2012 15:02:40 -0000
Message-ID: <017501cd7fae$044a07d0$0cde1770$@motionview3d.com>
MIME-Version: 1.0
Content-Type: text/plain;	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> -----Original Message-----
> Sent: Tuesday, August 21, 2012 14:39
> Subject: Re: /etc/profile
> 
> 
> Eric Blake <eblake <at> redhat.com> writes:
> > Unfortunately, at least your windows system dll directory has to be on
> > PATH, or cygwin1.dll will fail to load, so blindly removing ALL
> > windows paths from PATH is wrong.
> 
> At that point cygwin1.dll is already loaded and so far I haven't seen
anything
> not working due to that change.  But yes, I didn't think of that, so I'm
curious
> why it seems to work as nicely as it does.
> 

Read section "Search order for desktop applications" at "Dynamic-Link
Library Search Order" at
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).as
px

Bottom line, you don't need system32 in the path for DLL loading to work.  I
seem to recall that some earlier versions of Windows actually did not
include system32 in the PATH by default.


--
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

