HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

src/analyze/analyze-unit-paths.c

Git blob: 3903166bf29f566d62e9aee8236776105113b050

Lines 1–23 of 23

/* SPDX-License-Identifier: LGPL-2.1-or-later */
 
#include <stdio.h>
 
#include "analyze.h"
#include "analyze-unit-paths.h"
#include "path-lookup.h"
#include "strv.h"
 
int verb_unit_paths(int argc, char *argv[], uintptr_t _data, void *userdata) {
        _cleanup_(lookup_paths_done) LookupPaths paths = {};
        int r;
 
        r = lookup_paths_init_or_warn(&paths, arg_runtime_scope, 0, NULL);
        if (r < 0)
                return r;
 
        STRV_FOREACH(p, paths.search_path)
                puts(*p);
 
        return 0;
}