chiark / gitweb /
fs-util: use _cleanup_close_ attribute
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 21 Jan 2018 10:07:10 +0000 (19:07 +0900)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:12 +0000 (07:50 +0200)
commit5316104a4b756b0fa2261f60d41df47dd6e7feeb
tree7d8d5426e674c4a76a65afa2c65cc636a075f918
parent423978fc39d86474b46c1be4d4511941fb584dff
fs-util: use _cleanup_close_ attribute

The commit f14f1806e329fe92d01f15c22a384702f0cb4ae0 introduced CHASE_SAFE
flag. When the flag is set, then `fd_parent` may not be properly closed.
This sets `_cleanup_close_` attribute to `fd_parent`.
Thus, now `fd_parent` is always closed properly.
src/basic/fs-util.c