diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-17 14:03:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-18 13:56:02 +0100 |
commit | fc3c1c6e091ea16ad5600b145201ec535bbb5d7c (patch) | |
tree | 5c4cb09243e7c2649e6c80b19aa2c0a55bd0eea7 /src/login/logind-session.c | |
parent | 129eebe020118fc1bf0274c9ea75ffb6178a280f (diff) |
logind: move X11 socket
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index e78af02f05..bb802e5fc2 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -376,15 +376,13 @@ static int session_link_x11_socket(Session *s) { return -ENOENT; } - t = strappend(s->user->runtime_path, "/X11/display"); + t = strappend(s->user->runtime_path, "/X11-display"); if (!t) { log_error("Out of memory"); free(f); return -ENOMEM; } - mkdir_parents(t, 0755); - if (link(f, t) < 0) { if (errno == EEXIST) { unlink(t); @@ -637,7 +635,7 @@ static int session_unlink_x11_socket(Session *s) { s->user->display = NULL; - t = strappend(s->user->runtime_path, "/X11/display"); + t = strappend(s->user->runtime_path, "/X11-display"); if (!t) { log_error("Out of memory"); return -ENOMEM; |