summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logind-seat.c3
-rw-r--r--src/logind.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index 1bc0570517..b8f1f607d0 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 97cfc90ebd..8da409bb93 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