diff options
author | Christopher Faylor <me@cgf.cx> | 2001-11-12 00:14:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-11-12 00:14:27 +0000 |
commit | 71f90de808505e23c9c28451956742ac362c9ec7 (patch) | |
tree | 703ff5445b6db4820c7ceea4f84a06382ffed082 /winsup/utils/path.cc | |
parent | 7d3480deef4f9d00215d0326c531ce58cd56478c (diff) | |
download | cygnal-71f90de808505e23c9c28451956742ac362c9ec7.tar.gz cygnal-71f90de808505e23c9c28451956742ac362c9ec7.tar.bz2 cygnal-71f90de808505e23c9c28451956742ac362c9ec7.zip |
* cygcheck.cc (scan_registry): Open registry with read-only access.
(main): Reflect argument change for dump_setup.
* dump_setup.cc (dump_setup): Add preliminary extra argument for future use.
* path.cc (read_mounts): Open registry with read-only access.
Diffstat (limited to 'winsup/utils/path.cc')
-rw-r--r-- | winsup/utils/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc index d3c99de12..b7ddfde1b 100644 --- a/winsup/utils/path.cc +++ b/winsup/utils/path.cc @@ -119,7 +119,7 @@ read_mounts () CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME); HKEY key = issystem ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; - if (RegCreateKeyEx (key, buf, 0, (LPTSTR) "Cygwin", 0, KEY_ALL_ACCESS, + if (RegCreateKeyEx (key, buf, 0, (LPTSTR) "Cygwin", 0, KEY_READ, 0, &key, &disposition) != ERROR_SUCCESS) break; for (int i = 0; ;i++, m++) |