From: Michael R Sweet Date: Sun, 29 Dec 2024 19:37:01 +0000 (-0500) Subject: Force userconfig to sysconfig when running as root. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2793d081731dd527e6255b0a1d5fc476a7a9b2e2;p=thirdparty%2Fcups.git Force userconfig to sysconfig when running as root. --- diff --git a/cups/globals.c b/cups/globals.c index 724611bea7..519ebf1195 100644 --- a/cups/globals.c +++ b/cups/globals.c @@ -335,6 +335,13 @@ cups_globals_alloc(void) cg->localedir = CUPS_LOCALEDIR; } + if (!getuid()) + { + // When running as root, make "userconfig" the same as "sysconfig"... + cg->userconfig = strdup(cg->sysconfig); + return (cg); + } + # ifdef __APPLE__ if (!home) #else