delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/15/04:39:47

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
Message-ID: <43005573.3F987AED@dessent.net>
Date: Mon, 15 Aug 2005 01:42:27 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Windows hardening and system paths
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA5Mn/gf2eOki1anFw3+Z8M8KAAAAQAAAAJ7/JdOl2gEifq/12Alw59AEAAAAA AT rostock DOT biz>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

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