[telepathy-gabble/master] chmod 777 stream tube UNIX socket for AccessControlLocalhost

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue May 26 03:23:55 PDT 2009


---
 src/tube-stream.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/tube-stream.c b/src/tube-stream.c
index 58c5107..9c235d3 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1044,6 +1044,13 @@ tube_stream_open (GabbleTubeStream *self,
           g_free (path);
           return FALSE;
         }
+
+      if (priv->access_control == TP_SOCKET_ACCESS_CONTROL_LOCALHOST)
+        {
+          /* Everyone can use the socket */
+          chmod (path, 0777);
+        }
+
       g_free (path);
     }
   else if (priv->address_type == TP_SOCKET_ADDRESS_TYPE_IPV4)
-- 
1.5.6.5



More information about the telepathy-commits mailing list