diff options
author | Gerald Carter <jerry@samba.org> | 2002-03-20 23:09:34 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-03-20 23:09:34 +0000 |
commit | 9529a4827c203eb4e42a166e6d2c1281e73b4254 (patch) | |
tree | c89538ef7cfaba118355b3517fa951989729c363 /source3 | |
parent | e67f1be9f0c3193d122e3e429af4fb242121b169 (diff) | |
download | samba-9529a4827c203eb4e42a166e6d2c1281e73b4254.tar.gz samba-9529a4827c203eb4e42a166e6d2c1281e73b4254.tar.bz2 samba-9529a4827c203eb4e42a166e6d2c1281e73b4254.zip |
merge from APPLIANCE_HEAD
(This used to be commit 9282aa02d44ae7a7688e8399b397aae35f73ddd1)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index b23cbaa9ae..8e3ada5a8d 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -714,7 +714,6 @@ static void send_spoolss_event_notification(PRINTER_MESSAGE_INFO *msg) static void srv_spoolss_receive_message(int msg_type, pid_t src, void *buf, size_t len) { PRINTER_MESSAGE_INFO msg; - pid_t my_pid = sys_getpid(); if (len < sizeof(msg)) { DEBUG(2,("srv_spoolss_receive_message: got incorrect message size (%u)!\n", (unsigned int)len)); @@ -723,11 +722,6 @@ static void srv_spoolss_receive_message(int msg_type, pid_t src, void *buf, size memcpy(&msg, buf, sizeof(PRINTER_MESSAGE_INFO)); - if (my_pid == src) { - DEBUG(10,("srv_spoolss_receive_message: Skipping message to myself\n")); - return; - } - DEBUG(10,("srv_spoolss_receive_message: Got message printer change [queue = %s] low=0x%x high=0x%x flags=0x%x\n", msg.printer_name, (unsigned int)msg.low, (unsigned int)msg.high, msg.flags )); @@ -5035,12 +5029,7 @@ static WERROR update_printer(pipes_struct *p, POLICY_HND *handle, uint32 level, fstrcpy(msg.printer_name, printer->info_2->printername); /* only send a notify if something changed */ - if (msg.flags) - { - /* send to myself before replying to SetPrinter() */ - send_spoolss_event_notification(&msg); - - /* send to other smbd's */ + if (msg.flags) { srv_spoolss_sendnotify(msg.printer_name, 0, PRINTER_CHANGE_ADD_PRINTER, msg.flags); } |