On our solaris systems, I need to do both "-nolisten named" and 
"-nolisten unix" as both /tmp/.X11-pipe and /tmp/.X11-unix are not
writable by users.   However, only the last option on the line is 
passed to os/connections.c.   I've applied the following patch so that
I can say "-nolisten named,unix": (patch against X420src-1.tgz)

diff -ur xc/programs/Xserver/os/connection.c xc.new/programs/Xserver/os/connection.c
--- xc/programs/Xserver/os/connection.c 2001-12-14 14:00:33.000000000 -0600
+++ xc.new/programs/Xserver/os/connection.c     2004-07-27 15:39:18.000000000 -0500
@@ -333,11 +333,16 @@
 
     sprintf (port, "%d", atoi (display));
 
-    if (protNoListen)
-        if (_XSERVTransNoListen(protNoListen))
-        {
-           FatalError ("Failed to disable listen for %s", protNoListen);
+    if (protNoListen) {
+       char *tkn = strtok(protNoListen,":,");
+       while ( tkn ) {
+               if (_XSERVTransNoListen(tkn))
+               {
+                   FatalError ("Failed to disable listen for %s", tkn);
+               }
+               tkn = strtok(NULL, ":,");
        }
+    }
     
     if ((_XSERVTransMakeAllCOTSServerListeners (port, &partial,
        &ListenTransCount, &ListenTransConns) >= 0) &&

-- 
Peter Fales                       Lucent Technologies, Room 1C-436
N9IYJ                             2000 N Naperville Rd PO Box 3033
internet: [EMAIL PROTECTED]       Naperville, IL 60566-7033
                                  work: (630) 979-8031
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to