]> andersk Git - moira.git/blobdiff - gen/cups-print.pc
Pathname vs. service name normalization.
[moira.git] / gen / cups-print.pc
index 633c623cc197a2e337a670acd5a13fe32a451942..f6f5f51b4f05746e37d21d6e5ad93f3ec095c622 100644 (file)
@@ -70,7 +70,7 @@ int main(int argc, char **argv)
 
   EXEC SQL DECLARE csr_hosts CURSOR FOR
     SELECT m.name FROM machine m, serverhosts sh
-    WHERE m.mach_id = sh.mach_id AND sh.service = 'CUPS' AND sh.enable = 1;
+    WHERE m.mach_id = sh.mach_id AND sh.service = 'CUPS-PRINT' AND sh.enable = 1;
   EXEC SQL OPEN csr_hosts;
   while (1)
     {
@@ -128,7 +128,7 @@ void do_host(char *host)
   EXEC SQL SELECT mach_id INTO :rm FROM machine
     WHERE name = :spoolhost;
 
-  sprintf(filename, "%s/print/%s", DCM_DIR, host);
+  sprintf(filename, "%s/cups-print/%s", DCM_DIR, host);
   tf = tarfile_open(filename);
 
   /* printers.conf */
This page took 0.053243 seconds and 4 git commands to generate.