diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-10 11:49:06 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-10 11:49:06 +0000 |
commit | f1f92bf4da75ec6fccd34b07719d642196665258 (patch) | |
tree | dad85f9f2f506d70813f0d43c987c73bfceecf35 /source | |
parent | f838707820175f97db82fc32f124c3b69b051e6b (diff) | |
download | samba-f1f92bf4da75ec6fccd34b07719d642196665258.tar.gz samba-f1f92bf4da75ec6fccd34b07719d642196665258.tar.xz samba-f1f92bf4da75ec6fccd34b07719d642196665258.zip |
fail a print start on a deleted auto printer
Diffstat (limited to 'source')
-rw-r--r-- | source/printing/printing.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index 95aa50fb431..b23dd3aa73e 100644 --- a/source/printing/printing.c +++ b/source/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; |