rewrite SMTPFileSystem::opendir()
This commit is contained in:
parent
4ba18fbc62
commit
85ef18c514
|
@ -695,8 +695,11 @@ int SMTPFileSystem::fsync(const char *path, int datasync,
|
|||
int SMTPFileSystem::opendir(const char *path, struct fuse_file_info *file_info)
|
||||
{
|
||||
const TypeDir *content = m_device.dirFetchContent(std::string(path));
|
||||
if (!content)
|
||||
return -ENOENT;
|
||||
if (!content) {
|
||||
errno = ENOENT;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue