Fix use of _dbus_make_file_world_readable.
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Mon, 6 Sep 2010 13:50:16 +0000 (15:50 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 8 Sep 2010 14:19:01 +0000 (16:19 +0200)
dbus/dbus-file-win.c

index 53a3fc5..8b858b0 100644 (file)
@@ -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);