summaryrefslogtreecommitdiff
path: root/doc/Makefile
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:01:52 +0300
commit3c339a74d1b9dba23d60d6c769d99227d75cc6dc (patch)
tree209a057ea7727597ce469f2a5aa6268b1b7e0ce9 /doc/Makefile
parent2752816f0b48a3053b501fb727dbf303a0d9a5f0 (diff)
downloadapk-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/Makefile')
0 files changed, 0 insertions, 0 deletions