]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix Windows directory support.
authorMichael R Sweet <msweet@msweet.org>
Wed, 4 Sep 2024 16:17:56 +0000 (12:17 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 4 Sep 2024 16:17:56 +0000 (12:17 -0400)
cups/globals.c

index 185b634f5452da89b340c4ebadea89febe423526..fe7a2adc1aecd2ec51507669e1fb269d111b70eb 100644 (file)
@@ -258,10 +258,10 @@ cups_globals_alloc(void)
     cg->cups_serverbin = installdir;
 
   if ((cg->sysconfig = getenv("CUPS_SERVERROOT")) == NULL)
-    cg->sysconfig = confdir;
+    cg->sysconfig = sysconfig;
 
   if ((cg->cups_statedir = getenv("CUPS_STATEDIR")) == NULL)
-    cg->cups_statedir = confdir;
+    cg->cups_statedir = sysconfig;
 
   if ((cg->localedir = getenv("LOCALEDIR")) == NULL)
     cg->localedir = localedir;