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:01:52 +0300 |
commit | 3c339a74d1b9dba23d60d6c769d99227d75cc6dc (patch) | |
tree | 209a057ea7727597ce469f2a5aa6268b1b7e0ce9 /doc/apk-cache.8.scd | |
parent | 2752816f0b48a3053b501fb727dbf303a0d9a5f0 (diff) | |
download | apk-tools-3c339a74d1b9dba23d60d6c769d99227d75cc6dc.tar.gz apk-tools-3c339a74d1b9dba23d60d6c769d99227d75cc6dc.tar.bz2 apk-tools-3c339a74d1b9dba23d60d6c769d99227d75cc6dc.tar.xz apk-tools-3c339a74d1b9dba23d60d6c769d99227d75cc6dc.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 'doc/apk-cache.8.scd')
0 files changed, 0 insertions, 0 deletions