]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: use path_join() where we can
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Jun 2019 10:41:02 +0000 (12:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Jun 2019 10:41:02 +0000 (12:41 +0200)
src/tmpfiles/tmpfiles.c

index eabc51101d992447a0cf1658a5606cab8259a3fd..a3c6847de0dcf75de4c2c77971bd5098af1c4f6e 100644 (file)
@@ -563,7 +563,7 @@ static int dir_cleanup(
                         continue;
                 }
 
-                sub_path = strjoin(p, "/", dent->d_name);
+                sub_path = path_join(p, dent->d_name);
                 if (!sub_path) {
                         r = log_oom();
                         goto finish;