diff options
Diffstat (limited to 'src/basic/conf-files.c')
-rw-r--r-- | src/basic/conf-files.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/conf-files.c b/src/basic/conf-files.c index 7c85022f08..a0d17e8a0e 100644 --- a/src/basic/conf-files.c +++ b/src/basic/conf-files.c @@ -207,7 +207,7 @@ int conf_files_insert(char ***strv, const char *root, char **dirs, const char *p _cleanup_free_ char *rdir = NULL; char *p1, *p2; - rdir = prefix_root(root, *dir); + rdir = path_join(root, *dir); if (!rdir) return -ENOMEM; @@ -221,7 +221,7 @@ int conf_files_insert(char ***strv, const char *root, char **dirs, const char *p if (p2) { /* Our new entry has higher priority */ - t = prefix_root(root, path); + t = path_join(root, path); if (!t) return log_oom(); @@ -238,7 +238,7 @@ int conf_files_insert(char ***strv, const char *root, char **dirs, const char *p } /* The new file has lower priority than all the existing entries */ - t = prefix_root(root, path); + t = path_join(root, path); if (!t) return -ENOMEM; @@ -313,7 +313,7 @@ int conf_files_list_with_replacement( if (r < 0) return log_error_errno(r, "Failed to extend config file list: %m"); - p = prefix_root(root, replacement); + p = path_join(root, replacement); if (!p) return log_oom(); } |