chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
umask: set umask of a number of sockets by default, even though we check creds on...
[elogind.git]
/
src
/
logind-seat.c
diff --git
a/src/logind-seat.c
b/src/logind-seat.c
index 1bc0570517bdcb8f33b11aa4f5e09a9b33e675ec..3cf3958c8d47330d13cac925573238713a54ef55 100644
(file)
--- a/
src/logind-seat.c
+++ b/
src/logind-seat.c
@@
-446,10
+446,10
@@
int seat_get_idle_hint(Seat *s, dual_timestamp *t) {
return idle_hint;
}
return idle_hint;
}
-int seat_check_gc(Seat *s) {
+int seat_check_gc(Seat *s
, bool drop_not_started
) {
assert(s);
assert(s);
- if (!s->started)
+ if (
drop_not_started &&
!s->started)
return 0;
if (seat_is_vtconsole(s))
return 0;
if (seat_is_vtconsole(s))
@@
-492,5
+492,8
@@
bool seat_name_is_valid(const char *name) {
if (!seat_name_valid_char(*p))
return false;
if (!seat_name_valid_char(*p))
return false;
+ if (strlen(name) > 255)
+ return false;
+
return true;
}
return true;
}