This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: /etc/profile


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]