4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 12:29:32 +08:00

* fhandler_disk_file.cc (fhandler_disk_file::mkdir): In case or error,

check for existance explicitely and set errno to EEXIST.
This commit is contained in:
Corinna Vinschen 2006-01-28 13:59:39 +00:00
parent 7ab59dee94
commit b8670a4764
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-01-28 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): In case or error,
check for existance explicitely and set errno to EEXIST.
2006-01-28 Corinna Vinschen <corinna@vinschen.de> 2006-01-28 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (DIR_NUM_ENTRIES): New define determining * fhandler_disk_file.cc (DIR_NUM_ENTRIES): New define determining

View File

@ -1257,6 +1257,8 @@ fhandler_disk_file::mkdir (mode_t mode)
#endif #endif
res = 0; res = 0;
} }
else if (pc.exists ())
set_errno (EEXIST);
else else
__seterrno (); __seterrno ();