Author: jerry Date: 2005-09-27 16:40:32 +0000 (Tue, 27 Sep 2005) New Revision: 10546
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10546 Log: remove extra reload_services() call in update_printer() Modified: trunk/source/rpc_server/srv_spoolss_nt.c Changeset: Modified: trunk/source/rpc_server/srv_spoolss_nt.c =================================================================== --- trunk/source/rpc_server/srv_spoolss_nt.c 2005-09-27 16:20:17 UTC (rev 10545) +++ trunk/source/rpc_server/srv_spoolss_nt.c 2005-09-27 16:40:32 UTC (rev 10546) @@ -6122,17 +6122,12 @@ || !strequal(printer->info_2->portname, old_printer->info_2->portname) || !strequal(printer->info_2->location, old_printer->info_2->location)) ) { + /* add_printer_hook() will call reload_services() */ + if ( !add_printer_hook(p->pipe_user.nt_user_token, printer) ) { result = WERR_ACCESS_DENIED; goto done; } - - /* - * make sure we actually reload the services after - * this as smb.conf could have a new section in it - * .... shouldn't .... but could - */ - reload_services(False); } /*