From 72a06ab4f33ca6ea84ff2737098f810adbbe6f38 Mon Sep 17 00:00:00 2001 From: fredrik Date: Fri, 27 Oct 2006 23:58:39 +0000 Subject: [PATCH] Add mtime check for hashes. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@721 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/client.c b/daemon/client.c index 45aa7be..1e659ab 100644 --- a/daemon/client.c +++ b/daemon/client.c @@ -546,7 +546,7 @@ static void checkhashes(void) continue; if(!node->f.b.hastth) { - if((hc = findhashcache(node->dev, node->inode)) != NULL) + if(((hc = findhashcache(node->dev, node->inode)) != NULL) && (hc->mtime == node->mtime)) { memcpy(node->hashtth, hc->tth, 24); node->f.b.hastth = 1; -- 2.11.0