mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
965ddac92f
Upstream report: https://github.com/apple/cups/issues/5118 In addition to not saving files, this results in spam messages in the log once per second (Expiring subscriptions...) which is what led me to discover this bug. The patch was made by hand because the patch from the commit does not apply.
13 lines
453 B
Diff
13 lines
453 B
Diff
diff --git a/scheduler/main.c b/scheduler/main.c
|
|
index 8925c8373..acf031684 100644
|
|
--- a/scheduler/main.c
|
|
+++ b/scheduler/main.c
|
|
@@ -893,7 +893,7 @@ main(int argc, /* I - Number of command-line args */
|
|
* Write dirty config/state files...
|
|
*/
|
|
|
|
- if (DirtyCleanTime && current_time >= DirtyCleanTime && cupsArrayCount(Clients) == 0)
|
|
+ if (DirtyCleanTime && current_time >= DirtyCleanTime)
|
|
cupsdCleanDirty();
|
|
|
|
#ifdef __APPLE__
|