1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/printing
David Disseldorp 2b635949a2 s3-printing: fix cups pcap reload with no printers
cups_async_callback() is called to receive new printcap data from a
child process which requests the information from cupsd.
Newly received printcap information is stored in a temporary printcap
cache (tmp_pcap_cache). Once the child process closes the printcap IPC
file descriptor, the system printcap cache is replaced with the newly
populated tmp_pcap_cache, however this only occurs if tmp_pcap_cache is
non null (has at least one printer).

If the printcap cache is empty, which is the case when cups is not
exporting any printers, the printcap cache is not replaced resulting in
stale data.

https://bugzilla.samba.org/show_bug.cgi?id=7915
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-03-04 15:46:23 +01:00
..
tests s3-printing: move more printing structs to printing.h 2011-02-22 21:52:18 +01:00
load.c s3-printing: only include printing where really needed. 2011-02-22 21:52:18 +01:00
load.h s3-printing: only include printing where really needed. 2011-02-22 21:52:18 +01:00
lpq_parse.c Fix bug #7288 - SMB job IDs in CUPS job names wrong. 2010-03-25 17:36:47 -07:00
notify.c s3-printing: isolate print notification prototypes better. 2011-02-22 21:52:18 +01:00
notify.h s3-printing: isolate print notification prototypes better. 2011-02-22 21:52:18 +01:00
nt_printing_ads.c s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_info 2011-02-22 16:20:10 +11:00
nt_printing_migrate.c s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_info 2011-02-22 16:20:10 +11:00
nt_printing_migrate.h s3: Lift the smbd_messaging_context from nt_printing_tdb_migrate 2010-08-08 16:03:15 +02:00
nt_printing_tdb.c libcli/security Provide a common, top level libcli/security/security.h 2010-10-12 05:54:10 +00:00
nt_printing_tdb.h s3-printing: Move all tdb upgrade functions to a separate file. 2010-07-27 10:27:14 -04:00
nt_printing.c s3-printing: follow force user/group for driver IO 2011-03-04 15:46:14 +01:00
pcap.c s3-printing: remove printer_list_need_refresh 2011-01-07 15:37:39 -08:00
pcap.h s3-printing: fix pcacp prototypes and includes. 2011-02-22 21:52:18 +01:00
print_aix.c s3-printing: explicitly include "printing/pcap.h" as there is /usr/include/pcap.h. 2010-05-14 14:41:50 +02:00
print_cups.c s3-printing: fix cups pcap reload with no printers 2011-03-04 15:46:23 +01:00
print_generic.c s3: Remove the pointless PRINTERNAME macro 2010-06-13 12:40:27 +02:00
print_iprint.c s3-printing: Lift the use of smbd_server_fd from job_submit. 2010-08-16 14:02:19 +02:00
print_standard.c s3-printing: explicitly include "printing/pcap.h" as there is /usr/include/pcap.h. 2010-05-14 14:41:50 +02:00
print_svid.c s3-printing: explicitly include "printing/pcap.h" as there is /usr/include/pcap.h. 2010-05-14 14:41:50 +02:00
printer_list.c s3-printing: remove printer_list_need_refresh 2011-01-07 15:37:39 -08:00
printer_list.h s3-printing: remove printer_list_need_refresh 2011-01-07 15:37:39 -08:00
printing_db.c Use sec_initial_uid() in the places where being root doesn't matter, 2010-02-12 23:18:53 -08:00
printing.c s3-server_id: only include server_id where needed. 2011-03-02 12:12:31 +01:00
printspoolss.c s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_info 2011-02-22 16:20:10 +11:00