rewrite SMTPFileSystem::fgetattr()

This commit is contained in:
Peter Hatina 2013-09-24 22:12:09 +02:00
parent 3c0217c38d
commit 592acb26db
1 changed files with 1 additions and 3 deletions

View File

@ -757,9 +757,7 @@ int SMTPFileSystem::ftruncate(const char *path, off_t offset,
int SMTPFileSystem::fgetattr(const char *path, struct stat *buf, fuse_file_info *file_info)
{
if (::fstat(file_info->fh, buf) != 0)
return -errno;
return 0;
return ::fstat(file_info->fh, buf);
}
bool SMTPFileSystem::removeDir(const std::string &dirname)