summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-17 14:03:00 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-18 13:56:02 +0100
commitfc3c1c6e091ea16ad5600b145201ec535bbb5d7c (patch)
tree5c4cb09243e7c2649e6c80b19aa2c0a55bd0eea7 /src/login
parent129eebe020118fc1bf0274c9ea75ffb6178a280f (diff)
logind: move X11 socket
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-session.c6
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;