mirror of
https://github.com/systemd/systemd.git
synced 2025-02-18 21:57:48 +03:00
logind: move X11 socket
This commit is contained in:
parent
129eebe020
commit
fc3c1c6e09
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user