git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c4833
)
Give warning if 'drvupgrade' doesn't get an argument
author
Jelmer Vernooij
<jelmer@samba.org>
Thu, 3 Apr 2003 15:44:19 +0000
(15:44 +0000)
committer
Jelmer Vernooij
<jelmer@samba.org>
Thu, 3 Apr 2003 15:44:19 +0000
(15:44 +0000)
(This used to be commit
38d03f4f1a23963fbbb9046ac9f5ccfa5e3ee7b7
)
source3/utils/smbcontrol.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbcontrol.c
b/source3/utils/smbcontrol.c
index d622edd69fd0e93e477aa756e8eb99375d99e2e4..ec4f41cad6f34c1ce3b10a89a2121c902f500f64 100644
(file)
--- 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;