Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/printing/spoolssd.c

    r740 r860  
    7272        DEBUG(10, ("Got message saying smb.conf was updated. Reloading.\n"));
    7373        change_to_root_user();
     74        spoolss_reopen_logs();
     75}
     76
     77static void spoolss_pcap_updated(struct messaging_context *msg,
     78                                 void *private_data,
     79                                 uint32_t msg_type,
     80                                 struct server_id server_id,
     81                                 DATA_BLOB *data)
     82{
     83        struct tevent_context *ev_ctx = talloc_get_type_abort(private_data,
     84                                                             struct tevent_context);
     85
     86        DEBUG(10, ("Got message saying pcap was updated. Reloading.\n"));
     87        change_to_root_user();
    7488        reload_printers(ev_ctx, msg);
    75         spoolss_reopen_logs();
    7689}
    7790
     
    112125        change_to_root_user();
    113126        DEBUG(1,("Reloading printers after SIGHUP\n"));
    114         reload_printers(ev, msg_ctx);
    115127        spoolss_reopen_logs();
    116128}
     
    199211        messaging_register(msg_ctx, ev_ctx,
    200212                           MSG_SMB_CONF_UPDATED, smb_conf_updated);
     213        messaging_register(msg_ctx, ev_ctx,
     214                           MSG_PRINTER_PCAP, spoolss_pcap_updated);
    201215
    202216        /*
Note: See TracChangeset for help on using the changeset viewer.