]> git.ipfire.org Git - thirdparty/systemd.git/commit
portable: use parse_env_file_fd to keep FD valid
authorLuca Boccassi <bluca@debian.org>
Thu, 23 Mar 2023 01:02:47 +0000 (01:02 +0000)
committerLuca Boccassi <bluca@debian.org>
Tue, 28 Mar 2023 09:36:01 +0000 (10:36 +0100)
commit62b7c23f79bcbcbc141c90c3a0931fa46a1652a2
tree3cc65621bc5e472396d6ce9f5fc13d377cac02f4
parent2ed74695b310207deca33fcc95a890b0fdb9e622
portable: use parse_env_file_fd to keep FD valid

take_fdopen_unlocked invalidates the FD in the PortableMetadata object,
so it cannot be used later. Use parse_env_file_fd instead which is non
destructive.
src/portable/portable.c