From cf4cb6b82f507093e943a023e853fc0b04509c3c Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 3 Dec 2025 16:33:33 +0100 Subject: [PATCH] adminutil.c: Recognize other policy scopes than default The function `cupsAdminGetServerSettings()` did not take different policies as policy, which resulted into adding their contents into output array `settings`. If the caller uses the same array for `cupsAdminSetServerSettings()`, there is possibility to add such directives at the end of configuration file if a different tool removes those directives from the original file. --- cups/adminutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/adminutil.c b/cups/adminutil.c index 9fa58a24a2..6fc3027711 100644 --- a/cups/adminutil.c +++ b/cups/adminutil.c @@ -270,7 +270,7 @@ cupsAdminGetServerSettings( { debug_logging = !_cups_strncasecmp(value, "debug", 5); } - else if (!_cups_strcasecmp(line, "