mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Give warning if 'drvupgrade' doesn't get an argument
This commit is contained in:
parent
8bbcb83331
commit
38d03f4f1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user