xorg-x11-xtrans-devel/xtrans-1.1-abstract.patch
2008-05-06 18:07:08 +00:00

13 lines
523 B
Diff

diff -up xtrans-1.1/Xtranssock.c.foo xtrans-1.1/Xtranssock.c
--- xtrans-1.1/Xtranssock.c.foo 2008-05-06 13:48:07.000000000 -0400
+++ xtrans-1.1/Xtranssock.c 2008-05-06 13:47:51.000000000 -0400
@@ -1148,7 +1148,7 @@ TRANS(SocketUNIXCreateListener) (XtransC
#else
mode = 0777;
#endif
- if (trans_mkdir(UNIX_DIR, mode) == -1) {
+ if (!abstract && trans_mkdir(UNIX_DIR, mode) == -1) {
PRMSG (1, "SocketUNIXCreateListener: mkdir(%s) failed, errno = %d\n",
UNIX_DIR, errno, 0);
(void) umask (oldUmask);