|
Bastien Nocera |
af5288 |
From 901fe4058f776cefb4cbea0bd160d2fd1b7f9d3b Mon Sep 17 00:00:00 2001
|
|
Bastien Nocera |
af5288 |
From: Mike Gorse <mgorse@novell.com>
|
|
Bastien Nocera |
af5288 |
Date: Sun, 6 Feb 2011 14:10:09 -0600
|
|
Bastien Nocera |
af5288 |
Subject: [PATCH 2/2] /tmp/at-spi2 should be created with permissions of 0x1777
|
|
Bastien Nocera |
af5288 |
|
|
Bastien Nocera |
af5288 |
---
|
|
Bastien Nocera |
af5288 |
atk-adaptor/bridge.c | 13 +++++++------
|
|
Bastien Nocera |
af5288 |
1 files changed, 7 insertions(+), 6 deletions(-)
|
|
Bastien Nocera |
af5288 |
|
|
Bastien Nocera |
af5288 |
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
|
|
Bastien Nocera |
af5288 |
index 0baf6f8..d03f0c3 100644
|
|
Bastien Nocera |
af5288 |
--- a/atk-adaptor/bridge.c
|
|
Bastien Nocera |
af5288 |
+++ b/atk-adaptor/bridge.c
|
|
Bastien Nocera |
af5288 |
@@ -317,13 +317,14 @@ register_application (SpiBridge * app)
|
|
Bastien Nocera |
af5288 |
if (message)
|
|
Bastien Nocera |
af5288 |
dbus_message_unref (message);
|
|
Bastien Nocera |
af5288 |
|
|
Bastien Nocera |
af5288 |
-/* could this be better, we accept some amount of race in getting the temp name*/
|
|
Bastien Nocera |
af5288 |
-/* make sure the directory exists */
|
|
Bastien Nocera |
af5288 |
-mkdir("/tmp/at-spi2/", S_IRWXU);
|
|
Bastien Nocera |
af5288 |
-app->app_bus_addr = g_malloc(max_addr_length * sizeof(char));
|
|
Bastien Nocera |
af5288 |
+ /* could this be better, we accept some amount of race in getting the temp name*/
|
|
Bastien Nocera |
af5288 |
+ /* make sure the directory exists */
|
|
Bastien Nocera |
af5288 |
+ mkdir ("/tmp/at-spi2/", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX);
|
|
Bastien Nocera |
af5288 |
+ chmod ("/tmp/at-spi2/", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX);
|
|
Bastien Nocera |
af5288 |
+ app->app_bus_addr = g_malloc(max_addr_length * sizeof(char));
|
|
Bastien Nocera |
af5288 |
#ifndef DISABLE_P2P
|
|
Bastien Nocera |
af5288 |
-sprintf(app->app_bus_addr, "unix:path=/tmp/at-spi2/socket-%d-%d", getpid(),
|
|
Bastien Nocera |
af5288 |
-rand());
|
|
Bastien Nocera |
af5288 |
+ sprintf (app->app_bus_addr, "unix:path=/tmp/at-spi2/socket-%d-%d", getpid(),
|
|
Bastien Nocera |
af5288 |
+ rand());
|
|
Bastien Nocera |
af5288 |
#else
|
|
Bastien Nocera |
af5288 |
app->app_bus_addr [0] = '\0';
|
|
Bastien Nocera |
af5288 |
#endif
|
|
Bastien Nocera |
af5288 |
--
|
|
Bastien Nocera |
af5288 |
1.7.4
|
|
Bastien Nocera |
af5288 |
|