]> git.ipfire.org Git - thirdparty/systemd.git/commit
execute: Pass AT_FDCWD instead of -1
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 13 Dec 2022 10:50:01 +0000 (10:50 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Dec 2022 13:00:34 +0000 (22:00 +0900)
commit661e4251a5b157d1aee1df98fbd2f0c95285ebba
tree303e209cc74e364e861d458a5bd10304580ccbf0
parent99173cafbe9ed2899832a2a39aaf0dbc14d5d93c
execute: Pass AT_FDCWD instead of -1

Let's enforce that callers pass AT_FDCWD as read_dfd to load_credential()
to avoid an assert() in read_full_file_full() if read_dfd is -1.
src/core/execute.c