chiark / gitweb /
dbus: add FlushDevices() bus call to reset all seat assignments
[elogind.git] / src / logind-seat.c
index 5663aeea4bb46de06ce996d1cde24f060636ac97..b8f1f607d09f8f13eab19849aed3db306d966784 100644 (file)
@@ -449,6 +449,9 @@ int seat_get_idle_hint(Seat *s, dual_timestamp *t) {
 int seat_check_gc(Seat *s) {
         assert(s);
 
+        if (!s->started)
+                return 0;
+
         if (seat_is_vtconsole(s))
                 return 1;
 
@@ -489,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;
 }