Jinoh Kang (@iamahuman) commented about server/fd.c:
if (errno != EEXIST && errno != ENOTDIR && errno != ENOTEMPTY)
{
file_set_error();
goto ret;
}
- }
- if (i >= 0x8000)
- {
set_error( STATUS_UNSUCCESSFUL );
goto ret;
- }
- if (!is_dir)
- {
/* we can't just do rename(2) here; renaming a file to its hardlink is no-op */
if (linkat( dirfd, tmpname, dirfd, dstname, 0 ) && errno != EEXIST)
Ditto.