[gvfs/gnome-3-38] smb: Set fast content type independently of other attributes



commit ddd896548c2872abea96f4afcd995d3badd8f87e
Author: Ondrej Holy <oholy redhat com>
Date:   Mon Dec 7 08:40:24 2020 +0000

    smb: Set fast content type independently of other attributes
    
    The G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE attribute is currently
    set only if the G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE or some other
    attributes are requested. Thus it is not set when the fast content type
    attribute is requested separately. Let's set the attribute independently
    to fix this issue.
    
    Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/529
    
    
    (cherry picked from commit 81bb725f1d2a8460a30170e419f59a75e42e71db)

 daemon/gvfsbackendsmb.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index 321e9c2b..b8319c60 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -1435,6 +1435,8 @@ set_info_from_stat (GVfsBackendSmb *backend,
 
   if (g_file_attribute_matcher_matches (matcher,
                                        G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE) ||
+      g_file_attribute_matcher_matches (matcher,
+                                        G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE) ||
       g_file_attribute_matcher_matches (matcher,
                                        G_FILE_ATTRIBUTE_STANDARD_ICON) ||
       g_file_attribute_matcher_matches (matcher,


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