rewrite SMTPFileSystem::opendir()

This commit is contained in:
Peter Hatina 2013-09-24 22:07:34 +02:00
parent 4ba18fbc62
commit 85ef18c514
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}