From 6d8204ed114373df4f9e7b54da6006091251d886 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 13:04:35 +0000 Subject: Apply patch cups-synconclose.patch patch_name: cups-synconclose.patch present_in_specfile: true --- diff --git a/conf/cups-files.conf.in b/conf/cups-files.conf.in index 4a78ba6..a3d088d 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 42dae48..92812db 100644 --- a/doc/help/man-cups-files.conf.html +++ b/doc/help/man-cups-files.conf.html @@ -148,7 +148,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 2ed4686..07446ab 100644 --- a/man/cups-files.conf.man.in +++ b/man/cups-files.conf.man.in @@ -204,7 +204,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 bc13b44..294004e 100644 --- a/scheduler/conf.c +++ b/scheduler/conf.c @@ -738,7 +738,7 @@ cupsdReadConfiguration(void) RootCertDuration = 300; Sandboxing = CUPSD_SANDBOXING_STRICT; StrictConformance = FALSE; - SyncOnClose = FALSE; + SyncOnClose = TRUE; Timeout = DEFAULT_TIMEOUT; WebInterface = CUPS_DEFAULT_WEBIF;