1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3/printing
Günther Deschner bcd6e5ec33 s3-spoolss: fix notify_printer_status_byname.
This took me almost a week to find, so here a little longer explanation:

When a windows client registers printer *status* change notifies using
spoolss_RemoteFindFirstChangeNotify, it registers them to a print server handle,
not a printer handle. We were then correctly monitoring the printer status
changes but were sending out the spoolss_RouterReplyPrinterEx via the back-channel
connection with job_id set to 0 (which we only may do for monitored printer
change status notifies on printer handlers, not print server handles). Windows
was then showing a new empty dummy printer icon in the explorer as it cannot
route the notify event to the approriate local handle. It also discarded the
content of the notify event message of course. With this, printer change notify for
pausing, resuming and purging printers nicely works again here.

Jerry, Tim and all other printing gurus, please check.

Guenther
2009-02-24 01:08:03 +01:00
..
tests Fix printf warnings found on systems where time_t <> long int. 2009-02-19 13:36:20 -08:00
load.c If you have a large number of cups printers, then scanning for print info can cause a client to timeout 2008-10-10 11:55:14 -07:00
lpq_parse.c Fix some scary FC9 warnings 2008-06-10 17:21:23 +02:00
notify.c s3-spoolss: fix notify_printer_status_byname. 2009-02-24 01:08:03 +01:00
nt_printing.c s3-spoolss: remove whitespace in printing code. 2009-02-09 12:42:42 +01:00
pcap.c Remove silly safe_free() function which is a wrapper around SAFE_FREE(). 2008-10-19 13:06:14 +02:00
print_aix.c Remove silly safe_free() function which is a wrapper around SAFE_FREE(). 2008-10-19 13:06:14 +02:00
print_cups.c Fix Coverity ID 740 (RESOURCE_LEAK) 2009-02-13 21:55:10 +01:00
print_generic.c Fix more asprintf warnings and some error path errors. 2008-12-23 12:11:12 -08:00
print_iprint.c Remove most of the remaining globals out of lib/util_sock.c. 2007-11-03 23:20:10 -07:00
print_svid.c Use common util_file code. 2008-10-12 17:34:43 +02:00
printfsp.c Fix an ancient uninitialized variable read 2008-12-31 10:51:44 +01:00
printing_db.c s3: put printing/ under cache_dir, not lock_dir 2009-01-16 01:02:24 +01:00
printing.c S3: Stop creating SMBD cores when failing to create a pipe. 2009-02-18 18:08:33 -08:00