[169] mosquitto_passwd handles unknown cmd args properly.

Closes #169. Thanks to castorgodinho.

Bug: https://github.com/eclipse/mosquitto/issues/169
pull/198/head
Roger A. Light 9 years ago
parent 7761218d3c
commit 6f5f445196

@ -18,6 +18,8 @@ Broker:
PUBREL, PUBCOMP without disconnecting. Closes #57.
- Fix websockets listeners not being able to bind to an IP address. Closes
#170.
- mosquitto_passwd utility now correctly deals with unknown command line
arguments in all cases. Closes #169.
Client library:
- Fix the case where a message received just before the keepalive timer

@ -369,6 +369,7 @@ int main(int argc, char *argv[])
batch_mode = true;
}else{
fprintf(stderr, "Error: Unknown option '%s'\n", argv[1]);
return 1;
}
password_file_tmp = argv[2];
username = argv[3];

Loading…
Cancel
Save