[glib] g_file_copy: Don't set GError when we intend to ignore errors



commit 7089cf89672b70711b0ebe10fdd24cd73f6060d5
Author: Colin Walters <walters verbum org>
Date:   Thu Apr 3 14:05:45 2014 -0400

    g_file_copy: Don't set GError when we intend to ignore errors
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index 78f0d29..ae2dfb9 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -3252,7 +3252,7 @@ file_copy_fallback (GFile                  *source,
                                        info,
                                        G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
                                        cancellable,
-                                       error);
+                                       NULL);
     }
 
   g_clear_object (&info);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]