summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-27 23:06:34 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-27 23:06:34 +0200
commitaccaeded150b13685b188ea69f4b608d3cfa5463 (patch)
tree1058087a5be4996c3bc9ac635abdaca9aa73acdb /src/logind-seat.c
parent4d6d6518c301c844be59c1b3a0d2092a3218572f (diff)
logind: save object data only when started fully
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r--src/logind-seat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index c232a87d5d..df91cd0d8a 100644
--- a/src/logind-seat.c
+++ b/src/logind-seat.c
@@ -86,6 +86,9 @@ int seat_save(Seat *s) {
assert(s);
+ if (!s->started)
+ return 0;
+
r = safe_mkdir("/run/systemd/seats", 0755, 0, 0);
if (r < 0)
goto finish;