This commit is contained in:
2024-08-23 14:51:50 -05:00
parent b6eab4a932
commit 00a5f155ad

View File

@ -197,8 +197,9 @@ auto remote_server::fuse_fgetattr(
static_cast<const char *>(__FUNCTION__),
};
r_stat = {};
const auto file_path = construct_path(path);
memset(&r_stat, 0, sizeof(remote::stat));
auto res{
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__),
};
r_st = {};
const auto file_path = construct_path(path);
memset(&r_st, 0, sizeof(remote::stat));
directory = utils::file::directory(file_path).exists();