* dir.cc (opendir): Propagate any errno from build_fh_name.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | ||||
| 2014-03-09  Christopher Faylor  <me.cygwin2014@cgf.cx> | ||||
|  | ||||
| 	* dir.cc (opendir): Propagate any errno from build_fh_name. | ||||
|  | ||||
| 2014-03-07  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* pwdgrp.h (pwdgrp::is_passwd): New inline method. | ||||
|   | ||||
| @@ -58,6 +58,11 @@ opendir (const char *name) | ||||
|   fh = build_fh_name (name, PC_SYM_FOLLOW); | ||||
|   if (!fh) | ||||
|     res = NULL; | ||||
|   else if (fh->error ()) | ||||
|     { | ||||
|       set_errno (fh->error ()); | ||||
|       res = NULL; | ||||
|     } | ||||
|   else if (fh->exists ()) | ||||
|     res = fh->opendir (-1); | ||||
|   else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user