[gvfs] admin: add more read/write flag overrides



commit 48ce5be3d3b073ef44a6989bd8718db3e998ed9f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jun 28 07:01:21 2016 -0700

    admin: add more read/write flag overrides
    
    We can also delete/rename files when going through the admin backend.

 daemon/gvfsbackendadmin.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendadmin.c b/daemon/gvfsbackendadmin.c
index 39a4b9e..8d562f4 100644
--- a/daemon/gvfsbackendadmin.c
+++ b/daemon/gvfsbackendadmin.c
@@ -189,6 +189,10 @@ do_query_info (GVfsBackend *backend,
     (real_info, G_FILE_ATTRIBUTE_ACCESS_CAN_READ, TRUE);
   g_file_info_set_attribute_boolean
     (real_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, TRUE);
+  g_file_info_set_attribute_boolean
+    (real_info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE, TRUE);
+  g_file_info_set_attribute_boolean
+    (real_info, G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME, TRUE);
 
   g_file_info_copy_into (real_info, info);
   g_object_unref (real_info);


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