Commit 93864226 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

libc: pread() gefixt

! libc: Commit 750e999c

 hat ein kleines "nicht" vergessen und ist daher
  immer fehlgeschlagen, wenn das seek (das gar nicht da sein sollte)
  geklappt hat. Das ist weniger geschickt, also machen wir das mal
  lieber wieder anders.
Signed-off-by: Kevin Wolf's avatarKevin Wolf <kevin@tyndur.org>
parent 84cbe278
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -467,7 +467,7 @@ ssize_t pread(int fd, void *buf, size_t count, off_t offset)
ret = lio_compat_readahead(buf, count, file);
if (lio_compat_seek(file, old_pos, SEEK_SET)) {
if (!lio_compat_seek(file, old_pos, SEEK_SET)) {
return -1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment