From 77312d07fc6de95f6946df875f52fe70a2445b71 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 9 Aug 2016 18:11:31 +0200 Subject: [PATCH] Disable time stamps in conffiles, to avoid ever-changing files in /etc. Bug: https://github.com/apple/cups/issues/3067 Bug-Debian: https://bugs.debian.org/549673 Patch-Name: no-conffile-timestamp.patch Gbp-Pq: Name 0020-Disable-time-stamps-in-conffiles-to-avoid-ever-chang.patch --- scheduler/classes.c | 2 +- scheduler/job.c | 2 +- scheduler/printers.c | 2 +- scheduler/subscriptions.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scheduler/classes.c b/scheduler/classes.c index 14d2558..35d0eb7 100644 --- a/scheduler/classes.c +++ b/scheduler/classes.c @@ -688,7 +688,7 @@ cupsdSaveAllClasses(void) strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate); cupsFilePuts(fp, "# Class configuration file for " CUPS_SVERSION "\n"); - cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp); + cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePuts(fp, "# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING\n"); /* diff --git a/scheduler/job.c b/scheduler/job.c index eb99b3e..760e30f 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -2201,7 +2201,7 @@ cupsdSaveAllJobs(void) strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate); cupsFilePuts(fp, "# Job cache file for " CUPS_SVERSION "\n"); - cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp); + cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePrintf(fp, "NextJobId %d\n", NextJobId); /* diff --git a/scheduler/printers.c b/scheduler/printers.c index 2fff84b..a729475 100644 --- a/scheduler/printers.c +++ b/scheduler/printers.c @@ -1503,7 +1503,7 @@ cupsdSaveAllPrinters(void) strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate); cupsFilePuts(fp, "# Printer configuration file for " CUPS_SVERSION "\n"); - cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp); + cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePuts(fp, "# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING\n"); cupsFilePrintf(fp, "NextPrinterId %d\n", NextPrinterId); diff --git a/scheduler/subscriptions.c b/scheduler/subscriptions.c index 15acedc..eca0bfa 100644 --- a/scheduler/subscriptions.c +++ b/scheduler/subscriptions.c @@ -1051,7 +1051,7 @@ cupsdSaveAllSubscriptions(void) strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate); cupsFilePuts(fp, "# Subscription configuration file for " CUPS_SVERSION "\n"); - cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp); + cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePrintf(fp, "NextSubscriptionId %d\n", NextSubscriptionId);