Compare commits
No commits in common. "a613ec77ff50a02858593665429315e49fce9155" and "28d1789f04c0b9301808def0afb2cd9e058948fa" have entirely different histories.
a613ec77ff
...
28d1789f04
@ -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 relative_path = utils::string::to_utf8(file_name);
|
||||||
auto file_path = construct_path(relative_path);
|
auto file_path = construct_path(relative_path);
|
||||||
exists = utils::file::file{file_path}.exists() ||
|
exists = static_cast<BOOLEAN>(utils::file::file{file_path}.exists() ||
|
||||||
utils::file::directory{file_path}.exists()
|
utils::file::directory{file_path}.exists());
|
||||||
? 1
|
|
||||||
: 0;
|
|
||||||
auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)};
|
auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)};
|
||||||
if (exists == 0U) {
|
if (exists == 0U) {
|
||||||
if ((create_options & FILE_DIRECTORY_FILE) != 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));
|
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);
|
RAISE_REMOTE_FUSE_SERVER_EVENT(function_name, file_path, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user