* dir.cc (mkdir): Reorganize check for trailing dot to return correct error

when directory exists.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Remove special test for
path ending in '.'.
This commit is contained in:
Christopher Faylor
2006-02-04 04:31:34 +00:00
parent 1912201029
commit 324ce34bd5
3 changed files with 9 additions and 8 deletions

View File

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