diff options
author | Jeremy Allison <jra@samba.org> | 2002-04-30 13:28:41 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-04-30 13:28:41 +0000 |
commit | d04b55f2186fb8af998cf61c576771a5f72f4892 (patch) | |
tree | 9ff8c3a7cf34cefc0ee9a550a3bb1236a9e77595 /source/utils/smbcontrol.c | |
parent | 73267ca42d9eddabb71b31b4c5068ebbe7bc9f7c (diff) | |
download | samba-d04b55f2186fb8af998cf61c576771a5f72f4892.tar.gz samba-d04b55f2186fb8af998cf61c576771a5f72f4892.tar.xz samba-d04b55f2186fb8af998cf61c576771a5f72f4892.zip |
Start of merge to 2_2_RELEASE branch for release.
Jeremy.
Diffstat (limited to 'source/utils/smbcontrol.c')
-rw-r--r-- | source/utils/smbcontrol.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/utils/smbcontrol.c b/source/utils/smbcontrol.c index 3b4781bb742..102fdbb19e7 100644 --- a/source/utils/smbcontrol.c +++ b/source/utils/smbcontrol.c @@ -139,7 +139,7 @@ static BOOL send_message(char *dest, int msg_type, void *buf, int len, BOOL dupl /* "smbd" is the only broadcast operation */ if (strequal(dest,"smbd")) { - retval = message_send_all(the_tdb,msg_type, buf, len, duplicates); + retval = message_send_all(the_tdb,msg_type, buf, len, duplicates, NULL); } else if (strequal(dest,"nmbd")) { pid = pidfile_pid(dest); if (pid == 0) { @@ -281,8 +281,15 @@ 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)+4]; + SIVAL(msg,0,PRINTER_CHANGE_ALL); + SIVAL(msg,4,0); + fstrcpy(&msg[8], params[0]); + SIVAL(msg,8+strlen(params[0])+1, PRINTER_MESSAGE_DRIVER); + + retval = send_message(dest, MSG_PRINTER_NOTIFY, msg, 8 + strlen(params[0]) + 1 + 4, False); + } break; case MSG_SMB_FORCE_TDIS: |