diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-27 22:44:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-27 22:44:12 +0200 |
commit | 4d6d6518c301c844be59c1b3a0d2092a3218572f (patch) | |
tree | cd41151f7bcecd6eaf1694c2146cb9cef2701952 /src/logind-user.c | |
parent | cd58752a158ccab3db77d355410b31b457df4cfc (diff) |
logind: automatically deduce seat from display
Diffstat (limited to 'src/logind-user.c')
-rw-r--r-- | src/logind-user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logind-user.c b/src/logind-user.c index 63033e0fd3..dff317e6bd 100644 --- a/src/logind-user.c +++ b/src/logind-user.c @@ -177,7 +177,7 @@ int user_load(User *u) { free(display); } - if (s && s->display && x11_display_is_local(s->display)) + if (s && s->display && display_is_local(s->display)) u->display = s; return r; @@ -234,9 +234,9 @@ static int user_create_cgroup(User *u) { r = cg_create(SYSTEMD_CGROUP_CONTROLLER, p); if (r < 0) { + log_error("Failed to create cgroup "SYSTEMD_CGROUP_CONTROLLER":%s: %s", p, strerror(-r)); free(p); u->cgroup_path = NULL; - log_error("Failed to create cgroup "SYSTEMD_CGROUP_CONTROLLER":%s: %s", p, strerror(-r)); return r; } |