summaryrefslogtreecommitdiff
path: root/test/complicated1.installed
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-04-11 15:01:52 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-04-11 15:06:49 +0300
commit4bcd792194c23fd73912a567101af5fda6e860da (patch)
treee45bef29dbfe031a6abb5360c72b183177858856 /test/complicated1.installed
parent1b954e4120c1565134e9d81296e4fec3ce8e7a7c (diff)
downloadapk-tools-4bcd792194c23fd73912a567101af5fda6e860da.tar.gz
apk-tools-4bcd792194c23fd73912a567101af5fda6e860da.tar.bz2
apk-tools-4bcd792194c23fd73912a567101af5fda6e860da.tar.xz
apk-tools-4bcd792194c23fd73912a567101af5fda6e860da.zip
io: fix fd leak in error handling paths
apk_dir_foreach_file and apk_resolve_[ug]id needs to free the fd in case fdopen/fdopendir fails. Additionally this does not rely on fdopen to fail if openat() returned -1, making sure that we don't call any syscalls with invalid file handle.
Diffstat (limited to 'test/complicated1.installed')
0 files changed, 0 insertions, 0 deletions