summaryrefslogtreecommitdiff
path: root/src/logind-user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logind-user.c')
-rw-r--r--src/logind-user.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logind-user.c b/src/logind-user.c
index dff317e6bd..a4f78869a3 100644
--- a/src/logind-user.c
+++ b/src/logind-user.c
@@ -94,6 +94,9 @@ int user_save(User *u) {
assert(u);
assert(u->state_file);
+ if (!u->started)
+ return 0;
+
r = safe_mkdir("/run/systemd/users", 0755, 0, 0);
if (r < 0)
goto finish;