summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-internals.c
diff options
context:
space:
mode:
authorThiago Macieira <thiago@kde.org>2006-10-24 20:25:01 +0000
committerThiago Macieira <thiago@kde.org>2006-10-24 20:25:01 +0000
commit9bb44a470ffd4eace9307b47be37f9ccab276eec (patch)
tree03a1010e6c18855b2d38b962bd54d994d0d5e52e /dbus/dbus-internals.c
parentcb905b58f068ba68ca8f6645b2c4e9b51ec61e3e (diff)
* dbus/dbus-sysdeps.h:
* dbus/dbus-sysdeps-unix.c: Add function _dbus_make_file_world_readable that chmods a file to 0644. * dbus/dbus-sysdeps-unix.c (_dbus_get_autolaunch_address): Avoid writing to the static "argv" array, thereby avoiding a COW on the child process. * dbus/dbus-internals.c (_dbus_create_uuid_file_exclusively): call _dbus_make_file_world_readable on the created file.
Diffstat (limited to 'dbus/dbus-internals.c')
-rw-r--r--dbus/dbus-internals.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
index 73e8e086..961e7269 100644
--- a/dbus/dbus-internals.c
+++ b/dbus/dbus-internals.c
@@ -639,6 +639,8 @@ _dbus_create_uuid_file_exclusively (const DBusString *filename,
if (!_dbus_string_save_to_file (&encoded, filename, error))
goto error;
+ if (!_dbus_make_file_world_readable (filename, error))
+ goto error;
_dbus_string_free (&encoded);