From 71646b0c6c2caf1bb758dc3e500e53f76d2e243c Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 9 Aug 2016 18:11:46 +0200 Subject: Set the default for SyncOnClose to Yes Last-Update: 2015-02-10 Patch-Name: cupsd-set-default-for-SyncOnClose-to-Yes.patch --- conf/cups-files.conf.in | 2 +- doc/help/man-cups-files.conf.html | 2 +- man/cups-files.conf.man.in | 2 +- scheduler/conf.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/cups-files.conf.in b/conf/cups-files.conf.in index 4a78ba615..a3d088da5 100644 --- a/conf/cups-files.conf.in +++ b/conf/cups-files.conf.in @@ -7,7 +7,7 @@ #FatalErrors @CUPS_FATAL_ERRORS@ # Do we call fsync() after writing configuration or status files? -#SyncOnClose No +#SyncOnClose Yes # Default user and group for filters/backends/helper programs; this cannot be # any user or group that resolves to ID 0 for security reasons... diff --git a/doc/help/man-cups-files.conf.html b/doc/help/man-cups-files.conf.html index 6144a165c..b82117c77 100644 --- a/doc/help/man-cups-files.conf.html +++ b/doc/help/man-cups-files.conf.html @@ -150,7 +150,7 @@ The default is "/var/run/cups" or "/etc/cups" depending on the platform.
Specifies whether the scheduler calls fsync(2) after writing configuration or state files. -The default is "No". +The default is "Yes".
SystemGroup group-name [ ... group-name ]
Specifies the group(s) to use for @SYSTEM group authentication. The default contains "admin", "lpadmin", "root", "sys", and/or "system". diff --git a/man/cups-files.conf.man.in b/man/cups-files.conf.man.in index f5e6a9f39..c3d8eeb2b 100644 --- a/man/cups-files.conf.man.in +++ b/man/cups-files.conf.man.in @@ -214,7 +214,7 @@ The default is "/var/run/cups" or "/etc/cups" depending on the platform. Specifies whether the scheduler calls .BR fsync (2) after writing configuration or state files. -The default is "No". +The default is "Yes". .\"#SystemGroup .TP 5 \fBSystemGroup \fIgroup-name \fR[ ... \fIgroup-name\fR ] diff --git a/scheduler/conf.c b/scheduler/conf.c index 898b84f3e..743f64cab 100644 --- a/scheduler/conf.c +++ b/scheduler/conf.c @@ -735,7 +735,7 @@ cupsdReadConfiguration(void) RootCertDuration = 300; Sandboxing = CUPSD_SANDBOXING_STRICT; StrictConformance = FALSE; - SyncOnClose = FALSE; + SyncOnClose = TRUE; Timeout = 900; WebInterface = CUPS_DEFAULT_WEBIF;