summaryrefslogtreecommitdiffstats
path: root/src/portable/portable.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-03-31 10:07:21 +0200
committerVito Caputo <vcaputo@pengaru.com>2020-03-31 15:48:03 +0200
commit4fa744a35cd5f6dd18cd38f79a1b6a1c9547fd16 (patch)
treeb4913f33bc795668ff3c383dc09f7a71453b9175 /src/portable/portable.c
parentfileio: introduce take_fdopen{_unlocked}() variant (diff)
downloadsystemd-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.c3
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)