summaryrefslogtreecommitdiff
path: root/Xtranslcl.c
diff options
context:
space:
mode:
authorArvind Umrao <arvind.umrao@oracle.com>2011-09-20 22:56:52 +0530
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-21 22:26:12 -0700
commitcf39d738086b0a7c668fb3720d64de8d711a1a97 (patch)
tree6530eecaf4a0dd425d3557426350e75a863a0ab5 /Xtranslcl.c
parenta477713b89686480cf59a9c75c0aaeeba2386d0a (diff)
downloadxorg-lib-libxtrans-cf39d738086b0a7c668fb3720d64de8d711a1a97.tar.gz
Removing SUN specific code, let solaris create .X11-pipe with sticky bit on
Alan told me, named pipe support was added around Solaris 2.6 when that was a much better performing transport than Unix sockets on the Solaris kernels of the time. By Solaris 10, Unix sockets had been reimplemented in the kernel to be faster, so they became the default again. In Solaris 11, we don't even have named pipe support in the libxcb library that implements X client connection code now, so the named pipes would only be accessed by code with a different libX11 or a statically linked libX11 from Solaris 2.6-9 Signed-off-by: Arvind Umrao <arvind.umrao@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'Xtranslcl.c')
-rw-r--r--Xtranslcl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Xtranslcl.c b/Xtranslcl.c
index ff0a62a..b95a341 100644
--- a/Xtranslcl.c
+++ b/Xtranslcl.c
@@ -742,15 +742,11 @@ TRANS(NAMEDOpenPipe)(const char *server_path)
struct stat sbuf;
int mode;
-#if defined(sun) && defined(X11_t)
- mode = 0775; /* Solaris requires uid or gid 0 to create X11 pipes */
-#else
#ifdef HAS_STICKY_DIR_BIT
mode = 01777;
#else
mode = 0777;
#endif
-#endif
if (trans_mkdir(X_STREAMS_DIR, mode) == -1) {
PRMSG (1, "NAMEDOpenPipe: mkdir(%s) failed, errno = %d\n",
X_STREAMS_DIR, errno, 0);