1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-spoolss: dont overwrite location change notify.

Guenther
This commit is contained in:
Günther Deschner 2010-10-01 06:05:38 +02:00
parent 62d87f8f88
commit 48fca54a29
3 changed files with 19 additions and 3 deletions

View File

@ -4044,6 +4044,9 @@ void notify_printer_byname(struct tevent_context *ev,
struct messaging_context *msg_ctx,
const char *printername, uint32 change,
const char *value);
void notify_printer_sepfile(struct tevent_context *ev,
struct messaging_context *msg_ctx,
int snum, const char *sepfile);
/* The following definitions come from printing/pcap.c */

View File

@ -577,6 +577,19 @@ void notify_printer_location(struct tevent_context *ev,
snum, strlen(location) + 1, location);
}
void notify_printer_sepfile(struct tevent_context *ev,
struct messaging_context *msg_ctx,
int snum, const char *sepfile)
{
const char *sharename = lp_servicename(snum);
send_notify_field_buffer(
ev, msg_ctx,
sharename, PRINTER_NOTIFY_TYPE, PRINTER_NOTIFY_FIELD_SEPFILE,
snum, strlen(sepfile) + 1, sepfile);
}
void notify_printer_byname(struct tevent_context *ev,
struct messaging_context *msg_ctx,
const char *printername, uint32 change,

View File

@ -6245,9 +6245,9 @@ static WERROR update_dsspooler(TALLOC_CTX *mem_ctx,
buffer.length);
if (!force_update) {
notify_printer_location(server_event_context(),
msg_ctx, snum,
printer->location);
notify_printer_sepfile(server_event_context(),
msg_ctx, snum,
printer->sepfile);
}
}