Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cupsd doesn't update jobs.cache when a document is expired #4706

Closed
michaelrsweet opened this issue Aug 31, 2015 · 2 comments
Closed

cupsd doesn't update jobs.cache when a document is expired #4706

michaelrsweet opened this issue Aug 31, 2015 · 2 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 2.1-current
CUPS.org User: mike

When cupsd removes a preserved job file, it doesn't mark the job or the job cache as dirty. This leads to subsequent "bad file number N" errors when cupsd is later started.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"str4706.patch":

Index: scheduler/job.c

--- scheduler/job.c (revision 12855)
+++ scheduler/job.c (revision 12856)
@@ -442,6 +442,8 @@
cupsdLogJob(job, CUPSD_LOG_DEBUG, "Removing document files.");
remove_job_files(job);

  •    cupsdMarkDirty(CUPSD_DIRTY_JOBS);
    
    • if (job->history_time < JobHistoryUpdate || !JobHistoryUpdate)
      JobHistoryUpdate = job->history_time;
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant