refactor
This commit is contained in:
@ -197,8 +197,9 @@ auto remote_server::fuse_fgetattr(
|
|||||||
static_cast<const char *>(__FUNCTION__),
|
static_cast<const char *>(__FUNCTION__),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
r_stat = {};
|
||||||
|
|
||||||
const auto file_path = construct_path(path);
|
const auto file_path = construct_path(path);
|
||||||
memset(&r_stat, 0, sizeof(remote::stat));
|
|
||||||
|
|
||||||
auto res{
|
auto res{
|
||||||
has_compat_open_info(handle, EBADF),
|
has_compat_open_info(handle, EBADF),
|
||||||
@ -301,8 +302,9 @@ auto remote_server::fuse_getattr(const char *path, remote::stat &r_st,
|
|||||||
static_cast<const char *>(__FUNCTION__),
|
static_cast<const char *>(__FUNCTION__),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
r_st = {};
|
||||||
|
|
||||||
const auto file_path = construct_path(path);
|
const auto file_path = construct_path(path);
|
||||||
memset(&r_st, 0, sizeof(remote::stat));
|
|
||||||
|
|
||||||
directory = utils::file::directory(file_path).exists();
|
directory = utils::file::directory(file_path).exists();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user