[gvfs] gdaemonfile: Pass GFileCreateFlags in write operations



commit 41a4f6414f0ad663ad000745fbdbd8c64ef7eecd
Author: Ondrej Holy <oholy redhat com>
Date:   Wed Nov 30 14:30:59 2016 +0100

    gdaemonfile: Pass GFileCreateFlags in write operations
    
    Flags are not passed in write operations on the client side currently,
    so the daemons always use G_FILE_CREATE_NONE when writting. Pass the
    flags in to fix this regression...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747412

 client/gdaemonfile.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index ef9ea02..403a2d7 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -3279,6 +3279,7 @@ file_open_write_async (GFile                      *file,
   data->mode = mode;
   data->etag = g_strdup (etag ? etag : "");
   data->make_backup = make_backup;
+  data->flags = flags;
   data->io_priority = io_priority;
   if (cancellable)
     data->cancellable = g_object_ref (cancellable);


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