Commit e6061ab2 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

logind: make sure to create/run/systemd/sessions before we try to place a fifo in it

parent 530345e7
...@@ -787,6 +787,10 @@ int session_create_fifo(Session *s) { ...@@ -787,6 +787,10 @@ int session_create_fifo(Session *s) {
/* Create FIFO */ /* Create FIFO */
if (!s->fifo_path) { if (!s->fifo_path) {
r = safe_mkdir("/run/systemd/sessions", 0755, 0, 0);
if (r < 0)
return r;
if (asprintf(&s->fifo_path, "/run/systemd/sessions/%s.ref", s->id) < 0) if (asprintf(&s->fifo_path, "/run/systemd/sessions/%s.ref", s->id) < 0)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment