From: Lennart Poettering Date: Tue, 28 Jun 2011 23:48:59 +0000 (+0200) Subject: logind: be a bit more rigid with seat names X-Git-Tag: v30~108 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=1c9a2c1047a6387e0f22801c72760d0d282960d5 logind: be a bit more rigid with seat names --- diff --git a/src/logind-seat.c b/src/logind-seat.c index 1bc057051..b8f1f607d 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -492,5 +492,8 @@ bool seat_name_is_valid(const char *name) { if (!seat_name_valid_char(*p)) return false; + if (strlen(name) > 255) + return false; + return true; } diff --git a/src/logind.h b/src/logind.h index 97cfc90eb..8da409bb9 100644 --- a/src/logind.h +++ b/src/logind.h @@ -45,6 +45,7 @@ * use device_has_tag() as soon as it is available * trigger based on libudev if available * enumerate recursively with libudev when triggering + * use sysfs in device hash table, not sysname, when fb driver is fixed * * non-local X11 server * reboot/shutdown halt management