summaryrefslogtreecommitdiff
path: root/source3/utils/smbcontrol.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-03 15:43:16 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-03 15:43:16 +0000
commit101b52e0bef0b21282d5fd0503acde89bc680bb1 (patch)
tree54035a0e09dc6c44642fef1a05a82a3a60511bbe /source3/utils/smbcontrol.c
parent313258fc6d7a197cf98f463f5c6ccf881591d62b (diff)
downloadsamba-101b52e0bef0b21282d5fd0503acde89bc680bb1.tar.gz
samba-101b52e0bef0b21282d5fd0503acde89bc680bb1.tar.bz2
samba-101b52e0bef0b21282d5fd0503acde89bc680bb1.zip
Give warning if 'drvupgrade' doesn't get a parameter
(This used to be commit 55d9ef08a7585f69466cd4c0b30ce33841d52b33)
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r--source3/utils/smbcontrol.c5
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;