summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-26 03:12:09 +0000
committerJeremy Allison <jra@samba.org>2002-02-26 03:12:09 +0000
commit2ff93902451a234e78490a1b18c2fae43d997b01 (patch)
treeca8eac874c2baa56b2aadf685ff5855328bbf50d /source3/utils
parent2f8452fd49dd34da5cd07629dcba937861dd0731 (diff)
downloadsamba-2ff93902451a234e78490a1b18c2fae43d997b01.tar.gz
samba-2ff93902451a234e78490a1b18c2fae43d997b01.tar.bz2
samba-2ff93902451a234e78490a1b18c2fae43d997b01.zip
Fixup the sending of printer change messages from job changes.
Jeremy. (This used to be commit 28d4e7a3e2bd8f15ef807b821e4300a72bbc6904)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 331059d5bb..ce2d503971 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -334,8 +334,14 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params)
fprintf(stderr, "printer-notify needs a printer name\n");
return (False);
}
- retval = send_message(dest, MSG_PRINTER_NOTIFY, params[0],
- strlen(params[0]) + 1, False);
+ {
+ char msg[8 + sizeof(fstring)];
+ SIVAL(msg,0,PRINTER_CHANGE_ALL);
+ SIVAL(msg,4,0);
+ fstrcpy(&msg[8], params[0]);
+
+ retval = send_message(dest, MSG_PRINTER_NOTIFY, msg, 8 + strlen(params[0]) + 1, False);
+ }
break;
case MSG_SMB_FORCE_TDIS: