"\t:af=/var/spool/printer/%s/%s-acct:\\\n"
"\t:ka#%d:pc#%d:\\\n",
!strcmp(hwtype, "LPR") ? "raw" : rp,
- !strcmp(hwtype, "HP") ? rm : hostname,
+ !strncmp(hwtype, "HP", 2) ? rm : hostname,
rp, rp, rp, rp, rp, ka, pc);
if (strcmp(rq, "[NONE]"))
fprintf(out, "\t:rq=%s:\\\n", rq);
if (ac)
fprintf(out, "\t:ac=/var/spool/printer/%s/restrict.list:pa:\\\n", rp);
- if (!strcmp(hwtype, "HP"))
+ if (!strncmp(hwtype, "HP", 2))
{
fprintf(out, "\t:if=/usr/athena/lib/lpdfilters/hpif:\\\n"
"\t:of=/usr/athena/lib/lpdfilters/hpof:\\\n"
tarfile_mkdir(tf, filename, 0755, 1, 1, "daemon", "daemon", mtime);
/* If spooling to an HP printer, make a .options file. */
- if (!strcmp(hwtype, "HP"))
+ if (!strncmp(hwtype, "HP", 2))
{
sprintf(filename, "/var/spool/printer/%s/.options", name);
out = tarfile_start(tf, filename, 0755, 1, 1, "daemon", "daemon",