File Check-for-valid-prop-etag.patch of Package davfs2.28634

From f40d1c64c1dc17042c6265c9264c705d8db16f07 Mon Sep 17 00:00:00 2001
From: Ali Abdallah <aabdallah@suse.de>
Date: Wed, 22 Dec 2021 16:21:49 +0100
Subject: [PATCH] check valid prop etag

---
 src/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cache.c b/src/cache.c
index 07ec842..fe1be28 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -2317,7 +2317,7 @@ update_node(dav_node *node, dav_props *props)
     }
 
     if (is_cached(node)) {
-        if ((!node->etag && props->mtime > node->smtime)
+        if ((!props->etag && props->mtime > node->smtime)
                 || (node->etag && props->etag
                     && strcmp(node->etag, props->etag) != 0)) {
             if (is_open(node)) {
-- 
2.26.2

openSUSE Build Service is sponsored by