1
0
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:
Jelmer Vernooij 0001-01-01 00:00:00 +00:00
parent 8bbcb83331
commit 38d03f4f1a

View File

@ -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;