summaryrefslogtreecommitdiff
path: root/src/home
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-17 14:12:48 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-17 14:14:31 +0100
commitdd3c82529472b891c58995fca1f36686c45f856b (patch)
tree74a55d1cb82a122be25215c6c40a174d5b5bdf1c /src/home
parent305dd91adfde332e7e5c1b2470edb32774f9a032 (diff)
downloadsystemd-dd3c82529472b891c58995fca1f36686c45f856b.tar.gz
tmpfile-util: Introduce fopen_temporary_child()
Instead of having fopen_temporary() create the file either next to an existing file or in tmp/, let's split this up clearly into two different functions, one for creating temporary files next to existing files, and one for creating a temporary file in a directory.
Diffstat (limited to 'src/home')
-rw-r--r--src/home/homework-cifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homework-cifs.c b/src/home/homework-cifs.c
index e79def3dae..8ad1da6303 100644
--- a/src/home/homework-cifs.c
+++ b/src/home/homework-cifs.c
@@ -64,7 +64,7 @@ int home_setup_cifs(
pid_t mount_pid;
int exit_status;
- r = fopen_temporary(NULL, &f, &p);
+ r = fopen_temporary_child(NULL, &f, &p);
if (r < 0)
return log_error_errno(r, "Failed to create temporary credentials file: %m");