chiark / gitweb /
core: priorize notification fd processing over notification fd process via sd-event...
[elogind.git] / src / login / logind-seat.c
index b1a5ec30efed713e21b7534e12623ce720c8ec9b..c73860478d1619dd71bdfd897fd0d9880ffa2a0a 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) {