(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:
		| @@ -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) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund