Commit 9f185626 authored by dejun.xdj's avatar dejun.xdj
Browse files

Check if password is used on command line interface.

parent 1139070a
...@@ -1390,7 +1390,7 @@ static int parseOptions(int argc, char **argv) { ...@@ -1390,7 +1390,7 @@ static int parseOptions(int argc, char **argv) {
exit(1); exit(1);
} }
if (!config.no_auth_warning) { if (!config.no_auth_warning && config.auth != NULL) {
fputs("Warning: Using a password with '-a' or '-u' option on the command" fputs("Warning: Using a password with '-a' or '-u' option on the command"
" line interface may not be safe.\n", stderr); " line interface may not be safe.\n", stderr);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment