* path.cc (symlink_info::check): Return with error set to ENOENT if

STATUS_NO_MEDIA_IN_DEVICE is returned.
This commit is contained in:
Corinna Vinschen 2009-06-08 15:22:52 +00:00
parent 71f53a2f62
commit 590f450aa9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-06-08 Corinna Vinschen <corinna@vinschen.de>
* path.cc (symlink_info::check): Return with error set to ENOENT if
STATUS_NO_MEDIA_IN_DEVICE is returned.
2009-06-07 Christopher Faylor <me+cygwin@cgf.cx>
* cygheap.h (mini_cygheap): New struct.

View File

@ -2268,7 +2268,8 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt,
error in get_nt_native_path. Both status codes are deliberately
not tested here unless proved necessary. */
if (status == STATUS_OBJECT_PATH_NOT_FOUND
|| status == STATUS_OBJECT_NAME_INVALID)
|| status == STATUS_OBJECT_NAME_INVALID
|| status == STATUS_NO_MEDIA_IN_DEVICE)
{
set_error (ENOENT);
goto file_not_symlink;