diff options
Diffstat (limited to 'src/triplet.c')
-rw-r--r-- | src/triplet.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/triplet.c b/src/triplet.c index 2ad4e1d..bde3c14 100644 --- a/src/triplet.c +++ b/src/triplet.c @@ -276,6 +276,7 @@ register_file(struct file_info *finfo, struct spool *spool) triplet_list_lock(&triplet_pending_list); if (install) { + ret->directive_verified = DIRECTIVE_UNCHECKED; ret->spool = spool; ret->acc = grecs_txtacc_create(); } else if (ret->list) @@ -325,7 +326,7 @@ static enum triplet_state check_triplet_state(struct wy_triplet *trp) { if (trp->file[file_directive].name) { - if (verify_directive_file(trp)) + if (verify_directive_file(trp) != DIRECTIVE_GOOD) return triplet_bad; if (trp->file[file_dist].name == 0 && @@ -479,9 +480,6 @@ triplet_expired_p(struct wy_triplet *trp) now = time(NULL); ttl = trp->spool->file_sweep_time; - if (ttl == 0) - return 0; - for (i = 0; i < FILE_TYPE_COUNT; i++) { if (trp->file[i].name && (now - trp->file[i].sb.st_mtime) >= ttl) { wy_debug(1, (_("file %s expired"), trp->file[i].name)); |