summaryrefslogtreecommitdiffstats
path: root/src/basic/tmpfile-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-05-08 10:43:49 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-28 06:44:38 +0200
commit4ff361cc8611459388d7f75955bfe645f894f065 (patch)
treef0fe232aee56d0517cdd0e8b86f1d497afe65f85 /src/basic/tmpfile-util.c
parentpath-util: make path_extract_filename/directory() handle "." gracefully (diff)
downloadsystemd-4ff361cc8611459388d7f75955bfe645f894f065.tar.xz
systemd-4ff361cc8611459388d7f75955bfe645f894f065.zip
tree-wide: always drop unnecessary dot in path
Diffstat (limited to 'src/basic/tmpfile-util.c')
-rw-r--r--src/basic/tmpfile-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/tmpfile-util.c b/src/basic/tmpfile-util.c
index 9eb654c140..91c8ff1725 100644
--- a/src/basic/tmpfile-util.c
+++ b/src/basic/tmpfile-util.c
@@ -126,7 +126,7 @@ int tempfn_xxxxxx(const char *p, const char *extra, char **ret) {
if (!path_extend(&d, nf))
return -ENOMEM;
- *ret = path_simplify(TAKE_PTR(d), false);
+ *ret = path_simplify(TAKE_PTR(d));
} else
*ret = TAKE_PTR(nf);
@@ -168,7 +168,7 @@ int tempfn_random(const char *p, const char *extra, char **ret) {
if (!path_extend(&d, nf))
return -ENOMEM;
- *ret = path_simplify(TAKE_PTR(d), false);
+ *ret = path_simplify(TAKE_PTR(d));
} else
*ret = TAKE_PTR(nf);
@@ -213,7 +213,7 @@ int tempfn_random_child(const char *p, const char *extra, char **ret) {
*x = 0;
- *ret = path_simplify(t, false);
+ *ret = path_simplify(t);
return 0;
}