diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-03 15:44:19 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-03 15:44:19 +0000 |
commit | d63b6446c8102ea69240344adce8b4905384a984 (patch) | |
tree | d9ffa7ee9d692a819b711002c4762547265b3049 | |
parent | e6c48331eba20b02239e5668d9d9cb85da9dc163 (diff) | |
download | samba-d63b6446c8102ea69240344adce8b4905384a984.tar.gz samba-d63b6446c8102ea69240344adce8b4905384a984.tar.bz2 samba-d63b6446c8102ea69240344adce8b4905384a984.zip |
Give warning if 'drvupgrade' doesn't get an argument
(This used to be commit 38d03f4f1a23963fbbb9046ac9f5ccfa5e3ee7b7)
-rw-r--r-- | source3/utils/smbcontrol.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index d622edd69f..ec4f41cad6 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -633,6 +633,11 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params) return False; break; case MSG_PRINTER_DRVUPGRADE: + if (!params || !params[0]) { + fprintf(stderr,"drvupgrade needs a parameter\n"); + return(False); + } + if (!send_message(dest, MSG_PRINTER_DRVUPGRADE, params[0], 0, False)) return False; break; |