Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-12 03:14:27 +0300
committerChristopher Faylor <me@cgf.cx>2001-11-12 03:14:27 +0300
commit71f90de808505e23c9c28451956742ac362c9ec7 (patch)
tree703ff5445b6db4820c7ceea4f84a06382ffed082 /winsup/utils/path.cc
parent7d3480deef4f9d00215d0326c531ce58cd56478c (diff)
* 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.cc2
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++)