diff options
author | Kay Sievers <kay@vrfy.org> | 2012-05-07 21:36:12 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-05-08 02:33:10 +0200 |
commit | 9eb977db5b89b44f254ab40c1876a76b7d7ea2d0 (patch) | |
tree | d73a79d15c67aea358006832a1187ce66486b940 /src/core/manager.c | |
parent | bbc98d32560cc456531bf254f7b69054921082bd (diff) |
util: split-out path-util.[ch]
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 62222e6c7a..c6baf22ae5 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -65,6 +65,7 @@ #include "virt.h" #include "watchdog.h" #include "cgroup-util.h" +#include "path-util.h" /* As soon as 16 units are in our GC queue, make sure to run a gc sweep */ #define GC_QUEUE_ENTRIES_MAX 16 @@ -785,7 +786,7 @@ int manager_load_unit_prepare(Manager *m, const char *name, const char *path, DB } if (!name) - name = file_name_from_path(path); + name = path_get_file_name(path); t = unit_name_to_type(name); |