summaryrefslogtreecommitdiff
path: root/src/home/homed-home.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-03-31 01:07:21 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-03-31 06:48:03 -0700
commit4fa744a35cd5f6dd18cd38f79a1b6a1c9547fd16 (patch)
treeb4913f33bc795668ff3c383dc09f7a71453b9175 /src/home/homed-home.c
parent3ebbb6cb394f8a328a9bba782e3b1cbeac4d9a7b (diff)
downloadsystemd-4fa744a35cd5f6dd18cd38f79a1b6a1c9547fd16.tar.gz
*: 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/home/homed-home.c')
-rw-r--r--src/home/homed-home.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/home/homed-home.c b/src/home/homed-home.c
index f50de26722..f553419c41 100644
--- a/src/home/homed-home.c
+++ b/src/home/homed-home.c
@@ -360,12 +360,10 @@ static int home_parse_worker_stdout(int _fd, UserRecord **ret) {
if (lseek(fd, SEEK_SET, 0) == (off_t) -1)
return log_error_errno(errno, "Failed to seek to beginning of memfd: %m");
- f = fdopen(fd, "r");
+ f = take_fdopen(&fd, "r");
if (!f)
return log_error_errno(errno, "Failed to reopen memfd: %m");
- TAKE_FD(fd);
-
if (DEBUG_LOGGING) {
_cleanup_free_ char *text = NULL;