summaryrefslogtreecommitdiff
path: root/scheduler
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-07-16 10:51:07 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-07-16 10:51:07 -0400
commit6647894889968030cfe8f567fb3a9ab410d8f1ea (patch)
tree01fa479ffb52a57e1432ec4cbac2f0a36e013d90 /scheduler
parent614efb7a87f1dd4626e158709944f9e649fea0ba (diff)
downloadcups-6647894889968030cfe8f567fb3a9ab410d8f1ea.tar.gz
Fix potential excess logging from the scheduler when removing job files
(Issue #5597) (may be Debian-specific, as I was unable to duplicate - the extra check is in place in case file_time is reset)
Diffstat (limited to 'scheduler')
-rw-r--r--scheduler/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scheduler/job.c b/scheduler/job.c
index 89b1c28c5..2cfb1b03d 100644
--- a/scheduler/job.c
+++ b/scheduler/job.c
@@ -462,7 +462,7 @@ cupsdCleanJobs(void)
cupsdLogJob(job, CUPSD_LOG_DEBUG, "Removing from history.");
cupsdDeleteJob(job, CUPSD_JOB_PURGE);
}
- else if (job->file_time && job->file_time <= curtime)
+ else if (job->file_time && job->file_time <= curtime && job->num_files > 0)
{
cupsdLogJob(job, CUPSD_LOG_DEBUG, "Removing document files.");
remove_job_files(job);