[bug] Windows-to-Linux remote mount ignores CREATE_NEW #44
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
parent
88398485e1
commit
0603463885
@ -142,16 +142,18 @@ public:
|
||||
granted_access, attributes,
|
||||
allocation_size, &file_desc, &file_info,
|
||||
normalized_name, exists);
|
||||
fmt::println("{}|{}", utils::string::to_utf8(file_name), exists);
|
||||
if (ret == STATUS_SUCCESS) {
|
||||
if (exists == 0U) {
|
||||
#if defined(_WIN32)
|
||||
this->set_client_id(file_desc, client_id);
|
||||
this->set_client_id(file_desc, client_id);
|
||||
#else // !defined(_WIN32)
|
||||
this->set_client_id(
|
||||
static_cast<native_handle>(
|
||||
reinterpret_cast<std::uintptr_t>(file_desc)),
|
||||
client_id);
|
||||
this->set_client_id(
|
||||
static_cast<native_handle>(
|
||||
reinterpret_cast<std::uintptr_t>(file_desc)),
|
||||
client_id);
|
||||
#endif // defined(_WIN32)
|
||||
}
|
||||
|
||||
response.encode(file_desc);
|
||||
response.encode(file_info);
|
||||
response.encode(normalized_name);
|
||||
|
@ -1124,8 +1124,6 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options,
|
||||
auto file_path = construct_path(relative_path);
|
||||
exists = static_cast<BOOLEAN>(utils::file::file{file_path}.exists() ||
|
||||
utils::file::directory{file_path}.exists());
|
||||
fmt::println("{}|{}", file_path, exists);
|
||||
|
||||
auto ret{static_cast<packet::error_type>(STATUS_SUCCESS)};
|
||||
if (exists == 0U) {
|
||||
if ((create_options & FILE_DIRECTORY_FILE) != 0U) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user