Compare commits

..

No commits in common. "a613ec77ff50a02858593665429315e49fce9155" and "28d1789f04c0b9301808def0afb2cd9e058948fa" have entirely different histories.

View File

@ -1122,10 +1122,8 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options,
auto relative_path = utils::string::to_utf8(file_name);
auto file_path = construct_path(relative_path);
exists = utils::file::file{file_path}.exists() ||
utils::file::directory{file_path}.exists()
? 1
: 0;
exists = static_cast<BOOLEAN>(utils::file::file{file_path}.exists() ||
utils::file::directory{file_path}.exists());
auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)};
if (exists == 0U) {
if ((create_options & FILE_DIRECTORY_FILE) != 0U) {
@ -1169,7 +1167,6 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options,
utils::unix_error_to_windows((res < 0) ? errno : 0));
}
fmt::println("{}|{}|{}", file_path, exists, ret);
RAISE_REMOTE_FUSE_SERVER_EVENT(function_name, file_path, ret);
return ret;
}