* 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

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