EXEC SQL WHENEVER SQLERROR DO sqlerr();
+ if (argc != 2)
+ {
+ fprintf(stderr, "usage: %s [outfile]\n", argv[0]);
+ exit(MR_ARGS);
+ }
+
/* Get print spoolers for allow lists. */
EXEC SQL SELECT COUNT(service) INTO :alcount FROM serverhosts sh, machine m
WHERE sh.service = 'PRINT' AND sh.mach_id = m.mach_id
EXEC SQL CLOSE csr_spool;
/* Now build the tar file. */
- sprintf(filename, "%s/dhcp.out", DCM_DIR);
- tf = tarfile_open(filename);
+ tf = tarfile_open(argv[1]);
/* Build dhcpd.conf.print */