diff options
author | Jeremy Allison <jra@samba.org> | 2000-11-10 22:07:57 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-11-10 22:07:57 +0000 |
commit | 24d76c5fbda29d89c96d7c22193ec2eb93ad3887 (patch) | |
tree | 0c0c42224daf1854e689eaa312ddc79dc4013063 /source/utils/smbcontrol.c | |
parent | f25b5798b8610de9748ae90ea1bf813b125f517d (diff) | |
download | samba-24d76c5fbda29d89c96d7c22193ec2eb93ad3887.tar.gz samba-24d76c5fbda29d89c96d7c22193ec2eb93ad3887.tar.xz samba-24d76c5fbda29d89c96d7c22193ec2eb93ad3887.zip |
Merge in Herb's changes from 2.2.
Jeremy.
Diffstat (limited to 'source/utils/smbcontrol.c')
-rw-r--r-- | source/utils/smbcontrol.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source/utils/smbcontrol.c b/source/utils/smbcontrol.c index 57f6149bcdd..c059ccb6ec8 100644 --- a/source/utils/smbcontrol.c +++ b/source/utils/smbcontrol.c @@ -19,8 +19,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define NO_SYSLOG - #include "includes.h" static struct { @@ -32,6 +30,7 @@ static struct { {"ping", MSG_PING}, {"profile", MSG_PROFILE}, {"debuglevel", MSG_REQ_DEBUGLEVEL}, + {"printer-notify", MSG_PRINTER_NOTIFY}, {NULL, -1} }; @@ -196,6 +195,19 @@ static BOOL do_command(char *dest, char *msg_name, char *params) } break; + case MSG_PRINTER_NOTIFY: + if (!strequal(dest, "smbd")) { + fprintf(stderr,"printer-notify can only be sent to smbd\n"); + return(False); + } + if (!params) { + fprintf(stderr, "printer-notify needs a printer name\n"); + return (False); + } + retval = send_message(dest, MSG_PRINTER_NOTIFY, params, + strlen(params) + 1); + break; + case MSG_PING: if (!pong_registered) { message_register(MSG_PONG, pong_function); |