diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-04-11 15:01:52 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-04-11 15:06:49 +0300 |
commit | 4bcd792194c23fd73912a567101af5fda6e860da (patch) | |
tree | e45bef29dbfe031a6abb5360c72b183177858856 /test/complicated1.installed | |
parent | 1b954e4120c1565134e9d81296e4fec3ce8e7a7c (diff) | |
download | apk-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