| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
|
| 3 |
#include <stdio.h> |
| 4 |
|
| 5 |
#include "analyze.h" |
| 6 |
#include "analyze-unit-paths.h" |
| 7 |
#include "path-lookup.h" |
| 8 |
#include "strv.h" |
| 9 |
|
| 10 |
int verb_unit_paths(int argc, char *argv[], uintptr_t _data, void *userdata) { |
| 11 |
_cleanup_(lookup_paths_done) LookupPaths paths = {}; |
| 12 |
int r; |
| 13 |
|
| 14 |
r = lookup_paths_init_or_warn(&paths, arg_runtime_scope, 0, NULL); |
| 15 |
if (r < 0) |
| 16 |
return r; |
| 17 |
|
| 18 |
STRV_FOREACH(p, paths.search_path) |
| 19 |
puts(*p); |
| 20 |
|
| 21 |
return 0; |
| 22 |
} |