summaryrefslogtreecommitdiff
path: root/src/login/logind-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-28 17:37:16 +0100
committerLennart Poettering <lennart@poettering.net>2012-10-30 03:40:42 +0100
commit978cf3c75fbd94fd0e046206ada6169b35edd919 (patch)
tree06efe6080b6028160fbfbc103cf00bfd6eaed780 /src/login/logind-dbus.c
parent7ba643863116cd0b5abf048e53321f93e5743f69 (diff)
logind: it's OK if a process on an pty requests a session for seat0
After all, if a sudo/su inside an X terminal should get added to the same session as the X session itself.
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r--src/login/logind-dbus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 4326e5b87c..8b6021d35f 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -415,8 +415,7 @@ static int bus_manager_create_session(Manager *m, DBusMessage *message, DBusMess
if (vtnr != 0)
return -EINVAL;
- } else if (!isempty(tty) && s && seat_is_vtconsole(s))
- return -EINVAL;
+ }
if (s) {
if (seat_can_multi_session(s)) {