* syscalls.cc (open): Only return ENOTDIR if file exists.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | 2013-05-21  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
|  | 	* syscalls.cc (open): Only return ENOTDIR if file exists. | ||||||
|  |  | ||||||
| 2013-05-16  Christopher Faylor  <me.cygwin2013@cgf.cx> | 2013-05-16  Christopher Faylor  <me.cygwin2013@cgf.cx> | ||||||
|  |  | ||||||
| 	* sigproc.cc (sig_hold): Delete. | 	* sigproc.cc (sig_hold): Delete. | ||||||
|   | |||||||
| @@ -1360,7 +1360,7 @@ open (const char *unix_path, int flags, ...) | |||||||
| 	      res = -1; | 	      res = -1; | ||||||
| 	      set_errno (ELOOP); | 	      set_errno (ELOOP); | ||||||
| 	    } | 	    } | ||||||
| 	  else if ((flags & O_DIRECTORY) && !fh->pc.isdir ()) | 	  else if ((flags & O_DIRECTORY) && fh->exists () && !fh->pc.isdir ()) | ||||||
| 	    { | 	    { | ||||||
| 	      delete fh; | 	      delete fh; | ||||||
| 	      res = -1; | 	      res = -1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user