diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-03-31 10:07:21 +0200 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-03-31 15:48:03 +0200 |
commit | 4fa744a35cd5f6dd18cd38f79a1b6a1c9547fd16 (patch) | |
tree | b4913f33bc795668ff3c383dc09f7a71453b9175 /src/portable/portable.c | |
parent | fileio: introduce take_fdopen{_unlocked}() variant (diff) | |
download | systemd-4fa744a35cd5f6dd18cd38f79a1b6a1c9547fd16.tar.xz systemd-4fa744a35cd5f6dd18cd38f79a1b6a1c9547fd16.zip |
*: convert amenable fdopen calls to take_fdopen
Mechanical change to eliminate some cruft by using the
new take_fdopen{_unlocked}() wrappers where trivial.
Diffstat (limited to 'src/portable/portable.c')
-rw-r--r-- | src/portable/portable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c index e18826ab26..58e4a6670d 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -1092,10 +1092,9 @@ static int test_chroot_dropin( return log_debug_errno(errno, "Failed to open %s/%s: %m", where, p); } - r = fdopen_unlocked(fd, "r", &f); + r = take_fdopen_unlocked(&fd, "r", &f); if (r < 0) return log_debug_errno(r, "Failed to convert file handle: %m"); - TAKE_FD(fd); r = read_line(f, LONG_LINE_MAX, &line); if (r < 0) |