]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check that lseek(2) succeeds and puts us where we expect. [1]
authorcperciva <cperciva@FreeBSD.org>
Fri, 23 May 2008 05:01:29 +0000 (05:01 +0000)
committercperciva <cperciva@FreeBSD.org>
Fri, 23 May 2008 05:01:29 +0000 (05:01 +0000)
commit8ae6743fcd2d34f030e006f8b78ec059408646b1
treebb7415e382f20a44bf7771c096d9441d02582068
parentedcc4efbbbba8f8af9957735bf0333cf36665ced
Check that lseek(2) succeeds and puts us where we expect. [1]

While we're here, fix a long-standing bug in the handling of write(2)
errors: The API changed from "return # of bytes written" to "return
status code" almost 4 years ago, so instead of returning (-1) we need
to return ARCHIVE_FATAL.

Found by: Coverity Prevent [1]
lib/libarchive/archive_read_data_into_fd.c