chiark / gitweb /
libsystemd-logind: fix detection of session/user/machine of a PID
[elogind.git] / src / login / logind-session.c
index 93e4037231faeb2742e24015665779d703d2f7e0..6e1bf6d560cfef49fe5a8bd499b4341a4974126b 100644 (file)
@@ -467,7 +467,7 @@ static int session_start_scope(Session *s) {
         dbus_error_init(&error);
 
         if (!s->scope) {
         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();
 
                 if (!s->scope)
                         return log_oom();