From 1c9a2c1047a6387e0f22801c72760d0d282960d5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 29 Jun 2011 01:48:59 +0200 Subject: [PATCH] logind: be a bit more rigid with seat names --- src/logind-seat.c | 3 +++ src/logind.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/logind-seat.c b/src/logind-seat.c index 1bc05705..b8f1f607 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 97cfc90e..8da409bb 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 -- 2.39.5