4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 12:29:32 +08:00

* path.cc (mount_info::read_cygdrive_info_from_registry): Read system cygdrive

prefix with KEY_READ.
(mount_info::get_cygdrive_info): Ditto.
This commit is contained in:
Christopher Faylor 2000-11-24 18:04:44 +00:00
parent 5e46e27328
commit 93c1e56b2d
2 changed files with 20 additions and 14 deletions

View File

@ -1,3 +1,9 @@
Sat Nov 25 01:57:42 2000 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* path.cc (mount_info::read_cygdrive_info_from_registry): Read system
cygdrive prefix with KEY_READ.
(mount_info::get_cygdrive_info): Ditto.
Wed Nov 22 11:18:02 2000 Christopher Faylor <cgf@cygnus.com> Wed Nov 22 11:18:02 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.in: new-temp.a -> new-templib.a * Makefile.in: new-temp.a -> new-templib.a

View File

@ -1517,7 +1517,7 @@ mount_info::read_cygdrive_info_from_registry ()
/* Didn't find the user path prefix so check the system path prefix. */ /* Didn't find the user path prefix so check the system path prefix. */
/* reg_key for system path prefix in HKEY_LOCAL_MACHINE. */ /* reg_key for system path prefix in HKEY_LOCAL_MACHINE. */
reg_key r2 (HKEY_LOCAL_MACHINE, KEY_ALL_ACCESS, "SOFTWARE", reg_key r2 (HKEY_LOCAL_MACHINE, KEY_READ, "SOFTWARE",
CYGWIN_INFO_CYGNUS_REGISTRY_NAME, CYGWIN_INFO_CYGNUS_REGISTRY_NAME,
CYGWIN_INFO_CYGWIN_REGISTRY_NAME, CYGWIN_INFO_CYGWIN_REGISTRY_NAME,
CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME, CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME,
@ -1647,7 +1647,7 @@ mount_info::get_cygdrive_info (char *user, char *system, char* user_flags,
} }
/* Get the system path prefix from HKEY_LOCAL_MACHINE. */ /* Get the system path prefix from HKEY_LOCAL_MACHINE. */
reg_key r2 (HKEY_LOCAL_MACHINE, KEY_ALL_ACCESS, "SOFTWARE", reg_key r2 (HKEY_LOCAL_MACHINE, KEY_READ, "SOFTWARE",
CYGWIN_INFO_CYGNUS_REGISTRY_NAME, CYGWIN_INFO_CYGNUS_REGISTRY_NAME,
CYGWIN_INFO_CYGWIN_REGISTRY_NAME, CYGWIN_INFO_CYGWIN_REGISTRY_NAME,
CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME, CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME,