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