diff options
Diffstat (limited to 'source3/printing/spoolssd.c')
-rw-r--r-- | source3/printing/spoolssd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index 27704dab3c..13f300d19a 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -23,6 +23,7 @@ #include "messages.h" #include "include/printing.h" #include "printing/nt_printing_migrate_internal.h" +#include "printing/pcap.h" #include "ntdomain.h" #include "librpc/gen_ndr/srv_winreg.h" #include "librpc/gen_ndr/srv_spoolss.h" @@ -695,6 +696,9 @@ void start_spoolssd(struct tevent_context *ev_ctx, spoolss_reopen_logs(); spoolss_prefork_config(); + /* Publish nt printers, this requires a working winreg pipe */ + pcap_cache_reload(ev_ctx, msg_ctx, &reload_printers); + /* the listening fd must be created before the children are actually * forked out. */ listen_fd = create_named_pipe_socket(SPOOLSS_PIPE_NAME); |