Skip to content
Snippets Groups Projects
Commit cd7357a4 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

journal: rollback previous ineffective fix

parent 20421438
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,7 @@
static inline int sfread(void *dst, size_t len, int fd)
{
ssize_t ret = read(fd, dst, len);
return ret >= 0 && ret == len;
return read(fd, dst, len) == len;
}
static inline int sfwrite(const void *src, size_t len, int fd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment