From: Fredrik Tolf Date: Tue, 29 Mar 2011 05:00:33 +0000 (+0200) Subject: dirplex: Fixed .htrc rechecking. X-Git-Tag: 0.8~26 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=0fb57c32e8108895981d6b380c1b126a39042608 dirplex: Fixed .htrc rechecking. --- diff --git a/src/dirplex/conf.c b/src/dirplex/conf.c index 03d5477..08b78f3 100644 --- a/src/dirplex/conf.c +++ b/src/dirplex/conf.c @@ -264,10 +264,10 @@ struct config *getconfig(char *path) for(cf = cflist; cf != NULL; cf = cf->next) { if(!strcmp(cf->path, path)) { if(now - cf->lastck > 5) { + cf->lastck = now; if(stat(fn, &sb) || (sb.st_mtime != cf->mtime)) break; } - cf->lastck = now; return(cf); } }