* fhandler_procsys.cc (fhandler_procsys::exists): Return virt_none
if path is invalid.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2010-09-02  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
|  | 	* fhandler_procsys.cc (fhandler_procsys::exists): Return virt_none | ||||||
|  | 	if path is invalid. | ||||||
|  |  | ||||||
| 2010-10-01  Christopher Faylor  <me+cygwin@cgf.cx> | 2010-10-01  Christopher Faylor  <me+cygwin@cgf.cx> | ||||||
|  |  | ||||||
| 	* autoload.cc (std_dll_init): Add a retry loop. | 	* autoload.cc (std_dll_init): Add a retry loop. | ||||||
|   | |||||||
| @@ -62,6 +62,8 @@ fhandler_procsys::exists (struct __stat64 *buf) | |||||||
|   InitializeObjectAttributes (&attr, &path, OBJ_CASE_INSENSITIVE, NULL, NULL); |   InitializeObjectAttributes (&attr, &path, OBJ_CASE_INSENSITIVE, NULL, NULL); | ||||||
|   status = NtOpenFile (&h, READ_CONTROL | FILE_READ_ATTRIBUTES, &attr, &io, |   status = NtOpenFile (&h, READ_CONTROL | FILE_READ_ATTRIBUTES, &attr, &io, | ||||||
| 		       FILE_SHARE_VALID_FLAGS, FILE_OPEN_FOR_BACKUP_INTENT); | 		       FILE_SHARE_VALID_FLAGS, FILE_OPEN_FOR_BACKUP_INTENT); | ||||||
|  |   if (status == STATUS_OBJECT_NAME_INVALID) | ||||||
|  |     return virt_none; | ||||||
|   /* If no media is found, or we get this dreaded sharing violation, let |   /* If no media is found, or we get this dreaded sharing violation, let | ||||||
|      the caller immediately try again as normal file. */ |      the caller immediately try again as normal file. */ | ||||||
|   if (status == STATUS_NO_MEDIA_IN_DEVICE |   if (status == STATUS_NO_MEDIA_IN_DEVICE | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user