[gvfs/wip/cosimoc/admin: 84/86] admin: add more read/write flag overrides



commit 58666cc64c21f865fa4edb2f858e82f1f1758faf
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]