diff options
-rw-r--r-- | rpmio/rpmio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index b7d0faf0d..853897093 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -382,7 +382,7 @@ static ssize_t fdWrite(FDSTACK_t fps, const void * buf, size_t count) static int fdSeek(FDSTACK_t fps, off_t pos, int whence) { - return lseek(fps->fdno, pos, whence); + return (lseek(fps->fdno, pos, whence) == -1) ? -1 : 0; } static int fdClose(FDSTACK_t fps) |