fix
This commit is contained in:
@@ -696,6 +696,8 @@ auto fuse_drive::open_impl(std::string api_path,
|
||||
|
||||
auto fuse_drive::opendir_impl(std::string api_path,
|
||||
struct fuse_file_info *file_info) -> api_error {
|
||||
file_info->fh = 0U;
|
||||
|
||||
auto mask = (O_RDONLY != (file_info->flags & O_ACCMODE) ? W_OK : R_OK) | X_OK;
|
||||
auto res = check_access(api_path, mask);
|
||||
if (res != api_error::success) {
|
||||
|
@@ -553,7 +553,7 @@ TYPED_TEST(fuse_test, create_open_fails_if_path_does_not_exist) {
|
||||
O_WRONLY,
|
||||
};
|
||||
|
||||
std::string file_name{"create_test"};
|
||||
std::string file_name{"create_test_not_found"};
|
||||
auto file_path = this->create_file_path(file_name);
|
||||
|
||||
for (const auto &flags : ops) {
|
||||
|
Reference in New Issue
Block a user