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:
parent
f838707820
commit
f1f92bf4da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user