+2008-12-15 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_registry.cc (fhandler_registry::exists): Handle EACCES.
+ (fhandler_registry::open): Ditto.
+
2008-12-15 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din: Export fgetwc, fgetws, fputwc, fputws, fwide, getwc,
if (!val_only)
hKey = open_key (path, KEY_READ, wow64, false);
- if (hKey != (HKEY) INVALID_HANDLE_VALUE)
+ if (hKey != (HKEY) INVALID_HANDLE_VALUE || get_errno () == EACCES)
file_type = 1;
else
{
handle = open_key (path, KEY_READ, wow64, false);
if (handle == (HKEY) INVALID_HANDLE_VALUE)
{
- handle = open_key (path, KEY_READ, wow64, true);
+ if (get_errno () != EACCES)
+ handle = open_key (path, KEY_READ, wow64, true);
if (handle == (HKEY) INVALID_HANDLE_VALUE)
{
res = 0;