Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
71cf13bc
Commit
71cf13bc
authored
Nov 26, 2008
by
Niels Möller
Browse files
(open_x11_socket): Try to create directory /tmp/.X11-unix.
Rev: src/server_x11.c:1.29
parent
fd56fb7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server_x11.c
View file @
71cf13bc
...
...
@@ -166,8 +166,7 @@ make_x11_listen_port(int dir, const struct lsh_string *name,
return
self
;
}
/* FIXME: Create the /tmp/.X11-unix directory, if needed. Figure out
* if and how we should use /tmp/.X17-lock. */
/* FIXME: Figure out if and how we should use /tmp/.X11-lock. */
/* Creates a socket in tmp. Some duplication with io_bind_local in
io.c, but sufficiently different that it doesn't seem practical to
...
...
@@ -189,6 +188,9 @@ open_x11_socket(struct ssh_connection *connection,
int
s
;
struct
lsh_string
*
name
=
NULL
;
if
(
mkdir
(
X11_SOCKET_DIR
,
01777
)
<
0
&&
errno
!=
EEXIST
)
werror
(
"Failed to create `%z' %e
\n
"
,
X11_SOCKET_DIR
,
errno
);
/* We have to change the umask, as that's the only way to control
* the permissions that bind uses. */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment