g_file_copy: Don't set GError when we intend to ignore errors
authorColin Walters <walters@verbum.org>
Thu, 3 Apr 2014 18:05:45 +0000 (14:05 -0400)
committerColin Walters <walters@verbum.org>
Thu, 10 Apr 2014 00:22:38 +0000 (20:22 -0400)
For better or worse, the current g_file_copy intention was to ignore
errors copying metadata, but we still set the GError, while returning
TRUE.

https://bugzilla.gnome.org/show_bug.cgi?id=727559

gio/gfile.c

index 78f0d29..ae2dfb9 100644 (file)
@@ -3252,7 +3252,7 @@ file_copy_fallback (GFile                  *source,
                                        info,
                                        G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
                                        cancellable,
-                                       error);
+                                       NULL);
     }
 
   g_clear_object (&info);