From: Marcus Brinkmann Date: Mon, 6 Sep 2010 13:50:16 +0000 (+0200) Subject: Fix use of _dbus_make_file_world_readable. X-Git-Tag: dbus-1.4.1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86db8cb7f4d4ed406aaaf0ffc09b75e4d24729aa;p=thirdparty%2Fdbus.git Fix use of _dbus_make_file_world_readable. --- diff --git a/dbus/dbus-file-win.c b/dbus/dbus-file-win.c index 53a3fc5b9..8b858b021 100644 --- a/dbus/dbus-file-win.c +++ b/dbus/dbus-file-win.c @@ -275,7 +275,10 @@ _dbus_string_save_to_file (const DBusString *str, goto out; } if (world_readable) - _dbus_make_file_world_readable (tmp_filename_c); + { + if (! _dbus_make_file_world_readable (tmp_filename, error)) + goto out; + } _dbus_verbose ("tmp file %s hnd %p opened\n", tmp_filename_c, hnd);