From 9bb44a470ffd4eace9307b47be37f9ccab276eec Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 24 Oct 2006 20:25:01 +0000 Subject: * 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. --- dbus/dbus-internals.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dbus/dbus-internals.c') 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); -- cgit