rewrite SMTPFileSystem::read()

This commit is contained in:
Peter Hatina 2013-09-24 21:55:55 +02:00
parent 63035618f8
commit a58979a904
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ int SMTPFileSystem::read(const char *path, char *buf, size_t size,
{
int rval = ::pread(file_info->fh, buf, size, offset);
if (rval < 0)
return -errno;
return -1;
return rval;
}