diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-17 00:53:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-17 02:43:43 +0200 |
commit | 8f294b45cbb627d31342f6a79444be59ce7e2274 (patch) | |
tree | 04a7e2d96529725ada048da1a8648dd78f13288a /src/shared/util.c | |
parent | 559367add5e22bf32d14fa1496512c68488f48b0 (diff) |
install: make sure that --root= mode doesn't make us consider all units outside of search path
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index d840dedfc6..fe05820395 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -4423,22 +4423,6 @@ int dirent_ensure_type(DIR *d, struct dirent *de) { return 0; } -int in_search_path(const char *path, char **search) { - char **i; - _cleanup_free_ char *parent = NULL; - int r; - - r = path_get_parent(path, &parent); - if (r < 0) - return r; - - STRV_FOREACH(i, search) - if (path_equal(parent, *i)) - return 1; - - return 0; -} - int get_files_in_directory(const char *path, char ***list) { _cleanup_closedir_ DIR *d = NULL; size_t bufsize = 0, n = 0; |