]> err.no Git - systemd/commitdiff
logind: be a bit more rigid with seat names
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 23:48:59 +0000 (01:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 23:48:59 +0000 (01:48 +0200)
src/logind-seat.c
src/logind.h

index 1bc0570517bdcb8f33b11aa4f5e09a9b33e675ec..b8f1f607d09f8f13eab19849aed3db306d966784 100644 (file)
@@ -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;
 }
index 97cfc90ebdf702639855c12e5f66fd96b4578501..8da409bb93b0024d8cd6d4c6f19b6e49ab6814e9 100644 (file)
@@ -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