[gvfs/wip/oholy/smb-set-fast-content-type-independently] smb: Set fast content type independently of other attributes
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/oholy/smb-set-fast-content-type-independently] smb: Set fast content type independently of other attributes
- Date: Mon, 7 Dec 2020 08:51:14 +0000 (UTC)
commit 81bb725f1d2a8460a30170e419f59a75e42e71db
Author: Ondrej Holy <oholy redhat com>
Date: Mon Dec 7 09:40:24 2020 +0100
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
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]