(get_local_xsocket): Generate the /tmp/.X11-unix directory with the

sticky bit set.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@747 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-09-15 22:06:47 +00:00
parent 18808fa9cd
commit b511fcdd77

View File

@@ -99,8 +99,11 @@ get_local_xsocket (int *num)
int fd; int fd;
struct sockaddr_un addr; struct sockaddr_un addr;
int dpy; int dpy;
int oldmask;
oldmask = umask(0);
mkdir (TMPX11, 01777); mkdir (TMPX11, 01777);
umask (oldmask);
fd = socket (AF_UNIX, SOCK_STREAM, 0); fd = socket (AF_UNIX, SOCK_STREAM, 0);
if (fd < 0) { if (fd < 0) {