summaryrefslogtreecommitdiff
path: root/src/shared/path-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-12 02:35:14 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-12 13:35:32 +0100
commitdb594aef549b1376ea80030bd0966ed872eac01e (patch)
tree677a25a680e3492fb1303e2a4373d2178ae59d35 /src/shared/path-util.c
parenta2e22d07c65aa7c1174a381589ad76841a04d100 (diff)
path-util: no need to check whether p is absolute twice
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r--src/shared/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index be03695cf8..b3fe0b8179 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -129,7 +129,7 @@ char *path_make_absolute_cwd(const char *p) {
if (!cwd)
return NULL;
- return path_make_absolute(p, cwd);
+ return strjoin(cwd, "/", p, NULL);
}
int path_make_relative(const char *from_dir, const char *to_path, char **_r) {