chiark / gitweb /
__thread --> thread_local for C11 compat
[elogind.git] / src / login / logind-seat.c
index b1a5ec3..c738604 100644 (file)
@@ -51,7 +51,7 @@ Seat *seat_new(Manager *m, const char *id) {
                 return NULL;
         }
 
-        s->id = path_get_file_name(s->state_file);
+        s->id = basename(s->state_file);
         s->manager = m;
 
         if (hashmap_put(m->seats, s->id, s) < 0) {