1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fail a print start on a deleted auto printer

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent f838707820
commit f1f92bf4da

View File

@ -578,6 +578,12 @@ int print_job_start(int snum, char *jobname)
}
}
/* for autoloaded printers, check that the printcap entry still exists */
if (lp_autoloaded(snum) && !pcap_printername_ok(lp_servicename(snum), NULL)) {
errno = ENOENT;
return -1;
}
/* create the database entry */
ZERO_STRUCT(pjob);
pjob.pid = local_pid;