delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/15/08:57:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Mikkel Rostock" <mikkel AT nsales DOT dk>
To: <cygwin AT cygwin DOT com>
Subject: RE: Windows hardening and system paths
Date: Mon, 15 Aug 2005 14:56:42 +0200
Message-ID: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA5Mn/gf2eOki1anFw3+Z8M8KAAAAQAAAAr81gEnxOiUien8IawtbUDAEAAAAA@nsales.dk>
MIME-Version: 1.0
In-Reply-To: <43005573.3F987AED@dessent.net>

Hello Brian,

Thanks for a quick answer!

However, I have searched all over to find out where to add the path, and as
you state "just put it in the path" - but where? - In Windows registry or in
a Cygwin config file?

Mikkel Rostock wrote:

> Cygwin uses some DLL-resources in Windows, but in my case, these DLLs
reside
> in another location than the usual Windows system directory, so how can I
> tell Cygwin to (also) look for Windows resources in a different place than
> the usual system folder?

Cygwin doesn't know or care where DLLs are, it does not replace the
Windows dynamic linker.  The same rules apply for the search path of
DLLs for Cygwin as for any other program.  The MSDN LoadLibrary() API
documentation details this.  In short, just put it in the path.

> I can see, when I run the cygpath -W or cygpath -S that the Windows paths
> are /cygdrive/x/WINNT and /cygdrive/x/WINNT/SYSTEM32. Those I would
probably
> want to change.

When you run cygpath -W, the result is the direct output of the
GetWindowsDirectory() function, converted to posix form. 
<msdn.microsoft.com/library/en-us/sysinfo/base/getwindowsdirectory.asp>. 
If that function returns C:\WINNT then that's where Windows thinks its
directory is.  If this is not correct then whatever method you did to
relocate this directory seems very suspect.

I do know that cygpath -W works correctly when the Windows directory is
not the stock location, as my current system has it in a custom place. 
But I did this with a response file during installation, so Windows has
always known of this location from the start.

Brian



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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