fs-util: add flags parameter to chase_symlinks()

Let's remove chase_symlinks_prefix() and instead introduce a flags parameter to
chase_symlinks(), with a flag CHASE_PREFIX_ROOT that exposes the behaviour of
chase_symlinks_prefix().
This commit is contained in:
Lennart Poettering
2016-12-01 00:25:51 +01:00
parent a4eaf3cf82
commit c4f4fce79e
11 changed files with 45 additions and 48 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ char **path_strv_resolve(char **l, const char *root) {
} else
t = *s;
r = chase_symlinks(t, root, &u);
r = chase_symlinks(t, root, 0, &u);
if (r == -ENOENT) {
if (root) {
u = orig;