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)
{
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 */