From 9ed5a60dec4094f1e7e6a7fa1830504e9a09dcff Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 8 Apr 2015 11:16:46 +0300 Subject: unbreak audit after xattr support --- src/io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/io.c b/src/io.c index 5debb5f..e9d95df 100644 --- a/src/io.c +++ b/src/io.c @@ -620,12 +620,11 @@ int apk_fileinfo_get(int atfd, const char *filename, unsigned int flags, } apk_fileinfo_hash_xattr_array(xattrs, apk_checksum_evp(xattr_checksum), &fi->xattr_csum); apk_xattr_array_free(&xattrs); - } else r = errno; + } else if (r < 0) r = errno; close(fd); } else r = errno; if (r && r != ENOTSUP) return -r; - } if (checksum == APK_CHECKSUM_NONE) -- cgit v1.2.3-70-g09d2