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/login/logind-session.c | |
parent | bbc98d32560cc456531bf254f7b69054921082bd (diff) |
util: split-out path-util.[ch]
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index e297d3feeb..475ebcaa5e 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -28,6 +28,7 @@ #include "strv.h" #include "util.h" #include "mkdir.h" +#include "path-util.h" #include "cgroup-util.h" #include "logind-session.h" @@ -49,7 +50,7 @@ Session* session_new(Manager *m, User *u, const char *id) { return NULL; } - s->id = file_name_from_path(s->state_file); + s->id = path_get_file_name(s->state_file); if (hashmap_put(m->sessions, s->id, s) < 0) { free(s->state_file); |