summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-02 02:32:24 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-02 02:34:15 +0200
commit374ec6abf31ada6ca554cc8ea99b282373fac010 (patch)
tree4f560ba006597070e97bcc35da7925c70090d902 /src/login
parentefffb13e0055b9f4749f85dedfbf3ef91cf89fe1 (diff)
libsystemd-logind: fix detection of session/user/machine of a PID
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-machine.c2
-rw-r--r--src/login/logind-session.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-machine.c b/src/login/logind-machine.c
index e4edd40dba..a1342c155e 100644
--- a/src/login/logind-machine.c
+++ b/src/login/logind-machine.c
@@ -235,7 +235,7 @@ static int machine_start_scope(Machine *m) {
if (!escaped)
return log_oom();
- m->scope = strjoin("machine.", m->name, ".scope", NULL);
+ m->scope = strjoin("machine-", m->name, ".scope", NULL);
if (!m->scope)
return log_oom();
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 93e4037231..6e1bf6d560 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -467,7 +467,7 @@ static int session_start_scope(Session *s) {
dbus_error_init(&error);
if (!s->scope) {
- s->scope = strjoin("session.", s->id, ".scope", NULL);
+ s->scope = strjoin("session-", s->id, ".scope", NULL);
if (!s->scope)
return log_oom();