From: Lennart Poettering Date: Tue, 17 Jan 2012 13:02:47 +0000 (+0100) Subject: logind: simplify session_activate() a bit X-Git-Tag: v39~36 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=129eebe020118fc1bf0274c9ea75ffb6178a280f;p=systemd logind: simplify session_activate() a bit --- diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 58c70c3d..e78af02f 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -324,7 +324,6 @@ finish: int session_activate(Session *s) { int r; - Session *old_active; assert(s); @@ -343,10 +342,7 @@ int session_activate(Session *s) { if (r < 0) return r; - old_active = s->seat->active; - s->seat->active = s; - - return seat_apply_acls(s->seat, old_active); + return seat_set_active(s->seat, s); } static int session_link_x11_socket(Session *s) { diff --git a/src/login/logind-user.c b/src/login/logind-user.c index 432d6092..717f0e20 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -299,6 +299,8 @@ static int user_create_cgroup(User *u) { static int user_start_service(User *u) { assert(u); + /* FIXME: Fill me in later ... */ + return 0; }