X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fload-fragment.c;h=c2efec6657fa23fb33a708c8349a1e280c47a65d;hp=d24919f998fb0fca4af5d5cb942bced68ce0499f;hb=9eb977db5b89b44f254ab40c1876a76b7d7ea2d0;hpb=bbc98d32560cc456531bf254f7b69054921082bd diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index d24919f99..c2efec665 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -44,6 +44,7 @@ #include "unit-name.h" #include "bus-errors.h" #include "utf8.h" +#include "path-util.h" #ifndef HAVE_SYSV_COMPAT int config_parse_warn_compat( @@ -2089,7 +2090,7 @@ static int open_follow(char **filename, FILE **_f, Set *names, char **_final) { /* Add the file name we are currently looking at to * the names of this unit, but only if it is a valid * unit name. */ - name = file_name_from_path(*filename); + name = path_get_file_name(*filename); if (unit_name_is_valid(name, true)) {