diff --git a/src/fdstream.c b/src/fdstream.c index 5d80fc23fcdb520fa733e7d7b9cb635549e23e0b..b8ea86e435816d10f825501cf08f468f7029f628 100644 --- a/src/fdstream.c +++ b/src/fdstream.c @@ -610,7 +610,7 @@ virFDStreamOpenFileInternal(virStreamPtr st, } if (offset && - lseek(fd, offset, SEEK_SET) != offset) { + lseek(fd, offset, SEEK_SET) < 0) { virReportSystemError(errno, _("Unable to seek %s to %llu"), path, offset);