X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-seat.c;h=c73860478d1619dd71bdfd897fd0d9880ffa2a0a;hb=ea18a4b57e2bb94af7b3ecb7abdaec40e9f485f0;hp=b1a5ec30efed713e21b7534e12623ce720c8ec9b;hpb=c506027af881a9e4210845a7a8a6ec5910aa0f3b;p=elogind.git diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index b1a5ec30e..c73860478 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -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) {