journal: fix incorrect errno reporting
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:06 +0000 (13:44 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:06 +0000 (13:44 +0100)
commitc3753458fc30f35b7c2d2c5d5873198cd18131d8
treed3edc8bd9489567ea3782b23f4587efaea409463
parent77ba8233f70719ddd53373f98c53c5cfd5ff13c7
journal: fix incorrect errno reporting

pread() returns -1 on error and sets errno. Do not use the -1 as errno.
src/journal/journald-native.c