]> git.dolda2000.com Git - ashd.git/commitdiff
dirplex: Fixed .htrc rechecking.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 29 Mar 2011 05:00:33 +0000 (07:00 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 29 Mar 2011 05:00:33 +0000 (07:00 +0200)
src/dirplex/conf.c

index 03d5477383e5a53b6a493625fbfca8f0e79a80c6..08b78f31ef2225042810ae3e3370547c976c04c4 100644 (file)
@@ -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);
        }
     }