mirror of https://gitee.com/openkylin/cups.git
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
This commit is contained in:
parent
53ccc9c8e8
commit
77312d07fc
|
@ -688,7 +688,7 @@ cupsdSaveAllClasses(void)
|
||||||
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
||||||
|
|
||||||
cupsFilePuts(fp, "# Class configuration file for " CUPS_SVERSION "\n");
|
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");
|
cupsFilePuts(fp, "# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2201,7 +2201,7 @@ cupsdSaveAllJobs(void)
|
||||||
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
||||||
|
|
||||||
cupsFilePuts(fp, "# Job cache file for " CUPS_SVERSION "\n");
|
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);
|
cupsFilePrintf(fp, "NextJobId %d\n", NextJobId);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1503,7 +1503,7 @@ cupsdSaveAllPrinters(void)
|
||||||
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
||||||
|
|
||||||
cupsFilePuts(fp, "# Printer configuration file for " CUPS_SVERSION "\n");
|
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");
|
cupsFilePuts(fp, "# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING\n");
|
||||||
|
|
||||||
cupsFilePrintf(fp, "NextPrinterId %d\n", NextPrinterId);
|
cupsFilePrintf(fp, "NextPrinterId %d\n", NextPrinterId);
|
||||||
|
|
|
@ -1051,7 +1051,7 @@ cupsdSaveAllSubscriptions(void)
|
||||||
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
|
||||||
|
|
||||||
cupsFilePuts(fp, "# Subscription configuration file for " CUPS_SVERSION "\n");
|
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);
|
cupsFilePrintf(fp, "NextSubscriptionId %d\n", NextSubscriptionId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue