mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 04:19:21 +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:
parent
7ab59dee94
commit
b8670a4764
@ -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>
|
||||
|
||||
* fhandler_disk_file.cc (DIR_NUM_ENTRIES): New define determining
|
||||
|
@ -1257,6 +1257,8 @@ fhandler_disk_file::mkdir (mode_t mode)
|
||||
#endif
|
||||
res = 0;
|
||||
}
|
||||
else if (pc.exists ())
|
||||
set_errno (EEXIST);
|
||||
else
|
||||
__seterrno ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user