From: zacheiss Date: Fri, 31 Oct 2008 20:39:56 +0000 (+0000) Subject: Pathname vs. service name normalization. X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/c3c5355230bca697f9be7f525390bd759e1c3121 Pathname vs. service name normalization. --- diff --git a/gen/cups-print.pc b/gen/cups-print.pc index 633c623c..f6f5f51b 100644 --- a/gen/cups-print.pc +++ b/gen/cups-print.pc @@ -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 */