diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-04-08 11:16:46 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-04-08 11:16:46 +0300 |
commit | 9ed5a60dec4094f1e7e6a7fa1830504e9a09dcff (patch) | |
tree | c061348fb658e6a2403e960671289bb75b71c90c /src | |
parent | 23d0a2244aa712ca33aa4ea9655298c095b8f0ba (diff) | |
download | apk-tools-9ed5a60dec4094f1e7e6a7fa1830504e9a09dcff.tar.gz apk-tools-9ed5a60dec4094f1e7e6a7fa1830504e9a09dcff.tar.bz2 apk-tools-9ed5a60dec4094f1e7e6a7fa1830504e9a09dcff.tar.xz apk-tools-9ed5a60dec4094f1e7e6a7fa1830504e9a09dcff.zip |
unbreak audit after xattr support
Diffstat (limited to 'src')
-rw-r--r-- | src/io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |