Permalink
Browse files

[169] mosquitto_passwd handles unknown cmd args properly.

Closes #169. Thanks to castorgodinho.

Bug: #169
  • Loading branch information...
1 parent 7761218 commit 6f5f44519688979adc0518f72f3dd1ee92b558e2 @ralight ralight committed May 26, 2016
Showing with 3 additions and 0 deletions.
  1. +2 −0 ChangeLog.txt
  2. +1 −0 src/mosquitto_passwd.c
View
@@ -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];

0 comments on commit 6f5f445

Please sign in to comment.