diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 95aa50fb43..b23dd3aa73 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -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; |