diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-08 10:43:49 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-28 06:44:38 +0200 |
commit | 4ff361cc8611459388d7f75955bfe645f894f065 (patch) | |
tree | f0fe232aee56d0517cdd0e8b86f1d497afe65f85 /src/basic/tmpfile-util.c | |
parent | path-util: make path_extract_filename/directory() handle "." gracefully (diff) | |
download | systemd-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.c | 6 |
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; } |