]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 266] faxqclean does not keep docs referenced in doneq
authorDarren Nickerson <darren.nickerson@ifax.com>
Fri, 3 May 2002 18:26:25 +0000 (18:26 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Fri, 3 May 2002 18:26:25 +0000 (18:26 +0000)
Now it should. Thanks Patrice!

faxd/faxQCleanApp.c++

index 361a6d84935c5776fabe81eebf50a988fce0198f..1c627ed22106b6c6d95d47099ec3e080eb5256e0 100644 (file)
@@ -305,10 +305,10 @@ faxQCleanApp::expungeCruft(void)
                    (const char*) file, sb.st_nlink);
            continue;
        }
-       if (docrefs.find(dp->d_name)) {         // referenced from doneq
+       if (docrefs.find(file)) {               // referenced from doneq
            if (trace)
                printf("%s: ignored, file has %u references\n",
-                   (const char*) file, docrefs[dp->d_name]);
+                   (const char*) file, docrefs[file]);
            continue;
        }
        if (now - sb.st_mtime < minDocAge) {    // not old enough