File Always-update-cached-file-on-dav_lookup.patch of Package davfs2.22338
From 1488e13130d3e3261d50f3c24f67a77779ffa86c Mon Sep 17 00:00:00 2001
From: Ali Abdallah <aabdallah@suse.de>
Date: Wed, 27 Oct 2021 13:40:51 +0200
Subject: [PATCH] Always update cached file on dav_lookup
---
src/cache.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/cache.c b/src/cache.c
index f9e4e4e..0783a00 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -1033,8 +1033,10 @@ dav_lookup(dav_node **nodep, dav_node *parent, const char *name, uid_t uid)
if (is_dir(*nodep)) {
if (!(*nodep)->utime)
update_directory(*nodep, retry);
- } else if (is_open(*nodep)) {
- attr_from_cache_file(*nodep);
+ } else {
+ update_cache_file(*nodep);
+ if (is_open(*nodep))
+ attr_from_cache_file(*nodep);
}
return 0;
--
2.26.2