This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
cygwin_internal (CW_SET_CYGWIN_REGISTRY_NAME)
- From: "Pierre A. Humblet" <pierre dot humblet at ieee dot org>
- To: cygwin-developers at cygwin dot com
- Date: Tue, 16 Nov 2004 10:17:54 -0500
- Subject: cygwin_internal (CW_SET_CYGWIN_REGISTRY_NAME)
- Reply-to: pierre dot humblet at ieee dot org
I have just noticed that the registry location of the mounts
can be modified by cygwin_internal (CW_SET_CYGWIN_REGISTRY_NAME)
In path.cc one finds
#define CYGWIN_REGNAME (cygheap->cygwin_regname ?: CYGWIN_INFO_CYGWIN_REGISTRY_NAME)
This applies only to locations under HKLM, not HKCU, except in the
case of writing and deleting (but not reading) the cygdrive, where
it applies to both HKLM and HKCU.
Given that the current implementation is broken and that the feature
is undocumented, do we want to keep it? If we keep it, how should it
work (only HKLM or both HKLM and HKCU)?
It's not clear to me how it's supposed to be used. By the time
cygwin_internal is called to change the location, the mounts will
have long been read.
Pierre